mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2026-11-20 18:39:49 -05:00
Driver commit for hotfix release MM6X18542.p22 2026-4-10
Firmware version for commit: IW612-18.99.8.p16 IW610-18.99.8.p16 Signed-off-by: Yuvraj Singh <yuvraj.singh@nxp.com>
This commit is contained in:
parent
a5fe4e194b
commit
b2f5eb9d9e
33 changed files with 1422 additions and 499 deletions
6
Makefile
6
Makefile
|
|
@ -1,6 +1,6 @@
|
|||
# File: Makefile
|
||||
#
|
||||
# Copyright 2008-2025 NXP
|
||||
# Copyright 2008-2026 NXP
|
||||
#
|
||||
# This software file (the File) is distributed by NXP
|
||||
# under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -182,8 +182,8 @@ APPDIR= $(shell if test -d "mapp"; then echo mapp; fi)
|
|||
#############################################################################
|
||||
|
||||
ccflags-y += -I$(KERNELDIR)/include
|
||||
ccflags-y += -DMLAN_RELEASE_VERSION='"542.p8"'
|
||||
ccflags-y += -DMLAN_EXT_RELEASE_VERSION='"542.p8"'
|
||||
ccflags-y += -DMLAN_RELEASE_VERSION='"542.p22"'
|
||||
ccflags-y += -DMLAN_EXT_RELEASE_VERSION='"542.p22"'
|
||||
ccflags-y += -DREL_MILESTONE='""'
|
||||
|
||||
ccflags-y += -DFPNUM='"92"'
|
||||
|
|
|
|||
|
|
@ -3252,6 +3252,10 @@ void wlan_update_11n_cap(mlan_private *pmpriv)
|
|||
pmpriv->usr_dev_mcs_support = pmadapter->hw_dev_mcs_support;
|
||||
pmpriv->usr_dot_11n_dev_cap_bg =
|
||||
pmadapter->hw_dot_11n_dev_cap & DEFAULT_11N_CAP_MASK_BG;
|
||||
if (ISSUPP_CHANWIDTH40(pmpriv->usr_dot_11n_dev_cap_bg))
|
||||
SET_EXTCAP_2040_BSS_COEXIST(pmpriv->ext_cap);
|
||||
else
|
||||
RESET_EXTCAP_2040_BSS_COEXIST(pmpriv->ext_cap);
|
||||
pmpriv->usr_dot_11n_dev_cap_a =
|
||||
pmadapter->hw_dot_11n_dev_cap & DEFAULT_11N_CAP_MASK_A;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* related code
|
||||
*
|
||||
*
|
||||
* Copyright 2009-2025 NXP
|
||||
* Copyright 2009-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -4466,7 +4466,7 @@ static mlan_status wlan_get_6g_cfpinfo(pmlan_adapter pmadapter,
|
|||
c.is6g_present = 1;
|
||||
c.rows_6g = cfp_no_6g;
|
||||
c.cols_6g = pmadapter->tx_power_table_6g_cols;
|
||||
size += pmadapter->tx_power_table_6g_size;
|
||||
size += (c.rows_6g * c.cols_6g);
|
||||
}
|
||||
/* Check information buffer length of MLAN IOCTL */
|
||||
if (pioctl_req->buf_len < size) {
|
||||
|
|
@ -4494,9 +4494,8 @@ static mlan_status wlan_get_6g_cfpinfo(pmlan_adapter pmadapter,
|
|||
if (pmadapter->tx_power_table_6g) {
|
||||
memcpy_ext(pmadapter, req_buf + len,
|
||||
pmadapter->tx_power_table_6g,
|
||||
pmadapter->tx_power_table_6g_size,
|
||||
pmadapter->tx_power_table_6g_size);
|
||||
len += pmadapter->tx_power_table_6g_size;
|
||||
(c.rows_6g * c.cols_6g), (c.rows_6g * c.cols_6g));
|
||||
len += (c.rows_6g * c.cols_6g);
|
||||
}
|
||||
out:
|
||||
if (pioctl_req)
|
||||
|
|
@ -4566,7 +4565,7 @@ mlan_status wlan_get_cfpinfo(pmlan_adapter pmadapter,
|
|||
c.is2g_present = 1;
|
||||
c.rows_2g = cfp_no_bg;
|
||||
c.cols_2g = pmadapter->tx_power_table_bg_cols;
|
||||
size += pmadapter->tx_power_table_bg_size;
|
||||
size += (c.rows_2g * c.cols_2g);
|
||||
}
|
||||
if (pmadapter->fw_bands & BAND_A) {
|
||||
if (pmadapter->cfp_code_a)
|
||||
|
|
@ -4577,7 +4576,7 @@ mlan_status wlan_get_cfpinfo(pmlan_adapter pmadapter,
|
|||
c.is5g_present = 1;
|
||||
c.rows_5g = cfp_no_a;
|
||||
c.cols_5g = pmadapter->tx_power_table_a_cols;
|
||||
size += pmadapter->tx_power_table_a_size;
|
||||
size += (c.rows_5g * c.cols_5g);
|
||||
}
|
||||
/* Check information buffer length of MLAN IOCTL */
|
||||
if (pioctl_req->buf_len < size) {
|
||||
|
|
@ -4623,16 +4622,14 @@ mlan_status wlan_get_cfpinfo(pmlan_adapter pmadapter,
|
|||
if (pmadapter->tx_power_table_bg) {
|
||||
memcpy_ext(pmadapter, req_buf + len,
|
||||
pmadapter->tx_power_table_bg,
|
||||
pmadapter->tx_power_table_bg_size,
|
||||
pmadapter->tx_power_table_bg_size);
|
||||
len += pmadapter->tx_power_table_bg_size;
|
||||
(c.rows_2g * c.cols_2g), (c.rows_2g * c.cols_2g));
|
||||
len += (c.rows_2g * c.cols_2g);
|
||||
}
|
||||
if (pmadapter->tx_power_table_a) {
|
||||
memcpy_ext(pmadapter, req_buf + len,
|
||||
pmadapter->tx_power_table_a,
|
||||
pmadapter->tx_power_table_a_size,
|
||||
pmadapter->tx_power_table_a_size);
|
||||
len += pmadapter->tx_power_table_a_size;
|
||||
pmadapter->tx_power_table_a, (c.rows_5g * c.cols_5g),
|
||||
(c.rows_5g * c.cols_5g));
|
||||
len += (c.rows_5g * c.cols_5g);
|
||||
}
|
||||
out:
|
||||
if (pioctl_req)
|
||||
|
|
|
|||
|
|
@ -7044,6 +7044,7 @@ mlan_status wlan_ret_get_hw_spec(pmlan_private pmpriv, HostCmd_DS_COMMAND *resp,
|
|||
t_u16 tlv_len = 0;
|
||||
t_u16 fw_pl_ver = 0;
|
||||
MrvlIEtypes_fw_ver_info_t *api_rev = MNULL;
|
||||
MrvlIEtypes_fw_hotfix_ver_info_t *api_hotfix_rev = MNULL;
|
||||
t_u16 api_id = 0;
|
||||
t_u16 dev_max_amsdu_size;
|
||||
MrvlIEtypesHeader_t *tlv = MNULL;
|
||||
|
|
@ -7192,13 +7193,13 @@ mlan_status wlan_ret_get_hw_spec(pmlan_private pmpriv, HostCmd_DS_COMMAND *resp,
|
|||
}
|
||||
pmadapter->hw_dot_11ac_dev_cap =
|
||||
wlan_le32_to_cpu(hw_spec->Dot11acDevCap);
|
||||
dev_max_amsdu_size = ISSUPP_MAXAMSDU(hw_spec->Dot11acDevCap) ?
|
||||
dev_max_amsdu_size = GET_VHTCAP_MAXMPDULEN(hw_spec->Dot11acDevCap) ?
|
||||
MLAN_RX_DATA_BUF_SIZE_8K :
|
||||
MLAN_RX_DATA_BUF_SIZE_4K;
|
||||
pmadapter->rx_buf_size =
|
||||
MIN(pmadapter->rx_buf_size, dev_max_amsdu_size);
|
||||
|
||||
if (ISSUPP_MAXAMSDU(hw_spec->Dot11acDevCap))
|
||||
if (GET_VHTCAP_MAXMPDULEN(hw_spec->Dot11acDevCap))
|
||||
SETSUPP_MAXAMSDU(pmadapter->hw_dot_11ac_dev_cap);
|
||||
else
|
||||
RESETSUPP_MAXAMSDU(pmadapter->hw_dot_11ac_dev_cap);
|
||||
|
|
@ -7350,9 +7351,12 @@ mlan_status wlan_ret_get_hw_spec(pmlan_private pmpriv, HostCmd_DS_COMMAND *resp,
|
|||
api_rev->major_ver, api_rev->minor_ver);
|
||||
break;
|
||||
case FW_HOTFIX_VER_ID:
|
||||
pmadapter->fw_hotfix_ver = api_rev->major_ver;
|
||||
api_hotfix_rev =
|
||||
(MrvlIEtypes_fw_hotfix_ver_info_t *)tlv;
|
||||
pmadapter->fw_hotfix_ver =
|
||||
api_hotfix_rev->hotfix_ver;
|
||||
PRINTM(MCMND, "fw hotfix ver=%d\n",
|
||||
api_rev->major_ver);
|
||||
api_hotfix_rev->hotfix_ver);
|
||||
break;
|
||||
case FW_PL_VER_ID:
|
||||
fw_pl_ver = ((api_rev->minor_ver << 8) |
|
||||
|
|
|
|||
|
|
@ -510,6 +510,8 @@ typedef t_u8 mlan_802_11_mac_addr[MLAN_MAC_ADDR_LENGTH];
|
|||
#define CARD_PCIEIW624 "PCIEIW624"
|
||||
/** PCIEAW693 Card */
|
||||
#define CARD_PCIEAW693 "PCIEAW693"
|
||||
/** PCIEAW692 Card */
|
||||
#define CARD_PCIEAW692 "PCIEAW692"
|
||||
/** PCIEIW629 Card */
|
||||
#define CARD_PCIEIW629 "PCIEIW629"
|
||||
/** PCIEIW623 Card */
|
||||
|
|
|
|||
|
|
@ -400,7 +400,8 @@ typedef enum _WLAN_802_11_WEP_STATUS {
|
|||
|
||||
/** Default 11n capability mask for 2.4GHz */
|
||||
#define DEFAULT_11N_CAP_MASK_BG \
|
||||
(HWSPEC_SHORTGI20_SUPP | HWSPEC_RXSTBC_SUPP | HWSPEC_LDPC_SUPP)
|
||||
(HWSPEC_SHORTGI20_SUPP | HWSPEC_RXSTBC_SUPP | HWSPEC_LDPC_SUPP | \
|
||||
HWSPEC_CHANBW40_SUPP | HWSPEC_SHORTGI40_SUPP)
|
||||
/** Default 11n capability mask for 5GHz */
|
||||
#define DEFAULT_11N_CAP_MASK_A \
|
||||
(HWSPEC_CHANBW40_SUPP | HWSPEC_SHORTGI20_SUPP | \
|
||||
|
|
@ -657,6 +658,13 @@ typedef enum _WLAN_802_11_WEP_STATUS {
|
|||
#define RESET_EXTCAP_TDLS_WIDER_BANDWIDTH(ext_cap) \
|
||||
(ext_cap.TDLSWildBandwidth = 0)
|
||||
|
||||
/** ExtCap : Check 20/40 BSS Coexistence support */
|
||||
#define ISSUPP_EXTCAP_2040_BSS_COEXIST(ext_cap) (ext_cap.BSS_CoexistSupport)
|
||||
/** ExtCap : Set 20/40 BSS Coexistence support */
|
||||
#define SET_EXTCAP_2040_BSS_COEXIST(ext_cap) (ext_cap.BSS_CoexistSupport = 1)
|
||||
/** ExtCap: Reset 20/40 BSS Coexistence support */
|
||||
#define RESET_EXTCAP_2040_BSS_COEXIST(ext_cap) (ext_cap.BSS_CoexistSupport = 0)
|
||||
|
||||
/** ExtCap : Support for extend channel switch */
|
||||
#define ISSUPP_EXTCAP_EXT_CHANNEL_SWITCH(ext_cap) (ext_cap.ExtChanSwitching)
|
||||
/** ExtCap : Set support Ext Channel Switch */
|
||||
|
|
@ -1560,6 +1568,8 @@ typedef MLAN_PACK_START struct _MrvlIEtypes_TDLS_Idle_Timeout_t {
|
|||
#define RXPD_CHAN_MASK 0x3FE0
|
||||
/** Rate control mask 15-23 */
|
||||
#define TXPD_RATE_MASK 0xff8000
|
||||
/** Preamble type. bits 15-14 */
|
||||
#define RXPD_PREAMBLE_MASK 0xC000
|
||||
/** DCM at bit 16 */
|
||||
#define RXPD_DCM_MASK 0x10000
|
||||
/** enable bw ctrl in TxPD */
|
||||
|
|
@ -2826,6 +2836,16 @@ typedef MLAN_PACK_START struct _MrvlIEtypes_fw_ver_info_t {
|
|||
t_u8 minor_ver;
|
||||
} MLAN_PACK_END MrvlIEtypes_fw_ver_info_t;
|
||||
|
||||
/** MrvlIEtypes_fw_hotfix_ver_info_t */
|
||||
typedef MLAN_PACK_START struct _MrvlIEtypes_fw_hotfix_ver_info_t {
|
||||
/** Header */
|
||||
MrvlIEtypesHeader_t header;
|
||||
/** API id */
|
||||
t_u16 api_id;
|
||||
/** hotfix version */
|
||||
t_u16 hotfix_ver;
|
||||
} MLAN_PACK_END MrvlIEtypes_fw_hotfix_ver_info_t;
|
||||
|
||||
/** API ID */
|
||||
enum API_VER_ID {
|
||||
KEY_API_VER_ID = 1,
|
||||
|
|
@ -7722,6 +7742,14 @@ typedef MLAN_PACK_START struct _HostCmd_DS_AGCS_CFG {
|
|||
} MLAN_PACK_END HostCmd_DS_AGCS_CFG;
|
||||
#endif /* UAP_SUPPORT */
|
||||
|
||||
typedef MLAN_PACK_START struct _HostCmd_DS_CHAN_SWITCH_CNT_CFG {
|
||||
/** action - get/set */
|
||||
t_u16 action;
|
||||
|
||||
/** Chan switch count */
|
||||
t_u8 chan_switch_cnt;
|
||||
} MLAN_PACK_END HostCmd_DS_CHAN_SWITCH_CNT_CFG;
|
||||
|
||||
/** HostCmd_DS_COMMAND */
|
||||
typedef struct MLAN_PACK_START _HostCmd_DS_COMMAND {
|
||||
/** Command Header : Command */
|
||||
|
|
@ -8036,6 +8064,9 @@ typedef struct MLAN_PACK_START _HostCmd_DS_COMMAND {
|
|||
/** Agiled channel switch configuration */
|
||||
HostCmd_DS_AGCS_CFG agcs_cfg;
|
||||
#endif /* UAP_SUPPORT */
|
||||
|
||||
/** Channel switch count configuration */
|
||||
HostCmd_DS_CHAN_SWITCH_CNT_CFG chan_switch_cnt_cfg;
|
||||
} params;
|
||||
} MLAN_PACK_END HostCmd_DS_COMMAND, *pHostCmd_DS_COMMAND;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file contains host command ID definitions.
|
||||
*
|
||||
*
|
||||
* Copyright 2023-2025 NXP
|
||||
* Copyright 2023-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -503,5 +503,9 @@ ENUM_ELEMENT(HostCmd_CMD_GET_HW_SPEC, 0x0003),
|
|||
|
||||
/** Host Command ID : To enable/disable/force-enable PPB feature */
|
||||
ENUM_ELEMENT(HostCmd_CMD_PREAMBLE_PWR_BOOST, 0x0296),
|
||||
|
||||
/** Host Command ID : Channel switch count configuration */
|
||||
ENUM_ELEMENT(HostCmd_CMD_APCMD_CHAN_SWITCH_CNT_CFG, 0x0298),
|
||||
|
||||
/* Always keep this last */
|
||||
ENUM_ELEMENT_LAST(__HostCmd_CMD_Last)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* and HW.
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2021, 2025 NXP
|
||||
* Copyright 2008-2021, 2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -1596,18 +1596,19 @@ mlan_status wlan_init_fw(pmlan_adapter pmadapter)
|
|||
ret = MLAN_STATUS_FAILURE;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
if (((pmadapter->card_type) & 0xff) == CARD_TYPE_AW693
|
||||
if (((pmadapter->card_type) & 0xff) == CARD_TYPE_AW693
|
||||
#ifdef SECURE_HOST
|
||||
&& (!pmadapter->shc_secure_host)
|
||||
&& (!pmadapter->shc_secure_host)
|
||||
#endif
|
||||
) {
|
||||
ret = wlan_prepare_cmd(priv, HostCmd_CMD_FUNC_INIT,
|
||||
HostCmd_ACT_GEN_SET, 0, MNULL, MNULL);
|
||||
if (ret) {
|
||||
ret = MLAN_STATUS_FAILURE;
|
||||
goto done;
|
||||
) {
|
||||
ret = wlan_prepare_cmd(priv, HostCmd_CMD_FUNC_INIT,
|
||||
HostCmd_ACT_GEN_SET, 0, MNULL,
|
||||
MNULL);
|
||||
if (ret) {
|
||||
ret = MLAN_STATUS_FAILURE;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* PCIE */
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file declares the IOCTL data structures and APIs.
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2025 NXP
|
||||
* Copyright 2008-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -412,7 +412,8 @@ enum _mlan_ioctl_req_id {
|
|||
MLAN_OID_MISC_AGCS_CONFIG = 0x002000A0,
|
||||
#endif /* UAP_SUPPORT */
|
||||
MLAN_OID_SEC_CFG_SSID_PROTECTION = 0x002000A1,
|
||||
MLAN_OID_MISC_RF_TEST_DEBUG_TEMPERATURE = 0x002000A2
|
||||
MLAN_OID_MISC_RF_TEST_DEBUG_TEMPERATURE = 0x002000A2,
|
||||
MLAN_OID_MISC_CHAN_SWITCH_CNT_CONFIG = 0x002000A3
|
||||
|
||||
};
|
||||
|
||||
|
|
@ -2038,7 +2039,7 @@ typedef struct _mlan_fw_info {
|
|||
/** Firmware version */
|
||||
fw_release_version_t fw_ver;
|
||||
/** Firmware Hotfix version */
|
||||
t_u8 hotfix_version;
|
||||
t_u16 hotfix_version;
|
||||
/** tx buf size */
|
||||
t_u16 tx_buf_size;
|
||||
/** MAC address */
|
||||
|
|
@ -6734,6 +6735,10 @@ typedef struct _mlan_ds_agcs_cfg {
|
|||
} mlan_ds_agcs_cfg;
|
||||
#endif /* UAP_SUPPORT */
|
||||
|
||||
typedef struct _mlan_ds_ecsa_cfg {
|
||||
t_u8 chan_switch_cnt;
|
||||
} mlan_ds_ecsa_cfg;
|
||||
|
||||
/** Type definition of mlan_ds_misc_cfg for MLAN_IOCTL_MISC_CFG */
|
||||
typedef struct _mlan_ds_misc_cfg {
|
||||
/** Sub-command */
|
||||
|
|
@ -6927,6 +6932,8 @@ typedef struct _mlan_ds_misc_cfg {
|
|||
/** config AGCS for MLAN_OID_MISC_AGCS_CONFIG */
|
||||
mlan_ds_agcs_cfg agcs_cfg;
|
||||
#endif /* UAP_SUPPORT */
|
||||
/** Channel switch cnt cfg */
|
||||
mlan_ds_ecsa_cfg ecsa_cfg;
|
||||
} param;
|
||||
} mlan_ds_misc_cfg, *pmlan_ds_misc_cfg;
|
||||
|
||||
|
|
|
|||
|
|
@ -2649,7 +2649,7 @@ struct _mlan_adapter {
|
|||
/** firmware minor version */
|
||||
t_u8 fw_min_ver;
|
||||
/** firmare hotfix version */
|
||||
t_u8 fw_hotfix_ver;
|
||||
t_u16 fw_hotfix_ver;
|
||||
/** uap firmware version */
|
||||
t_u8 uap_fw_ver;
|
||||
/** mac address retrun from get_hw_spec */
|
||||
|
|
|
|||
|
|
@ -1373,7 +1373,7 @@ static mlan_status wlan_pcie_delete_txbd_ring(mlan_adapter *pmadapter)
|
|||
if (pmadapter->pcard_pcie->tx_coherent_buf_list[i]) {
|
||||
pmbuf = pmadapter->pcard_pcie
|
||||
->tx_coherent_buf_list[i];
|
||||
if (pmbuf->pbuf)
|
||||
if (pmbuf && pmbuf->pbuf)
|
||||
pcb->moal_mfree_cached(
|
||||
pmadapter->pmoal_handle,
|
||||
pmbuf->total_pcie_buf_len,
|
||||
|
|
@ -1646,7 +1646,7 @@ static mlan_status wlan_pcie_delete_rxbd_ring(mlan_adapter *pmadapter)
|
|||
/* release rx coherent buf */
|
||||
if (pmadapter->pcard_pcie->rx_coherent_buf_list[i]) {
|
||||
pmbuf = pmadapter->pcard_pcie->rx_coherent_buf_list[i];
|
||||
if (pmbuf->pbuf)
|
||||
if (pmbuf && pmbuf->pbuf)
|
||||
pcb->moal_mfree_cached(
|
||||
pmadapter->pmoal_handle,
|
||||
pmbuf->total_pcie_buf_len, pmbuf->pbuf,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
* for sending scan commands to the firmware.
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2025 NXP
|
||||
* Copyright 2008-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -8668,12 +8668,19 @@ mlan_status wlan_cmd_bgscan_config(mlan_private *pmpriv,
|
|||
.chan_scan_mode.passive_scan,
|
||||
scan_dur);
|
||||
|
||||
if (tlv_chan_list->chan_scan_param[chan_num]
|
||||
.chan_scan_mode.passive_scan)
|
||||
tlv_chan_list->chan_scan_param[chan_num]
|
||||
.chan_scan_mode.passive_to_active_scan =
|
||||
MTRUE;
|
||||
|
||||
/* Do passive to active scanning only a radar controlled
|
||||
* channels */
|
||||
if (radio_type == BAND_5GHZ) {
|
||||
if (wlan_11h_radar_detect_required(
|
||||
pmpriv,
|
||||
tlv_chan_list
|
||||
->chan_scan_param[chan_num]
|
||||
.chan_number)) {
|
||||
tlv_chan_list->chan_scan_param[chan_num]
|
||||
.chan_scan_mode
|
||||
.passive_to_active_scan = MTRUE;
|
||||
}
|
||||
}
|
||||
tlv_chan_list->chan_scan_param[chan_num].min_scan_time =
|
||||
wlan_cpu_to_le16(scan_dur);
|
||||
tlv_chan_list->chan_scan_param[chan_num].max_scan_time =
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* module.
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2022, 2024-2025 NXP
|
||||
* Copyright 2008-2022, 2024-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -357,6 +357,7 @@ void wlan_rxpdinfo_to_radiotapinfo(pmlan_private priv, RxPD *prx_pd,
|
|||
t_u8 ext_rate_info = 0;
|
||||
t_u8 nss = 0;
|
||||
t_u8 dcm = 0;
|
||||
t_u8 preamble_type = 0;
|
||||
|
||||
memset(priv->adapter, &rt_info_tmp, 0x00, sizeof(rt_info_tmp));
|
||||
rt_info_tmp.snr = prx_pd->snr;
|
||||
|
|
@ -379,6 +380,7 @@ void wlan_rxpdinfo_to_radiotapinfo(pmlan_private priv, RxPD *prx_pd,
|
|||
gi_he = (rx_rate_info & 0x80) >> 7;
|
||||
gi = gi | gi_he;
|
||||
dcm = (prx_pd->rx_info & RXPD_DCM_MASK) >> 16;
|
||||
preamble_type = (prx_pd->rx_info & RXPD_PREAMBLE_MASK) >> 14;
|
||||
} else if ((rx_rate_info & 0x3) == MLAN_RATE_FORMAT_VHT) {
|
||||
/* VHT rate */
|
||||
format = MLAN_RATE_FORMAT_VHT;
|
||||
|
|
@ -410,8 +412,9 @@ void wlan_rxpdinfo_to_radiotapinfo(pmlan_private priv, RxPD *prx_pd,
|
|||
rt_info_tmp.rate_info.nss_index = nss;
|
||||
rt_info_tmp.rate_info.dcm = dcm;
|
||||
if (format == MLAN_RATE_FORMAT_HE) {
|
||||
rt_info_tmp.rate_info.rate_info =
|
||||
(ldpc << 5) | (format << 3) | (bw << 1) | (gi << 6);
|
||||
rt_info_tmp.rate_info.rate_info = (preamble_type << 6) |
|
||||
(ldpc << 5) | (format << 3) |
|
||||
(bw << 1) | (gi << 6);
|
||||
} else
|
||||
rt_info_tmp.rate_info.rate_info =
|
||||
(ldpc << 5) | (format << 3) | (bw << 1) | gi;
|
||||
|
|
|
|||
|
|
@ -513,5 +513,5 @@
|
|||
(PROPRIETARY_TLV_BASE_ID + 364) /* 0x026c */
|
||||
#define TLV_TYPE_PER_BAND_TXPWR_CAP (PROPRIETARY_TLV_BASE_ID + 365) /* 0x026d \
|
||||
*/
|
||||
#define TLV_HOST_MAX_RX_BUF_SIZE (PROPRIETARY_TLV_BASE_ID + 366) /* 0x026e */
|
||||
#define TLV_HOST_MAX_RX_BUF_SIZE (PROPRIETARY_TLV_BASE_ID + 367) /* 0x026f */
|
||||
#endif /* !MLAN_TLV_IDS_H_ */
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file contains the handling of AP mode command and event
|
||||
*
|
||||
*
|
||||
* Copyright 2009-2025 NXP
|
||||
* Copyright 2009-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -5349,6 +5349,69 @@ done:
|
|||
return status;
|
||||
}
|
||||
|
||||
static mlan_status wlan_ret_chan_switch_cnt_config(pmlan_private pmpriv,
|
||||
HostCmd_DS_COMMAND *resp,
|
||||
mlan_ioctl_req *pioctl_buf)
|
||||
{
|
||||
HostCmd_DS_CHAN_SWITCH_CNT_CFG *pchan_switch_cnt_cfg =
|
||||
(HostCmd_DS_CHAN_SWITCH_CNT_CFG *)&resp->params
|
||||
.chan_switch_cnt_cfg;
|
||||
mlan_ds_misc_cfg *misc = MNULL;
|
||||
|
||||
ENTER();
|
||||
|
||||
if (pioctl_buf) {
|
||||
misc = (mlan_ds_misc_cfg *)pioctl_buf->pbuf;
|
||||
misc->param.ecsa_cfg.chan_switch_cnt =
|
||||
(t_u8)pchan_switch_cnt_cfg->chan_switch_cnt;
|
||||
PRINTM(MIOCTL, "Received SWITCH CNT = %d",
|
||||
misc->param.ecsa_cfg.chan_switch_cnt);
|
||||
}
|
||||
|
||||
LEAVE();
|
||||
return MLAN_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static mlan_status wlan_cmd_chan_switch_cnt_config(pmlan_private pmpriv,
|
||||
HostCmd_DS_COMMAND *cmd,
|
||||
t_u16 cmd_action,
|
||||
t_void *pdata_buf)
|
||||
{
|
||||
HostCmd_DS_CHAN_SWITCH_CNT_CFG *pchan_switch_cnt_cfg =
|
||||
(HostCmd_DS_CHAN_SWITCH_CNT_CFG *)&cmd->params
|
||||
.chan_switch_cnt_cfg;
|
||||
mlan_ds_ecsa_cfg *ecsa_cfg = MNULL;
|
||||
|
||||
ENTER();
|
||||
|
||||
if (!pdata_buf) {
|
||||
LEAVE();
|
||||
return MLAN_STATUS_FAILURE;
|
||||
}
|
||||
|
||||
ecsa_cfg = (mlan_ds_ecsa_cfg *)pdata_buf;
|
||||
|
||||
cmd->command = wlan_cpu_to_le16(HostCmd_CMD_APCMD_CHAN_SWITCH_CNT_CFG);
|
||||
cmd->size = wlan_cpu_to_le16(
|
||||
sizeof(HostCmd_CMD_APCMD_CHAN_SWITCH_CNT_CFG) + S_DS_GEN +
|
||||
sizeof(HostCmd_DS_CHAN_SWITCH_CNT_CFG));
|
||||
|
||||
pchan_switch_cnt_cfg->action = wlan_cpu_to_le16(cmd_action);
|
||||
if (cmd_action == HostCmd_ACT_GEN_SET) {
|
||||
if (!ecsa_cfg) {
|
||||
LEAVE();
|
||||
return MLAN_STATUS_FAILURE;
|
||||
}
|
||||
pchan_switch_cnt_cfg->chan_switch_cnt =
|
||||
(ecsa_cfg->chan_switch_cnt);
|
||||
}
|
||||
PRINTM(MIOCTL, "CHAN SWITCH CNT = %d",
|
||||
pchan_switch_cnt_cfg->chan_switch_cnt);
|
||||
|
||||
LEAVE();
|
||||
return MLAN_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/********************************************************
|
||||
Global Functions
|
||||
********************************************************/
|
||||
|
|
@ -5844,6 +5907,11 @@ mlan_status wlan_ops_uap_prepare_cmd(t_void *priv, t_u16 cmd_no,
|
|||
pdata_buf);
|
||||
break;
|
||||
|
||||
case HostCmd_CMD_APCMD_CHAN_SWITCH_CNT_CFG:
|
||||
ret = wlan_cmd_chan_switch_cnt_config(pmpriv, cmd_ptr,
|
||||
cmd_action, pdata_buf);
|
||||
break;
|
||||
|
||||
default:
|
||||
PRINTM(MERROR, "PREP_CMD: unknown command- %#x\n", cmd_no);
|
||||
if (pioctl_req)
|
||||
|
|
@ -6332,6 +6400,10 @@ mlan_status wlan_ops_uap_process_cmdresp(t_void *priv, t_u16 cmdresp_no,
|
|||
ret = wlan_uap_ret_agcs_cfg(pmpriv, resp, pioctl_buf);
|
||||
break;
|
||||
|
||||
case HostCmd_CMD_APCMD_CHAN_SWITCH_CNT_CFG:
|
||||
ret = wlan_ret_chan_switch_cnt_config(pmpriv, resp, pioctl_buf);
|
||||
break;
|
||||
|
||||
default:
|
||||
PRINTM(MERROR, "CMD_RESP: Unknown command response %#x\n",
|
||||
resp->command);
|
||||
|
|
@ -6781,8 +6853,13 @@ mlan_status wlan_ops_uap_process_event(t_void *priv)
|
|||
pchan_info->bandcfg.chanBand,
|
||||
pchan_info->channel,
|
||||
CHANNEL_BW_80MHZ);
|
||||
/* Channel 14 (Japan) does not support 802.11n. */
|
||||
/* TODO: Update is_11n_enabled after the channel switch.
|
||||
*/
|
||||
pchan_band_info->is_11n_enabled =
|
||||
pmpriv->is_11n_enabled;
|
||||
(pchan_info->channel == 14) ?
|
||||
0 :
|
||||
pmpriv->is_11n_enabled;
|
||||
wlan_recv_event(pmpriv,
|
||||
MLAN_EVENT_ID_FW_CHAN_SWITCH_COMPLETE,
|
||||
pevent);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file contains the handling of AP mode ioctls
|
||||
*
|
||||
*
|
||||
* Copyright 2009-2025 NXP
|
||||
* Copyright 2009-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -2063,6 +2063,43 @@ static mlan_status wlan_uap_agcs_cfg(pmlan_adapter pmadapter,
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Handle channel switch cnt config
|
||||
*
|
||||
* @param pmadapter A pointer to mlan_adapter structure
|
||||
* @param pioctl_req A pointer to ioctl request buffer
|
||||
*
|
||||
* @return MLAN_STATUS_PENDING --success, otherwise fail
|
||||
*/
|
||||
static mlan_status wlan_uap_chan_switch_cnt_cfg(pmlan_adapter pmadapter,
|
||||
pmlan_ioctl_req pioctl_req)
|
||||
{
|
||||
pmlan_private pmpriv = pmadapter->priv[pioctl_req->bss_index];
|
||||
mlan_ds_misc_cfg *misc = MNULL;
|
||||
mlan_status ret = MLAN_STATUS_SUCCESS;
|
||||
t_u16 cmd_action = 0;
|
||||
|
||||
ENTER();
|
||||
|
||||
misc = (mlan_ds_misc_cfg *)pioctl_req->pbuf;
|
||||
if (pioctl_req->action == MLAN_ACT_GET)
|
||||
cmd_action = HostCmd_ACT_GEN_GET;
|
||||
else
|
||||
cmd_action = HostCmd_ACT_GEN_SET;
|
||||
|
||||
/* Send request to firmware */
|
||||
ret = wlan_prepare_cmd(pmpriv, HostCmd_CMD_APCMD_CHAN_SWITCH_CNT_CFG,
|
||||
cmd_action, misc->sub_command,
|
||||
(t_void *)pioctl_req,
|
||||
(t_void *)&misc->param.ecsa_cfg);
|
||||
|
||||
if (ret == MLAN_STATUS_SUCCESS)
|
||||
ret = MLAN_STATUS_PENDING;
|
||||
|
||||
LEAVE();
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief MLAN uap ioctl handler
|
||||
*
|
||||
|
|
@ -2506,6 +2543,10 @@ mlan_status wlan_ops_uap_ioctl(t_void *adapter, pmlan_ioctl_req pioctl_req)
|
|||
pioctl_req);
|
||||
else if (misc->sub_command == MLAN_OID_MISC_AGCS_CONFIG)
|
||||
status = wlan_uap_agcs_cfg(pmadapter, pioctl_req);
|
||||
else if (misc->sub_command ==
|
||||
MLAN_OID_MISC_CHAN_SWITCH_CNT_CONFIG)
|
||||
status = wlan_uap_chan_switch_cnt_cfg(pmadapter,
|
||||
pioctl_req);
|
||||
break;
|
||||
case MLAN_IOCTL_POWER_CFG:
|
||||
power = (mlan_ds_power_cfg *)pioctl_req->pbuf;
|
||||
|
|
|
|||
|
|
@ -809,9 +809,18 @@ mlan_status wlan_process_uap_rx_packet(mlan_private *priv, pmlan_buffer pmbuf)
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if ((!(priv->pkt_fwd & PKT_FWD_INTRA_UCAST)) &&
|
||||
(wlan_get_station_entry(priv,
|
||||
prx_pkt->eth803_hdr.dest_addr))) {
|
||||
sta_node *dest_sta = wlan_get_station_entry(
|
||||
priv, prx_pkt->eth803_hdr.dest_addr);
|
||||
if ((!(priv->pkt_fwd & PKT_FWD_INTRA_UCAST)) && dest_sta) {
|
||||
if (prx_pd->flags & RXPD_FLAG_PKT_EASYMESH) {
|
||||
/* This is a 4-address frame from backhaul */
|
||||
if (dest_sta && !dest_sta->is_multi_ap) {
|
||||
/* Destination is a fronthaul client
|
||||
* (3-address mode) Clear EASYMESH flag
|
||||
* to convert 4-addr to 3-addr */
|
||||
pmbuf->flags &= ~MLAN_BUF_FLAG_EASYMESH;
|
||||
}
|
||||
}
|
||||
/* Forwarding Intra-BSS packet */
|
||||
#ifdef USB
|
||||
if (IS_USB(pmadapter->card_type)) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* spinlock and timer defines.
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2021, 2025 NXP
|
||||
* Copyright 2008-2021, 2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -523,6 +523,16 @@ static INLINE t_void util_scalar_decrement(
|
|||
moal_spin_unlock(pmoal_handle, pscalar->plock);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_KASAN
|
||||
#ifndef INT_MAX
|
||||
#define INT_MAX ((int)(~0U >> 1))
|
||||
#endif
|
||||
#else
|
||||
#ifndef INT_MAX
|
||||
#define INT_MAX 2147483647
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief This function adds an offset to the value in scalar,
|
||||
* and returns the new value
|
||||
|
|
@ -536,10 +546,6 @@ static INLINE t_void util_scalar_decrement(
|
|||
* overflows
|
||||
*/
|
||||
|
||||
#ifndef INT_MAX
|
||||
#define INT_MAX 2147483647
|
||||
#endif
|
||||
|
||||
static INLINE t_s32 util_scalar_offset(
|
||||
t_void *pmoal_handle, pmlan_scalar pscalar, t_s32 offset,
|
||||
mlan_status (*moal_spin_lock)(t_void *handle, t_void *plock),
|
||||
|
|
|
|||
|
|
@ -510,6 +510,8 @@ typedef t_u8 mlan_802_11_mac_addr[MLAN_MAC_ADDR_LENGTH];
|
|||
#define CARD_PCIEIW624 "PCIEIW624"
|
||||
/** PCIEAW693 Card */
|
||||
#define CARD_PCIEAW693 "PCIEAW693"
|
||||
/** PCIEAW692 Card */
|
||||
#define CARD_PCIEAW692 "PCIEAW692"
|
||||
/** PCIEIW629 Card */
|
||||
#define CARD_PCIEIW629 "PCIEIW629"
|
||||
/** PCIEIW623 Card */
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file declares the IOCTL data structures and APIs.
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2025 NXP
|
||||
* Copyright 2008-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -412,7 +412,8 @@ enum _mlan_ioctl_req_id {
|
|||
MLAN_OID_MISC_AGCS_CONFIG = 0x002000A0,
|
||||
#endif /* UAP_SUPPORT */
|
||||
MLAN_OID_SEC_CFG_SSID_PROTECTION = 0x002000A1,
|
||||
MLAN_OID_MISC_RF_TEST_DEBUG_TEMPERATURE = 0x002000A2
|
||||
MLAN_OID_MISC_RF_TEST_DEBUG_TEMPERATURE = 0x002000A2,
|
||||
MLAN_OID_MISC_CHAN_SWITCH_CNT_CONFIG = 0x002000A3
|
||||
|
||||
};
|
||||
|
||||
|
|
@ -2038,7 +2039,7 @@ typedef struct _mlan_fw_info {
|
|||
/** Firmware version */
|
||||
fw_release_version_t fw_ver;
|
||||
/** Firmware Hotfix version */
|
||||
t_u8 hotfix_version;
|
||||
t_u16 hotfix_version;
|
||||
/** tx buf size */
|
||||
t_u16 tx_buf_size;
|
||||
/** MAC address */
|
||||
|
|
@ -6734,6 +6735,10 @@ typedef struct _mlan_ds_agcs_cfg {
|
|||
} mlan_ds_agcs_cfg;
|
||||
#endif /* UAP_SUPPORT */
|
||||
|
||||
typedef struct _mlan_ds_ecsa_cfg {
|
||||
t_u8 chan_switch_cnt;
|
||||
} mlan_ds_ecsa_cfg;
|
||||
|
||||
/** Type definition of mlan_ds_misc_cfg for MLAN_IOCTL_MISC_CFG */
|
||||
typedef struct _mlan_ds_misc_cfg {
|
||||
/** Sub-command */
|
||||
|
|
@ -6927,6 +6932,8 @@ typedef struct _mlan_ds_misc_cfg {
|
|||
/** config AGCS for MLAN_OID_MISC_AGCS_CONFIG */
|
||||
mlan_ds_agcs_cfg agcs_cfg;
|
||||
#endif /* UAP_SUPPORT */
|
||||
/** Channel switch cnt cfg */
|
||||
mlan_ds_ecsa_cfg ecsa_cfg;
|
||||
} param;
|
||||
} mlan_ds_misc_cfg, *pmlan_ds_misc_cfg;
|
||||
|
||||
|
|
|
|||
|
|
@ -2992,6 +2992,7 @@ static int woal_mgmt_tx(moal_private *priv, const u8 *buf, size_t len,
|
|||
t_u8 new_ie_len = 0;
|
||||
t_u16 fc, type, stype;
|
||||
t_u8 skipped_len = 0;
|
||||
struct tx_status_info *prev_tx_info = NULL;
|
||||
|
||||
ENTER();
|
||||
|
||||
|
|
@ -3142,9 +3143,23 @@ static int woal_mgmt_tx(moal_private *priv, const u8 *buf, size_t len,
|
|||
(priv->phandle->remain_on_channel && !wait))
|
||||
tx_info->cancel_remain_on_channel =
|
||||
MTRUE;
|
||||
prev_tx_info = woal_get_tx_info(
|
||||
priv, tx_info->tx_seq_num);
|
||||
if (prev_tx_info) {
|
||||
/* Found and drop outdated node with
|
||||
* same tx_seq_num */
|
||||
struct sk_buff *prev_skb =
|
||||
(struct sk_buff *)
|
||||
prev_tx_info->tx_skb;
|
||||
list_del(&prev_tx_info->link);
|
||||
priv->tx_stat_queue_size--;
|
||||
dev_kfree_skb_any(prev_skb);
|
||||
kfree(prev_tx_info);
|
||||
}
|
||||
INIT_LIST_HEAD(&tx_info->link);
|
||||
list_add_tail(&tx_info->link,
|
||||
&priv->tx_stat_queue);
|
||||
priv->tx_stat_queue_size++;
|
||||
spin_unlock_irqrestore(&priv->tx_stat_lock,
|
||||
flags);
|
||||
} else {
|
||||
|
|
@ -4316,11 +4331,13 @@ static t_u16 woal_filter_beacon_ies(moal_private *priv, const t_u8 *ie,
|
|||
if (moal_extflg_isset(priv->phandle, EXT_HOST_MLME)) {
|
||||
if ((out_len + length + 2) < (int)ie_out_len) {
|
||||
/* Filter out VHT CAPA IE for P2P GO */
|
||||
#ifdef WIFI_DIRECT_SUPPORT
|
||||
if ((id == VHT_CAPABILITY) &&
|
||||
(priv->bss_type ==
|
||||
MLAN_BSS_TYPE_WIFIDIRECT)) {
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
moal_memcpy_ext(priv->phandle,
|
||||
ie_out + out_len, pos,
|
||||
length + 2,
|
||||
|
|
@ -6598,10 +6615,13 @@ void process_wifi_channel_avoid_list_event(
|
|||
continue;
|
||||
|
||||
PRINTM(MINFO, "====== Iteration=%d ======", index);
|
||||
/* Clearing NO-IR flags for all channels */
|
||||
/* Clearing NO-IR flags for all channels,
|
||||
* except for the channels marked as INDOOR-ONLY */
|
||||
for (i = 0; i < sband->n_channels; i++) {
|
||||
channel = &sband->channels[i];
|
||||
channel->flags &= ~IEEE80211_CHAN_NO_IR;
|
||||
if (!(channel->flags &
|
||||
IEEE80211_CHAN_INDOOR_ONLY))
|
||||
channel->flags &= ~IEEE80211_CHAN_NO_IR;
|
||||
}
|
||||
|
||||
/* Setting NO-IR flags as per the channel list */
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file contains the CFG80211 vendor specific defines.
|
||||
*
|
||||
*
|
||||
* Copyright 2015-2021, 2024-2025 NXP
|
||||
* Copyright 2015-2021, 2024-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -544,6 +544,13 @@ struct woal_apf_ctx {
|
|||
u8 *ram; /* shadow APF RAM */
|
||||
u32 ram_len; /* capability: max length (e.g., 2048) */
|
||||
u32 prog_size; /* last installed program length */
|
||||
u32 gen; /* increments on every install */
|
||||
|
||||
/* Pre-allocated buffers for performance */
|
||||
u8 *tmp_ram; /* temp buffer for packet processing */
|
||||
u8 *shim_buf; /* pre-allocated L2 header shim buffer */
|
||||
u32 shim_buf_len; /* size of shim buffer */
|
||||
|
||||
ktime_t installed_at; /* for FILTER_AGE_SECONDS */
|
||||
u32 pkts_since_install; /* NEW: counts packets after install */
|
||||
/* simple mode flags for CTS: */
|
||||
|
|
@ -552,6 +559,23 @@ struct woal_apf_ctx {
|
|||
struct woal_apf_counters ctr;
|
||||
};
|
||||
|
||||
struct apf_v6_ctx {
|
||||
t_u8 *prog_u8;
|
||||
t_u32 prog_len;
|
||||
t_u32 ram_len;
|
||||
const t_u8 *pkt;
|
||||
t_u32 pkt_len;
|
||||
t_u32 pc;
|
||||
t_u32 R[2];
|
||||
t_u32 mem[V6_MEMORY_ITEMS];
|
||||
bool v6_jmpdata_seen;
|
||||
void *caller_ctx;
|
||||
t_u8 *tx_buf; // allocated TX buffer
|
||||
t_u32 tx_cap; // capacity
|
||||
t_u32 tx_wp; // write pointer (also mirrored in
|
||||
// mem[V6_SLOT_TXBUF_OFFSET])
|
||||
};
|
||||
|
||||
/** =========== Define Copied from apf_interpreter.h END =========== */
|
||||
|
||||
/** =========== Define Copied from apf_interpreter.c START =========== */
|
||||
|
|
@ -569,7 +593,7 @@ struct woal_apf_ctx {
|
|||
|
||||
/** depend on the format of skb->data */
|
||||
#define APF_FRAME_HEADER_SIZE 14
|
||||
#define PACKET_FILTER_MAX_LEN 2048
|
||||
#define PACKET_FILTER_MAX_LEN 4096
|
||||
|
||||
#ifndef APF_TEST_MIRROR_BASE
|
||||
#define APF_TEST_MIRROR_BASE 500
|
||||
|
|
|
|||
|
|
@ -6966,7 +6966,19 @@ static int woal_priv_get_ap(moal_private *priv, t_u8 *respbuf, t_u32 respbuflen)
|
|||
if (bss_info.media_connected == MTRUE) {
|
||||
moal_memcpy_ext(priv->phandle, mwr->u.ap_addr.sa_data,
|
||||
&bss_info.bssid, MLAN_MAC_ADDR_LENGTH,
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 211) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.10 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 150) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.15 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80) && /* Original change \
|
||||
introduced here \
|
||||
in mainline */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(6, 19, 0)) /* Reverted here in \
|
||||
mainline */
|
||||
sizeof(mwr->u.ap_addr.sa_data_min));
|
||||
#else
|
||||
sizeof(mwr->u.ap_addr.sa_data));
|
||||
|
|
@ -13765,7 +13777,8 @@ mlan_status moal_agcs_trans_state(moal_private *priv, agcs_state next_state)
|
|||
break;
|
||||
case AGCS_STATE_START:
|
||||
if ((phandle->agcs_state <= AGCS_STATE_TRIGGERED) ||
|
||||
(phandle->agcs_state >= AGCS_STATE_COMPLETE)) {
|
||||
(phandle->agcs_state >= AGCS_STATE_COMPLETE) ||
|
||||
(priv->bss_started == MFALSE)) {
|
||||
phandle->agcs_state = next_state;
|
||||
ret = MLAN_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
@ -13831,6 +13844,26 @@ mlan_status moal_agcs_trans_state(moal_private *priv, agcs_state next_state)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AGCS get state
|
||||
*
|
||||
* @param phandle Pointer to moal_handle structure
|
||||
*
|
||||
* @return agcs_state
|
||||
*
|
||||
*/
|
||||
agcs_state moal_agcs_get_state(moal_private *priv)
|
||||
{
|
||||
moal_handle *phandle = NULL;
|
||||
|
||||
if (!priv || !priv->phandle) {
|
||||
PRINTM(MERROR, "priv or handle is null\n");
|
||||
return AGCS_STATE_IDLE;
|
||||
}
|
||||
phandle = priv->phandle;
|
||||
return phandle->agcs_state;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AGCS select channel list
|
||||
*
|
||||
|
|
@ -13942,7 +13975,7 @@ void woal_process_agcs_event(moal_private *priv, pagcs_stats pstart_event)
|
|||
moal_handle *phandle = NULL;
|
||||
wlan_user_scan_cfg *scan_cfg = NULL;
|
||||
wlan_user_scan_chan *pchan_list;
|
||||
t_u8 scan_band_priority[3];
|
||||
t_u8 scan_band_priority[4];
|
||||
t_u8 band_count;
|
||||
t_u8 current_band_idx = 0;
|
||||
t_u8 swap_class = 0;
|
||||
|
|
@ -13963,7 +13996,7 @@ void woal_process_agcs_event(moal_private *priv, pagcs_stats pstart_event)
|
|||
}
|
||||
/* For the first channel select of this channel switch event,
|
||||
* record the scan event content. */
|
||||
if (phandle->agcs_state == AGCS_STATE_START) {
|
||||
if (moal_agcs_get_state(pmpriv) == AGCS_STATE_START) {
|
||||
moal_memcpy_ext(phandle, &phandle->agcs_scan_event,
|
||||
pstart_event, sizeof(agcs_stats),
|
||||
sizeof(agcs_stats));
|
||||
|
|
@ -18043,6 +18076,7 @@ static int woal_priv_lte_coex_band_cfg(moal_private *priv, t_u8 *respbuf,
|
|||
req->action = MLAN_ACT_GET;
|
||||
} else {
|
||||
/* SET operation */
|
||||
memset((char *)data, 0, sizeof(data));
|
||||
parse_arguments(respbuf + header_len, data, ARRAY_SIZE(data),
|
||||
&user_data_len);
|
||||
pos = respbuf + header_len;
|
||||
|
|
@ -22839,6 +22873,93 @@ done:
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set/Get Channel switch count config
|
||||
*
|
||||
* @param priv A pointer to moal_private structure
|
||||
* @param respbuf A pointer to response buffer
|
||||
* @param respbuflen Available length of response buffer
|
||||
|
||||
* @return Number of bytes written, negative for failure.
|
||||
*/
|
||||
static int woal_priv_ecsa_cnt_cfg(moal_private *priv, t_u8 *respbuf,
|
||||
t_u32 respbuflen)
|
||||
{
|
||||
mlan_ioctl_req *req = NULL;
|
||||
mlan_ds_misc_cfg *cfg = NULL;
|
||||
mlan_ds_ecsa_cfg *ecsa_cfg = NULL;
|
||||
int ret = 0;
|
||||
t_u8 *pos = NULL;
|
||||
int data[1];
|
||||
int header_len = 0, user_data_len = 0;
|
||||
mlan_status status = MLAN_STATUS_SUCCESS;
|
||||
|
||||
ENTER();
|
||||
|
||||
if (!respbuf) {
|
||||
PRINTM(MERROR, "Response buffer is not available!\n");
|
||||
ret = -EINVAL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
header_len = strlen(CMD_NXP) + strlen(PRIV_CMD_ECSA_CNT_CFG);
|
||||
|
||||
/* Allocate an IOCTL request buffer */
|
||||
req = woal_alloc_mlan_ioctl_req(sizeof(mlan_ds_misc_cfg));
|
||||
if (req == NULL) {
|
||||
ret = -ENOMEM;
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Fill request buffer */
|
||||
req->req_id = MLAN_IOCTL_MISC_CFG;
|
||||
cfg = (mlan_ds_misc_cfg *)req->pbuf;
|
||||
cfg->sub_command = MLAN_OID_MISC_CHAN_SWITCH_CNT_CONFIG;
|
||||
ecsa_cfg = &cfg->param.ecsa_cfg;
|
||||
|
||||
if ((int)strlen(respbuf) == header_len) {
|
||||
/* GET operation */
|
||||
user_data_len = 0;
|
||||
req->action = MLAN_ACT_GET;
|
||||
} else {
|
||||
/* SET operation */
|
||||
parse_arguments(respbuf + header_len, data, ARRAY_SIZE(data),
|
||||
&user_data_len);
|
||||
pos = respbuf + header_len;
|
||||
if (user_data_len != 1) {
|
||||
PRINTM(MERROR, "Invalid number of args! %d\n",
|
||||
user_data_len);
|
||||
ret = -EINVAL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (user_data_len == 1) {
|
||||
ecsa_cfg->chan_switch_cnt = data[0];
|
||||
PRINTM(MMSG, "Channel switch count cfg: %u\n",
|
||||
ecsa_cfg->chan_switch_cnt);
|
||||
}
|
||||
req->action = MLAN_ACT_SET;
|
||||
}
|
||||
|
||||
/* Send IOCTL request to MLAN */
|
||||
status = woal_request_ioctl(priv, req, MOAL_IOCTL_WAIT);
|
||||
if (status != MLAN_STATUS_SUCCESS) {
|
||||
ret = -EFAULT;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!user_data_len) {
|
||||
moal_memcpy_ext(priv->phandle, respbuf, (t_u8 *)ecsa_cfg,
|
||||
sizeof(mlan_ds_ecsa_cfg), respbuflen);
|
||||
ret = sizeof(mlan_ds_ecsa_cfg);
|
||||
}
|
||||
done:
|
||||
if (ret != MLAN_STATUS_PENDING)
|
||||
kfree(req);
|
||||
LEAVE();
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set priv command for Android
|
||||
* @param dev A pointer to net_device structure
|
||||
|
|
@ -24365,6 +24486,13 @@ int woal_android_priv_cmd(struct net_device *dev, struct ifreq *req)
|
|||
len = woal_priv_per_band_txpwr_cap(priv, buf,
|
||||
priv_cmd.total_len);
|
||||
goto handled;
|
||||
} else if (strnicmp(buf + strlen(CMD_NXP),
|
||||
PRIV_CMD_ECSA_CNT_CFG,
|
||||
strlen(PRIV_CMD_ECSA_CNT_CFG)) == 0) {
|
||||
/* Set the Channel switch count */
|
||||
len = woal_priv_ecsa_cnt_cfg(priv, buf,
|
||||
priv_cmd.total_len);
|
||||
goto handled;
|
||||
} else {
|
||||
PRINTM(MERROR,
|
||||
"Unknown NXP PRIVATE command %s, ignored\n",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* @brief This file contains definition for private IOCTL call.
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2025 NXP
|
||||
* Copyright 2008-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -534,6 +534,112 @@ typedef struct _android_wifi_priv_cmd {
|
|||
#define MW_AUTH_ALG_SHARED_KEY 0x00000002
|
||||
#define MW_AUTH_ALG_LEAP 0x00000004
|
||||
|
||||
#define RMODE_PWR_DOWN 0
|
||||
#define RMODE_2x2_5G_BCA1 1
|
||||
#define RMODE_1x2_5G_BCA1 2
|
||||
#define RMODE_1x1A_5G_BCA1 3
|
||||
#define RMODE_1x1B_5G_BCA1 4
|
||||
#define RMODE_2x2_5G_8080_BCA1 5
|
||||
#define RMODE_1x1_5G_0DFS_BCA1 6
|
||||
#define RMODE_1x1A_5G_BCA2 7
|
||||
#define RMODE_1x1B_5G_BCA2 8
|
||||
#define RMODE_2x2_2G_BCA1 9
|
||||
#define RMODE_1x2_2G_BCA1 10
|
||||
#define RMODE_2x2_2G_BCA2 9
|
||||
#define RMODE_1x2_2G_BCA2 10
|
||||
#define RMODE_1x1A_2G_BCA1 11
|
||||
#define RMODE_1x1A_2G_BCA2 11
|
||||
#define RMODE_1x1B_5G_11P_BCA1 12
|
||||
#define RMODE_2x2_5G_11P_BCA1 13
|
||||
#define RMODE_1x1B_2G_BCA1 14
|
||||
#define RMODE_1x1B_2G_BCA2 14
|
||||
#define RMODE_1x1_2G_0DFS_BCA1 15
|
||||
#define RMODE_2x2_6G_BCA1 16
|
||||
#define RMODE_1x2_6G_BCA1 17
|
||||
#define RMODE_1x1A_6G_BCA1 18
|
||||
#define RMODE_1x1B_6G_BCA1 19
|
||||
#define RMODE_1x1_6G_0DFS_BCA1 20
|
||||
#define RMODE_1x1C_2G_BCA2 21
|
||||
#define RMODE_1x1_2G_ANYBAND_BCA1 22
|
||||
#define RMODE_1x1_5G_ANYBAND_BCA1 23
|
||||
#define RMODE_1x1_6G_ANYBAND_BCA1 24
|
||||
|
||||
#define SELECT_BAND(data1) \
|
||||
do { \
|
||||
if ((data1) == RMODE_2x2_2G_BCA1 || \
|
||||
(data1) == RMODE_1x2_2G_BCA1 || \
|
||||
(data1) == RMODE_2x2_2G_BCA2 || \
|
||||
(data1) == RMODE_1x2_2G_BCA2 || \
|
||||
(data1) == RMODE_1x1A_2G_BCA1 || \
|
||||
(data1) == RMODE_1x1A_2G_BCA2 || \
|
||||
(data1) == RMODE_1x1B_2G_BCA1 || \
|
||||
(data1) == RMODE_1x1B_2G_BCA2 || \
|
||||
(data1) == RMODE_1x1_2G_0DFS_BCA1 || \
|
||||
(data1) == RMODE_1x1C_2G_BCA2 || \
|
||||
(data1) == RMODE_1x1_2G_ANYBAND_BCA1) { \
|
||||
handle->rf_data->band = BAND_2GHZ; \
|
||||
} else if ((data1) == RMODE_2x2_5G_BCA1 || \
|
||||
(data1) == RMODE_1x2_5G_BCA1 || \
|
||||
(data1) == RMODE_1x1A_5G_BCA1 || \
|
||||
(data1) == RMODE_1x1B_5G_BCA1 || \
|
||||
(data1) == RMODE_2x2_5G_8080_BCA1 || \
|
||||
(data1) == RMODE_1x1_5G_0DFS_BCA1 || \
|
||||
(data1) == RMODE_1x1A_5G_BCA2 || \
|
||||
(data1) == RMODE_1x1B_5G_BCA2 || \
|
||||
(data1) == RMODE_1x1B_5G_11P_BCA1 || \
|
||||
(data1) == RMODE_2x2_5G_11P_BCA1 || \
|
||||
(data1) == RMODE_1x1_5G_ANYBAND_BCA1) { \
|
||||
handle->rf_data->band = BAND_5GHZ; \
|
||||
} else if ((data1) == RMODE_2x2_6G_BCA1 || \
|
||||
(data1) == RMODE_1x2_6G_BCA1 || \
|
||||
(data1) == RMODE_1x1A_6G_BCA1 || \
|
||||
(data1) == RMODE_1x1B_6G_BCA1 || \
|
||||
(data1) == RMODE_1x1_6G_0DFS_BCA1 || \
|
||||
(data1) == RMODE_1x1_6G_ANYBAND_BCA1) { \
|
||||
handle->rf_data->band = BAND_6GHZ; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define SELECT_ANT_CFG(data1) \
|
||||
do { \
|
||||
if ((data1) == RMODE_2x2_5G_BCA1 || \
|
||||
(data1) == RMODE_2x2_5G_8080_BCA1 || \
|
||||
(data1) == RMODE_2x2_2G_BCA1 || \
|
||||
(data1) == RMODE_2x2_2G_BCA2 || \
|
||||
(data1) == RMODE_2x2_5G_11P_BCA1 || \
|
||||
(data1) == RMODE_2x2_6G_BCA1) { \
|
||||
handle->rf_data->tx_antenna = 3; \
|
||||
handle->rf_data->rx_antenna = 3; \
|
||||
} else if ((data1) == RMODE_1x1A_5G_BCA1 || \
|
||||
(data1) == RMODE_1x1A_5G_BCA2 || \
|
||||
(data1) == RMODE_1x1A_2G_BCA1 || \
|
||||
(data1) == RMODE_1x1A_2G_BCA2 || \
|
||||
(data1) == RMODE_1x1A_6G_BCA1) { \
|
||||
handle->rf_data->tx_antenna = 1; \
|
||||
handle->rf_data->rx_antenna = 1; \
|
||||
} else if ((data1) == RMODE_1x1B_5G_BCA1 || \
|
||||
(data1) == RMODE_1x1B_5G_BCA2 || \
|
||||
(data1) == RMODE_1x1B_5G_11P_BCA1 || \
|
||||
(data1) == RMODE_1x1B_2G_BCA1 || \
|
||||
(data1) == RMODE_1x1B_2G_BCA2 || \
|
||||
(data1) == RMODE_1x1B_6G_BCA1) { \
|
||||
handle->rf_data->tx_antenna = 2; \
|
||||
handle->rf_data->rx_antenna = 2; \
|
||||
} else if ((data1) == RMODE_1x2_2G_BCA1 || \
|
||||
(data1) == RMODE_1x2_5G_BCA1 || \
|
||||
(data1) == RMODE_1x2_2G_BCA2 || \
|
||||
(data1) == RMODE_1x2_6G_BCA1 || \
|
||||
(data1) == RMODE_1x1_5G_0DFS_BCA1 || \
|
||||
(data1) == RMODE_1x1_2G_0DFS_BCA1 || \
|
||||
(data1) == RMODE_1x1_6G_0DFS_BCA1) { \
|
||||
handle->rf_data->tx_antenna = 1; \
|
||||
handle->rf_data->rx_antenna = 2; \
|
||||
} else { \
|
||||
handle->rf_data->tx_antenna = 1; \
|
||||
handle->rf_data->rx_antenna = 1; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/* Generic format for most parameters that fit in an int */
|
||||
struct mw_param {
|
||||
t_s32 value; /* The value of the parameter itself */
|
||||
|
|
@ -811,4 +917,6 @@ typedef struct {
|
|||
#define PRIV_CMD_AGCS "agcs"
|
||||
#endif
|
||||
|
||||
#define PRIV_CMD_ECSA_CNT_CFG "ecsacntcfg"
|
||||
|
||||
#endif /* _WOAL_ETH_PRIV_H_ */
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file contains ioctl function to MLAN
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2025 NXP
|
||||
* Copyright 2008-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -48,6 +48,7 @@ Change log:
|
|||
Local Variables
|
||||
********************************************************/
|
||||
#define MRVL_TLV_HEADER_SIZE 4
|
||||
|
||||
/* NXP Channel config TLV ID */
|
||||
#define MRVL_CHANNELCONFIG_TLV_ID (0x0100 + 0x2a) /* 0x012a */
|
||||
|
||||
|
|
@ -4591,7 +4592,7 @@ done:
|
|||
*/
|
||||
void woal_get_version(moal_handle *handle, char *version, int max_len)
|
||||
{
|
||||
t_u8 hotfix_ver = 0, copied_len = 0;
|
||||
t_u16 hotfix_ver = 0, copied_len = 0;
|
||||
char fw_ver[100];
|
||||
|
||||
ENTER();
|
||||
|
|
@ -9579,9 +9580,8 @@ mlan_status woal_process_rf_test_mode(moal_handle *handle, t_u32 mode)
|
|||
"Couldn't allocate memory for RF test mode\n");
|
||||
handle->rf_test_mode = MTRUE;
|
||||
if (handle->rf_data) {
|
||||
/* antenna is set to 1 by default */
|
||||
handle->rf_data->tx_antenna = 1;
|
||||
handle->rf_data->rx_antenna = 1;
|
||||
/* default antenna configuration is set */
|
||||
SELECT_ANT_CFG(0);
|
||||
}
|
||||
} else if (mode == MFG_CMD_UNSET_TEST_MODE) {
|
||||
if (handle->rf_data) {
|
||||
|
|
@ -9944,6 +9944,8 @@ mlan_status woal_process_rf_test_mode_cmd(moal_handle *handle, t_u32 cmd,
|
|||
misc->param.mfg_generic_cfg.data1;
|
||||
handle->rf_data->radio_mode[1] =
|
||||
misc->param.mfg_generic_cfg.data2;
|
||||
SELECT_BAND(misc->param.mfg_generic_cfg.data1);
|
||||
SELECT_ANT_CFG(misc->param.mfg_generic_cfg.data1);
|
||||
break;
|
||||
case MFG_CMD_RF_BAND_AG:
|
||||
handle->rf_data->band = misc->param.mfg_generic_cfg.data1;
|
||||
|
|
|
|||
|
|
@ -857,8 +857,7 @@ static struct _card_info card_info_SD8987 = {
|
|||
|
||||
/** Driver version */
|
||||
char driver_version[MLAN_MAX_VER_STR_LEN] =
|
||||
INTF_CARDTYPE KERN_VERSION "--" MLAN_RELEASE_VERSION "-GPL"
|
||||
"-("
|
||||
INTF_CARDTYPE KERN_VERSION "--" MLAN_RELEASE_VERSION "-("
|
||||
"FP" FPNUM ")"
|
||||
#ifdef DEBUG_LEVEL2
|
||||
"-dbg"
|
||||
|
|
@ -1006,7 +1005,13 @@ u16 woal_select_queue(struct net_device *dev, struct sk_buff *skb,
|
|||
u16 woal_select_queue(struct net_device *dev, struct sk_buff *skb);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(XDP_SUPPORT)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
||||
static int woal_xdp_xmit(struct net_device *dev, int num_frames,
|
||||
struct xdp_frame **frames, t_u32 flags);
|
||||
static int woal_bpf(struct net_device *dev, struct netdev_bpf *xdp);
|
||||
#endif
|
||||
#endif
|
||||
static moal_handle *reset_handle;
|
||||
/** Hang workqueue */
|
||||
static struct workqueue_struct *hang_workqueue;
|
||||
|
|
@ -5732,6 +5737,12 @@ const struct net_device_ops woal_netdev_ops = {
|
|||
#endif
|
||||
.ndo_select_queue = woal_select_queue,
|
||||
.ndo_validate_addr = eth_validate_addr,
|
||||
#if defined(XDP_SUPPORT)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
||||
.ndo_bpf = woal_bpf,
|
||||
.ndo_xdp_xmit = woal_xdp_xmit,
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
@ -5793,6 +5804,13 @@ mlan_status woal_init_sta_dev(struct net_device *dev, moal_private *priv)
|
|||
dev->hard_header_len += MLAN_MIN_DATA_HEADER_LEN + sizeof(mlan_buffer) +
|
||||
priv->extra_tx_head_len;
|
||||
#endif
|
||||
#if defined(XDP_SUPPORT)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
|
||||
dev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
|
||||
NETDEV_XDP_ACT_NDO_XMIT |
|
||||
NETDEV_XDP_ACT_NDO_XMIT_SG;
|
||||
#endif
|
||||
#endif
|
||||
#ifdef STA_WEXT
|
||||
if (IS_STA_WEXT(priv->phandle->params.cfg80211_wext)) {
|
||||
#if WIRELESS_EXT < 21
|
||||
|
|
@ -6403,6 +6421,7 @@ moal_private *woal_add_interface(moal_handle *handle, t_u8 bss_index,
|
|||
|
||||
INIT_LIST_HEAD(&priv->tx_stat_queue);
|
||||
spin_lock_init(&priv->tx_stat_lock);
|
||||
priv->tx_stat_queue_size = 0;
|
||||
INIT_LIST_HEAD(&priv->mcast_list);
|
||||
spin_lock_init(&priv->mcast_lock);
|
||||
|
||||
|
|
@ -6443,6 +6462,13 @@ moal_private *woal_add_interface(moal_handle *handle, t_u8 bss_index,
|
|||
|| bss_type == MLAN_BSS_TYPE_WIFIDIRECT
|
||||
#endif
|
||||
|| bss_type == MLAN_BSS_TYPE_NAN) {
|
||||
#ifdef XDP_SUPPORT
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
|
||||
dev->xdp_features = NETDEV_XDP_ACT_BASIC |
|
||||
NETDEV_XDP_ACT_REDIRECT |
|
||||
NETDEV_XDP_ACT_NDO_XMIT;
|
||||
#endif
|
||||
#endif
|
||||
if (MLAN_STATUS_SUCCESS != woal_init_sta_dev(dev, priv)) {
|
||||
PRINTM(MERROR, "Failed to initialize station mode\n");
|
||||
goto error;
|
||||
|
|
@ -13675,28 +13701,36 @@ void woal_survey_dump_reset(moal_private *priv)
|
|||
* @return N/A
|
||||
*
|
||||
*/
|
||||
static void woal_send_bss_scan_result(moal_private *priv)
|
||||
static void woal_send_cfg_bss_scan_result(moal_private *priv)
|
||||
{
|
||||
unsigned long flags;
|
||||
struct cfg80211_scan_request *scan_req = NULL;
|
||||
t_u8 update_scan_time = MFALSE;
|
||||
|
||||
spin_lock_irqsave(&priv->phandle->scan_req_lock, flags);
|
||||
if (priv->phandle->scan_request) {
|
||||
PRINTM(MINFO, "Reporting scan results\n");
|
||||
woal_inform_bss_from_scan_result(priv, NULL, MOAL_NO_WAIT);
|
||||
scan_req = priv->phandle->scan_request;
|
||||
if (scan_req) {
|
||||
priv->phandle->scan_request = NULL;
|
||||
if (!priv->phandle->first_scan_done) {
|
||||
priv->phandle->first_scan_done = MTRUE;
|
||||
if (!priv->phandle->user_scan_cfg)
|
||||
woal_set_scan_time(priv, ACTIVE_SCAN_CHAN_TIME,
|
||||
PASSIVE_SCAN_CHAN_TIME,
|
||||
SPECIFIC_SCAN_CHAN_TIME);
|
||||
}
|
||||
if (priv->phandle->scan_request) {
|
||||
cancel_delayed_work(&priv->phandle->scan_timeout_work);
|
||||
woal_cfg80211_scan_done(priv->phandle->scan_request,
|
||||
MFALSE);
|
||||
priv->phandle->scan_request = NULL;
|
||||
update_scan_time = !priv->phandle->user_scan_cfg;
|
||||
}
|
||||
}
|
||||
spin_unlock_irqrestore(&priv->phandle->scan_req_lock, flags);
|
||||
|
||||
if (scan_req) {
|
||||
PRINTM(MINFO, "Reporting scan results\n");
|
||||
woal_inform_bss_from_scan_result(priv, NULL, MOAL_NO_WAIT);
|
||||
|
||||
if (update_scan_time) {
|
||||
woal_set_scan_time(priv, ACTIVE_SCAN_CHAN_TIME,
|
||||
PASSIVE_SCAN_CHAN_TIME,
|
||||
SPECIFIC_SCAN_CHAN_TIME);
|
||||
}
|
||||
|
||||
cancel_delayed_work(&priv->phandle->scan_timeout_work);
|
||||
woal_cfg80211_scan_done(scan_req, MFALSE);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/**
|
||||
|
|
@ -13877,7 +13911,8 @@ t_void woal_evt_work_queue(struct work_struct *work)
|
|||
#endif /* UAP_SUPPORT */
|
||||
#ifdef STA_CFG80211
|
||||
case WOAL_EVENT_CFG80211_INFORM_BSS:
|
||||
woal_send_bss_scan_result((moal_private *)evt->priv);
|
||||
woal_send_cfg_bss_scan_result(
|
||||
(moal_private *)evt->priv);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -2207,6 +2207,8 @@ struct _moal_private {
|
|||
spinlock_t tx_stat_lock;
|
||||
/** tx_seq_num */
|
||||
t_u8 tx_seq_num;
|
||||
/** tx status queue size */
|
||||
t_u16 tx_stat_queue_size;
|
||||
/** tx status queue */
|
||||
struct list_head tx_stat_queue;
|
||||
/** rx hgm data */
|
||||
|
|
@ -3189,7 +3191,7 @@ struct _moal_handle {
|
|||
/** Firmware release number */
|
||||
fw_release_version fw_release_number;
|
||||
/** Firmware Hotfix version */
|
||||
t_u8 fw_hotfix_version;
|
||||
t_u16 fw_hotfix_version;
|
||||
/** Firmware support bands */
|
||||
t_u16 fw_bands;
|
||||
/** ECSA support */
|
||||
|
|
@ -5053,6 +5055,7 @@ extern void woal_process_ch_sel_and_switch(moal_private *priv,
|
|||
extern mlan_status moal_agcs_trans_state(moal_private *priv,
|
||||
agcs_state next_state);
|
||||
extern void woal_agcs_event(moal_private *priv, pagcs_event pacs_start_event);
|
||||
extern agcs_state moal_agcs_get_state(moal_private *priv);
|
||||
#endif /* UAP_SUPPORT */
|
||||
|
||||
#if defined(USB)
|
||||
|
|
|
|||
|
|
@ -80,6 +80,8 @@ typedef struct _moal_lock {
|
|||
spinlock_t lock;
|
||||
/** Flags */
|
||||
unsigned long flags;
|
||||
/** unique lockdep key per instance */
|
||||
struct lock_class_key key;
|
||||
} moal_lock;
|
||||
|
||||
/********************************************************
|
||||
|
|
@ -795,7 +797,9 @@ mlan_status moal_init_lock(t_void *pmoal, t_void **pplock)
|
|||
mlock = kmalloc(sizeof(moal_lock), GFP_ATOMIC);
|
||||
if (!mlock)
|
||||
return MLAN_STATUS_FAILURE;
|
||||
lockdep_register_key(&mlock->key);
|
||||
spin_lock_init(&mlock->lock);
|
||||
lockdep_set_class(&mlock->lock, &mlock->key);
|
||||
*pplock = (t_void *)mlock;
|
||||
|
||||
atomic_inc(&handle->lock_count);
|
||||
|
|
@ -816,9 +820,11 @@ mlan_status moal_free_lock(t_void *pmoal, t_void *plock)
|
|||
moal_handle *handle = (moal_handle *)pmoal;
|
||||
moal_lock *mlock = plock;
|
||||
|
||||
if (!mlock)
|
||||
return MLAN_STATUS_FAILURE;
|
||||
lockdep_unregister_key(&mlock->key);
|
||||
atomic_dec(&handle->lock_count);
|
||||
kfree(mlock);
|
||||
if (mlock)
|
||||
atomic_dec(&handle->lock_count);
|
||||
|
||||
return MLAN_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
@ -1157,16 +1163,50 @@ mlan_status moal_get_hw_spec_complete(t_void *pmoal, mlan_status status,
|
|||
}
|
||||
#endif
|
||||
#ifdef PCIEAW693
|
||||
/**
|
||||
* Special/Temporary handling to manage the driver version
|
||||
* string to identify AW693/IW623 based on fw_cap value set by
|
||||
* Fw
|
||||
*/
|
||||
if ((phw->fw_cap_ext & MBIT(23)) &&
|
||||
IS_PCIEAW693(handle->card_type)) {
|
||||
moal_memcpy_ext(handle, driver_version, CARD_PCIEIW623,
|
||||
strlen(CARD_PCIEIW623),
|
||||
strlen(driver_version));
|
||||
if (IS_PCIEAW693(handle->card_type)) {
|
||||
if (phw->fw_cap_ext & MBIT(23)) {
|
||||
/**
|
||||
* Special/Temporary handling to manage the
|
||||
* driver version string to identify AW693/IW623
|
||||
* based on fw_cap value set by Fw
|
||||
*/
|
||||
if (strlen(CARD_PCIEIW623) <
|
||||
sizeof(driver_version)) {
|
||||
// coverity[overrun-buffer-arg:SUPPRESS]
|
||||
moal_memcpy_ext(handle, driver_version,
|
||||
CARD_PCIEIW623,
|
||||
strlen(CARD_PCIEIW623),
|
||||
strlen(driver_version));
|
||||
} else {
|
||||
PRINTM(MERROR,
|
||||
"chip ID (%s) len(%zu) is > (%zu)",
|
||||
CARD_PCIEIW623,
|
||||
strlen(CARD_PCIEIW623),
|
||||
sizeof(driver_version));
|
||||
}
|
||||
} else if (!(phw->fw_cap_ext & MBIT(14))) {
|
||||
/**
|
||||
* Special/Temporary handling to manage the
|
||||
* driver version string to identify AW693/692
|
||||
* based on fw_cap value set by Fw. Note: 692 is
|
||||
* the same as 693 but w/o 6G support
|
||||
*/
|
||||
if (strlen(CARD_PCIEAW692) <
|
||||
sizeof(driver_version)) {
|
||||
// coverity[overrun-buffer-arg:SUPPRESS]
|
||||
moal_memcpy_ext(handle, driver_version,
|
||||
CARD_PCIEAW692,
|
||||
strlen(CARD_PCIEAW692),
|
||||
strlen(driver_version));
|
||||
} else {
|
||||
PRINTM(MERROR,
|
||||
"chip ID (%s) len(%zu) is > (%zu)",
|
||||
CARD_PCIEAW692,
|
||||
strlen(CARD_PCIEAW692),
|
||||
sizeof(driver_version));
|
||||
}
|
||||
}
|
||||
|
||||
if (drv_ver_len >= MLAN_MAX_VER_STR_LEN - 1) {
|
||||
drv_ver_len = MLAN_MAX_VER_STR_LEN - 1;
|
||||
}
|
||||
|
|
@ -1782,6 +1822,7 @@ static mlan_status moal_recv_packet_to_mon_if(moal_handle *handle,
|
|||
t_u32 radiotap_len = 0;
|
||||
radiotap_info rt_info = {};
|
||||
t_u8 format = 0;
|
||||
t_u8 preamble_type = 0;
|
||||
t_u8 mcs = 0;
|
||||
t_u8 nss = 0;
|
||||
t_u8 bw = 0;
|
||||
|
|
@ -1840,6 +1881,9 @@ static mlan_status moal_recv_packet_to_mon_if(moal_handle *handle,
|
|||
5;
|
||||
format = (rt_info.rate_info.rate_info & 0x18) >>
|
||||
3;
|
||||
preamble_type =
|
||||
(rt_info.rate_info.rate_info & 0xC0) >>
|
||||
6;
|
||||
bw = (rt_info.rate_info.rate_info & 0x06) >> 1;
|
||||
dcm = rt_info.rate_info.dcm;
|
||||
if (format == MLAN_RATE_FORMAT_HE)
|
||||
|
|
@ -2209,155 +2253,176 @@ static mlan_status moal_recv_packet_to_mon_if(moal_handle *handle,
|
|||
he->data3 |=
|
||||
HE_CODING_LDPC_USER0;
|
||||
he->data1 |= (HE_BW_KNOWN);
|
||||
if (he_sig1)
|
||||
he->data1 |= (HE_MU_DATA);
|
||||
if (bw == 1) {
|
||||
he->data5 |= RX_HE_BW_40;
|
||||
if (he_sig2) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH1(
|
||||
out, he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out, usr_idx,
|
||||
tone);
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH3(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (tone != 0) {
|
||||
he->data5 &=
|
||||
~RX_HE_BW_40;
|
||||
he->data5 |=
|
||||
tone;
|
||||
}
|
||||
}
|
||||
} else if (bw == 2) {
|
||||
he->data5 |= RX_HE_BW_80;
|
||||
if (he_sig2) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH1(
|
||||
out, he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out, usr_idx,
|
||||
tone);
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH2(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (!tone) {
|
||||
if ((he_sig2 &
|
||||
MLAN_80_CENTER_RU) &&
|
||||
!usr_idx) {
|
||||
tone = RU_TONE_26;
|
||||
} else {
|
||||
usr_idx--;
|
||||
}
|
||||
}
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH3(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH4(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (tone != 0) {
|
||||
he->data5 &=
|
||||
~RX_HE_BW_80;
|
||||
he->data5 |=
|
||||
tone;
|
||||
}
|
||||
}
|
||||
} else if (bw == 3) {
|
||||
he->data5 |= RX_HE_BW_160;
|
||||
if (he_sig2) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH1(
|
||||
out, he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out, usr_idx,
|
||||
tone);
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH2(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (!tone) {
|
||||
if ((he_sig2 &
|
||||
MLAN_160_CENTER_RU) &&
|
||||
!usr_idx) {
|
||||
tone = RU_TONE_26;
|
||||
} else {
|
||||
usr_idx--;
|
||||
}
|
||||
}
|
||||
if (!tone) {
|
||||
MLAN_DECODING_160_RU_CH3(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (!tone) {
|
||||
MLAN_DECODING_160_RU_CH3(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (tone != 0) {
|
||||
he->data5 &=
|
||||
~RX_HE_BW_160;
|
||||
he->data5 |=
|
||||
tone;
|
||||
}
|
||||
}
|
||||
if (preamble_type == 1) { // HE_EXT_SU
|
||||
he->data1 =
|
||||
(he->data1 & (~0x3)) +
|
||||
preamble_type;
|
||||
he->data5 =
|
||||
(he->data5 & (~0xF)) +
|
||||
(bw ? 6 : 0);
|
||||
} else {
|
||||
if (he_sig2) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH1(
|
||||
out, he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out, usr_idx,
|
||||
tone);
|
||||
if (tone) {
|
||||
he->data5 |=
|
||||
tone;
|
||||
if (he_sig1)
|
||||
he->data1 |=
|
||||
(HE_MU_DATA);
|
||||
if (bw == 1) {
|
||||
he->data5 |=
|
||||
RX_HE_BW_40;
|
||||
if (he_sig2) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH1(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH3(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (tone != 0) {
|
||||
he->data5 &=
|
||||
~RX_HE_BW_40;
|
||||
he->data5 |=
|
||||
tone;
|
||||
}
|
||||
}
|
||||
} else if (bw == 2) {
|
||||
he->data5 |=
|
||||
RX_HE_BW_80;
|
||||
if (he_sig2) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH1(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH2(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (!tone) {
|
||||
if ((he_sig2 &
|
||||
MLAN_80_CENTER_RU) &&
|
||||
!usr_idx) {
|
||||
tone = RU_TONE_26;
|
||||
} else {
|
||||
usr_idx--;
|
||||
}
|
||||
}
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH3(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH4(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (tone != 0) {
|
||||
he->data5 &=
|
||||
~RX_HE_BW_80;
|
||||
he->data5 |=
|
||||
tone;
|
||||
}
|
||||
}
|
||||
} else if (bw == 3) {
|
||||
he->data5 |=
|
||||
RX_HE_BW_160;
|
||||
if (he_sig2) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH1(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
if (!tone) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH2(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (!tone) {
|
||||
if ((he_sig2 &
|
||||
MLAN_160_CENTER_RU) &&
|
||||
!usr_idx) {
|
||||
tone = RU_TONE_26;
|
||||
} else {
|
||||
usr_idx--;
|
||||
}
|
||||
}
|
||||
if (!tone) {
|
||||
MLAN_DECODING_160_RU_CH3(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (!tone) {
|
||||
MLAN_DECODING_160_RU_CH3(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
}
|
||||
if (tone != 0) {
|
||||
he->data5 &=
|
||||
~RX_HE_BW_160;
|
||||
he->data5 |=
|
||||
tone;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (he_sig2) {
|
||||
MLAN_DECODE_RU_SIGNALING_CH1(
|
||||
out,
|
||||
he_sig1,
|
||||
he_sig2);
|
||||
MLAN_DECODE_RU_TONE(
|
||||
out,
|
||||
usr_idx,
|
||||
tone);
|
||||
if (tone) {
|
||||
he->data5 |=
|
||||
tone;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2367,10 +2432,10 @@ static mlan_status moal_recv_packet_to_mon_if(moal_handle *handle,
|
|||
he->data1 |= (HE_MCS_KNOWN);
|
||||
|
||||
he->data3 |= (mcs << 8);
|
||||
he->data3 |= (dcm << 12);
|
||||
he->data6 |= nss;
|
||||
he->data1 |= (HE_DCM_KNOWN);
|
||||
he->data1 = cpu_to_le16(he->data1);
|
||||
he->data5 |= (dcm << 12);
|
||||
he->data5 = cpu_to_le16(he->data5);
|
||||
he->data3 = cpu_to_le16(he->data3);
|
||||
|
||||
|
|
@ -3783,7 +3848,19 @@ mlan_status moal_recv_event(t_void *pmoal, pmlan_event pmevent)
|
|||
memset(wrqu.ap_addr.sa_data, 0x00, ETH_ALEN);
|
||||
moal_memcpy_ext(priv->phandle, wrqu.ap_addr.sa_data,
|
||||
pmevent->event_buf, ETH_ALEN,
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 211) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.10 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 150) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.15 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80) && /* Original change \
|
||||
introduced here \
|
||||
in mainline */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(6, 19, 0)) /* Reverted here in \
|
||||
mainline */
|
||||
sizeof(wrqu.ap_addr.sa_data_min));
|
||||
#else
|
||||
sizeof(wrqu.ap_addr.sa_data));
|
||||
|
|
@ -5532,6 +5609,7 @@ mlan_status moal_recv_event(t_void *pmoal, pmlan_event pmevent)
|
|||
bool ack;
|
||||
struct sk_buff *skb = (struct sk_buff *)tx_info->tx_skb;
|
||||
list_del(&tx_info->link);
|
||||
priv->tx_stat_queue_size--;
|
||||
spin_unlock_irqrestore(&priv->tx_stat_lock, flag);
|
||||
if (!tx_status->status)
|
||||
ack = true;
|
||||
|
|
@ -5724,8 +5802,8 @@ mlan_status moal_recv_event(t_void *pmoal, pmlan_event pmevent)
|
|||
roam_info->req_ie_len = ie_len;
|
||||
roam_info->resp_ie = pinfo->rsp_ie;
|
||||
roam_info->resp_ie_len = pinfo->header.len;
|
||||
#if (CFG80211_VERSION_CODE >= KERNEL_VERSION(5, 19, 0) || \
|
||||
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
|
||||
#if ((CFG80211_VERSION_CODE > KERNEL_VERSION(5, 19, 1)) || \
|
||||
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 31))
|
||||
if (priv->wdev->u.client.ssid_len)
|
||||
#else
|
||||
if (priv->wdev->ssid_len)
|
||||
|
|
|
|||
|
|
@ -1512,7 +1512,7 @@ static mlan_status woal_send_domain_info_cmd_fw(moal_private *priv,
|
|||
cfg_11d->param.domain_info.sub_band[no_of_sub_band]
|
||||
.no_of_chan = no_of_parsed_chan;
|
||||
cfg_11d->param.domain_info.sub_band[no_of_sub_band]
|
||||
.max_tx_pwr = pwr;
|
||||
.max_tx_pwr = max_pwr;
|
||||
no_of_sub_band++;
|
||||
next_chan = first_chan = (t_u32)channel->hw_value;
|
||||
max_pwr = pwr;
|
||||
|
|
@ -4634,7 +4634,14 @@ static mlan_status woal_cfg80211_dump_station_info(moal_private *priv,
|
|||
ENTER();
|
||||
|
||||
if (priv->phandle->scan_pending_on_block) {
|
||||
if (priv->sinfo)
|
||||
if (priv->sinfo) {
|
||||
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(6, 18, 0)
|
||||
struct link_station_info
|
||||
*saved_links[IEEE80211_MLD_MAX_NUM_LINKS];
|
||||
for (int i = 0; i < IEEE80211_MLD_MAX_NUM_LINKS; i++) {
|
||||
saved_links[i] = sinfo->links[i];
|
||||
}
|
||||
#endif
|
||||
moal_memcpy_ext(priv->phandle, sinfo, priv->sinfo,
|
||||
sizeof(struct station_info),
|
||||
#if (CFG80211_VERSION_CODE >= KERNEL_VERSION(6, 18, 0) || \
|
||||
|
|
@ -4643,6 +4650,12 @@ static mlan_status woal_cfg80211_dump_station_info(moal_private *priv,
|
|||
#else
|
||||
sizeof(struct station_info));
|
||||
#endif
|
||||
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(6, 18, 0)
|
||||
for (int i = 0; i < IEEE80211_MLD_MAX_NUM_LINKS; i++) {
|
||||
sinfo->links[i] = saved_links[i];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
LEAVE();
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4874,6 +4874,9 @@ int woal_uap_bss_ctrl(moal_private *priv, t_u8 wait_option, int data)
|
|||
}
|
||||
woal_flush_tx_stat_queue(priv);
|
||||
woal_flush_tcp_sess_queue(priv);
|
||||
if (moal_agcs_get_state(priv) != AGCS_STATE_IDLE) {
|
||||
moal_agcs_trans_state(priv, AGCS_STATE_START);
|
||||
}
|
||||
} else if (data == UAP_BSS_START) {
|
||||
/* Due to the influence of DMCS, the configurations using FW cmd
|
||||
* must wait until BSS START. */
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file contains wireless extension standard ioctl functions
|
||||
*
|
||||
*
|
||||
* Copyright 2010-2021, 2025 NXP
|
||||
* Copyright 2010-2021, 2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -243,7 +243,19 @@ static int woal_get_wap(struct net_device *dev, struct iw_request_info *info,
|
|||
if (priv->bss_started)
|
||||
moal_memcpy_ext(priv->phandle, awrq->sa_data,
|
||||
priv->current_addr, MLAN_MAC_ADDR_LENGTH,
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 211) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.10 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 150) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.15 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80) && /* Original change \
|
||||
introduced here \
|
||||
in mainline */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(6, 19, 0)) /* Reverted here in \
|
||||
mainline */
|
||||
sizeof(awrq->sa_data_min));
|
||||
#else
|
||||
sizeof(awrq->sa_data));
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @brief This file contains wireless extension standard ioctl functions
|
||||
*
|
||||
*
|
||||
* Copyright 2008-2025 NXP
|
||||
* Copyright 2008-2026 NXP
|
||||
*
|
||||
* This software file (the File) is distributed by NXP
|
||||
* under the terms of the GNU General Public License Version 2, June 1991
|
||||
|
|
@ -588,7 +588,19 @@ static int woal_get_wap(struct net_device *dev, struct iw_request_info *info,
|
|||
|
||||
if (bss_info.media_connected == MTRUE)
|
||||
moal_memcpy_ext(priv->phandle, awrq->sa_data, &bss_info.bssid,
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 211) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.10 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 150) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.15 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80) && /* Original change \
|
||||
introduced here \
|
||||
in mainline */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(6, 19, 0)) /* Reverted here in \
|
||||
mainline */
|
||||
MLAN_MAC_ADDR_LENGTH,
|
||||
sizeof(awrq->sa_data_min));
|
||||
#else
|
||||
|
|
@ -3072,7 +3084,19 @@ static int woal_get_scan(struct net_device *dev, struct iw_request_info *info,
|
|||
iwe.u.ap_addr.sa_family = ARPHRD_ETHER;
|
||||
moal_memcpy_ext(priv->phandle, iwe.u.ap_addr.sa_data,
|
||||
&scan_table[i].mac_address, ETH_ALEN,
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 211) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.10 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 150) && /* Backported \
|
||||
from 6.1.80 \
|
||||
to 5.15 LTS */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) || \
|
||||
(LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 80) && /* Original change \
|
||||
introduced here \
|
||||
in mainline */ \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(6, 19, 0)) /* Reverted here in \
|
||||
mainline */
|
||||
sizeof(iwe.u.ap_addr.sa_data_min));
|
||||
#else
|
||||
sizeof(iwe.u.ap_addr.sa_data));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue