Driver commit for release MM6X18542.p8_V1 2026-01-29_23:48:25

Firmware version for commit::
W9098-17.92.1.p149.84
IW416-16.92.21.p155.1
W8987-16.92.21.p155.1
IW612-18.99.8.p3
IW610-18.99.8.p3
AW693-18.99.2.p145.172

Signed-off-by: AMIT CHOUDHARY <amit.kumar_13@nxp.com>
This commit is contained in:
AMIT CHOUDHARY 2026-01-29 23:48:25 +05:30 • committed by Sherry Sun
parent b08958dc25
commit e9b6c82ac2
41 changed files with 685 additions and 185 deletions

View file

@ -32,4 +32,3 @@ config NXP_WLAN_DRIVER
WLAN chipsets.
Say Y here to add support for NXP WLAN driver into the kernel,
or say M here to compile as a module (mlan.ko and moal.ko)

View file

@ -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.p2"'
ccflags-y += -DMLAN_EXT_RELEASE_VERSION='"542.p2"'
ccflags-y += -DMLAN_RELEASE_VERSION='"542.p8"'
ccflags-y += -DMLAN_EXT_RELEASE_VERSION='"542.p8"'
ccflags-y += -DREL_MILESTONE='""'
ccflags-y += -DFPNUM='"92"'

5
README
View file

@ -3,7 +3,7 @@
================================================================================
U S E R M A N U A L
Copyright 2008-2025 NXP
Copyright 2008-2026 NXP
1) FOR DRIVER BUILD
@ -11,7 +11,7 @@
Goto source code directory.
make [clean] build
The driver and utility binaries can be found in bin_wlan directory.
The driver source code is compatible with hosts running Linux kernel versions ranging from 2.6.32 to 6.17.0.
The driver source code is compatible with hosts running Linux kernel versions ranging from 2.6.32 to 6.18.2.
2) FOR INTEGRATING DRIVER INTO LINUX KERNEL (BUILT-IN SUPPORT)
@ -145,6 +145,7 @@
(Note: This feature will be supported for IW416 and IW610x chipsets with host_mlme=1 case as of now.)
tpe_ie_ignore=0|1 <obey TPE IEs from ex-AP (default) | ignore TPE IEs from ex-AP>
make_before_break=0|1, <No make before break during roam (default) | make_before_break during roam)>
amsdu_8k_rx=0|1, <not support AMPDU 8K RX, just support 4K (default) | support AMPDU 8K RX>
dts_enable=0|1 <Disable DTS | Enable DTS (default)>
fw_name = <FW file name>
e.g. copy pcieuart9098_combo_v1.bin to firmware directory, fw_name=nxp/pcieuart9098_combo_v1.bin

View file

@ -3,7 +3,7 @@
* @brief This file contains the functions for station ioctl.
*
*
* Copyright 2011-2021 NXP
* Copyright 2011-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -134,6 +134,7 @@ static void wlan_fill_cap_info(mlan_private *priv, VHT_capa_t *vht_cap,
t_u16 bands)
{
t_u32 usr_dot_11ac_dev_cap;
t_u32 cfg_value = 0;
ENTER();
if (bands & BAND_A)
@ -144,6 +145,16 @@ static void wlan_fill_cap_info(mlan_private *priv, VHT_capa_t *vht_cap,
vht_cap->vht_cap_info = usr_dot_11ac_dev_cap;
RESET_VHTCAP_MAXMPDULEN(vht_cap->vht_cap_info);
/*
Set to 0 for 3895 octets.
Set to 1 for 7991 octets.
Set to 2 for 11 454 octets.
*/
cfg_value = GET_VHTCAP_MAXMPDULEN(usr_dot_11ac_dev_cap);
if (cfg_value &&
(priv->adapter->rx_buf_size >= MLAN_RX_DATA_BUF_SIZE_8K)) {
SET_VHTCAP_MAXMPDULEN(vht_cap->vht_cap_info, 1);
}
LEAVE();
}
@ -205,12 +216,16 @@ static mlan_status wlan_11ac_ioctl_vhtcfg(pmlan_adapter pmadapter,
cfg->param.vht_cfg.vht_cap_info &
pmadapter->hw_dot_11ac_dev_cap;
/** set MAX MPDU LEN field (bit 0 - bit 1) */
RESET_VHTCAP_MAXMPDULEN(usr_vht_cap_info);
cfg_value =
GET_VHTCAP_MAXMPDULEN(cfg->param.vht_cfg.vht_cap_info);
hw_value =
GET_VHTCAP_MAXMPDULEN(pmadapter->hw_dot_11ac_dev_cap);
SET_VHTCAP_MAXMPDULEN(usr_vht_cap_info,
MIN(cfg_value, hw_value));
if (cfg_value && hw_value &&
(pmpriv->adapter->rx_buf_size >=
MLAN_RX_DATA_BUF_SIZE_8K)) {
SET_VHTCAP_MAXMPDULEN(usr_vht_cap_info, 1);
}
/** set CHAN Width Set field (bit 2 - bit 3) */
cfg_value = GET_VHTCAP_CHWDSET(cfg->param.vht_cfg.vht_cap_info);
hw_value = GET_VHTCAP_CHWDSET(pmadapter->hw_dot_11ac_dev_cap);

View file

@ -3,7 +3,7 @@
* @brief This file contains functions for 11n handling.
*
*
* Copyright 2008-2021, 2025 NXP
* Copyright 2008-2021, 2025-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -215,14 +215,25 @@ static mlan_status wlan_11n_ioctl_httxcfg(pmlan_adapter pmadapter,
mlan_private *pmpriv = pmadapter->priv[pioctl_req->bss_index];
mlan_ds_11n_cfg *cfg = MNULL;
t_u16 cmd_action = 0;
t_u32 cfg_value = 0;
t_u32 hw_value = 0;
ENTER();
cfg = (mlan_ds_11n_cfg *)pioctl_req->pbuf;
if (pioctl_req->action == MLAN_ACT_SET)
if (pioctl_req->action == MLAN_ACT_SET) {
RESETHT_MAXAMSDU(cfg->param.tx_cfg.httxcap);
cfg_value = GETHT_MAXAMSDU(cfg->param.tx_cfg.httxcap);
hw_value = ISSUPP_MAXAMSDU(pmadapter->hw_dot_11n_dev_cap);
if (cfg_value && hw_value &&
(pmpriv->adapter->rx_buf_size >=
MLAN_RX_DATA_BUF_SIZE_8K)) {
SETHT_MAXAMSDU(cfg->param.tx_cfg.httxcap);
}
cmd_action = HostCmd_ACT_GEN_SET;
else
} else {
cmd_action = HostCmd_ACT_GEN_GET;
}
/* Send request to firmware */
ret = wlan_prepare_cmd(pmpriv, HostCmd_CMD_11N_CFG, cmd_action, 0,
@ -1294,6 +1305,7 @@ static TxBAStreamTbl *wlan_11n_get_txbastream_status(mlan_private *priv,
static void wlan_fill_cap_info(mlan_private *priv, HTCap_t *ht_cap, t_u16 bands)
{
t_u32 usr_dot_11n_dev_cap;
t_u32 cfg_value = 0;
ENTER();
@ -1355,6 +1367,11 @@ static void wlan_fill_cap_info(mlan_private *priv, HTCap_t *ht_cap, t_u16 bands)
/* Need change to support 8k AMSDU receive */
RESETHT_MAXAMSDU(ht_cap->ht_cap_info);
cfg_value = ISSUPP_MAXAMSDU(usr_dot_11n_dev_cap);
if (cfg_value &&
(priv->adapter->rx_buf_size >= MLAN_RX_DATA_BUF_SIZE_8K)) {
SETHT_MAXAMSDU(ht_cap->ht_cap_info);
}
/* SM power save */
RESETHT_SM_POWERSAVE(ht_cap->ht_cap_info); /* Clear to HT SMPS static
@ -1428,7 +1445,8 @@ static void wlan_reset_cap_info(mlan_private *priv, HTCap_t *ht_cap,
RESETHT_DELAYEDBACK(ht_cap->ht_cap_info);
/* Need change to support 8k AMSDU receive */
RESETHT_MAXAMSDU(ht_cap->ht_cap_info);
if (!ISSUPP_MAXAMSDU(usr_dot_11n_dev_cap))
RESETHT_MAXAMSDU(ht_cap->ht_cap_info);
/* SM power save */
if (!ISSUPP_MIMOPS(usr_dot_11n_dev_cap))
SETHT_SMPS_DISABLE(ht_cap->ht_cap_info); /* Disable HT SMPS */

View file

@ -3,7 +3,7 @@
* @brief This file contains functions for 11n Aggregation.
*
*
* Copyright 2008-2021, 2025 NXP
* Copyright 2008-2021, 2025-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -423,7 +423,7 @@ mlan_status wlan_11n_deaggregate_pkt(mlan_private *priv, pmlan_buffer pmbuf)
int total_pkt_len;
t_u8 *data = MNULL;
mlan_adapter *pmadapter = priv->adapter;
t_u32 max_rx_data_size = MLAN_RX_DATA_BUF_SIZE;
t_u32 max_rx_data_size = pmadapter->rx_buf_size;
int pad;
mlan_status ret = MLAN_STATUS_FAILURE;
RxPacketHdr_t *prx_pkt;
@ -464,7 +464,7 @@ mlan_status wlan_11n_deaggregate_pkt(mlan_private *priv, pmlan_buffer pmbuf)
pmadapter->pcard_usb->usb_rx_deaggr
.aggr_ctrl.aggr_align);
max_rx_data_size =
MAX(max_rx_data_size, MLAN_RX_DATA_BUF_SIZE);
MAX(max_rx_data_size, pmadapter->rx_buf_size);
}
}
#endif
@ -510,7 +510,7 @@ mlan_status wlan_11n_deaggregate_pkt(mlan_private *priv, pmlan_buffer pmbuf)
goto done;
}
}
/* total_pkt_len is limited up to MLAN_RX_DATA_BUF_SIZE */
/* total_pkt_len is limited up to rx_buf_size */
// coverity[misra_c_2012_directive_4_14_violation:SUPPRESS]
while (total_pkt_len >= hdr_len) {
prx_pkt = (RxPacketHdr_t *)data;

View file

@ -4,7 +4,7 @@
* @brief This file contains the handling of CMD/EVENT in MLAN
*
*
* 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
@ -5490,11 +5490,15 @@ mlan_status wlan_cmd_func_init(pmlan_private pmpriv, HostCmd_DS_COMMAND *cmd)
HostCmd_DS_FUNC_INIT *func_init = &cmd->params.func_init;
mlan_adapter *pmadapter = pmpriv->adapter;
MrvlIEtypes_boot_time_cfg_t *pboot_time_tlv = MNULL;
MrvlIEtypes_host_max_rx_buf_size_t *prx_buf_size_tlv = MNULL;
t_u8 *tlv_buf = MNULL;
ENTER();
cmd->command = wlan_cpu_to_le16(HostCmd_CMD_FUNC_INIT);
cmd->size = S_DS_GEN + sizeof(MrvlIEtypes_boot_time_cfg_t);
pboot_time_tlv = (MrvlIEtypes_boot_time_cfg_t *)func_init->tlv_buf;
tlv_buf = func_init->tlv_buf;
pboot_time_tlv = (MrvlIEtypes_boot_time_cfg_t *)tlv_buf;
pboot_time_tlv->type = wlan_cpu_to_le16(TLV_TYPE_BOOT_TIME_CFG);
pboot_time_tlv->len =
wlan_cpu_to_le16(sizeof(MrvlIEtypes_boot_time_cfg_t) -
@ -5504,6 +5508,16 @@ mlan_status wlan_cmd_func_init(pmlan_private pmpriv, HostCmd_DS_COMMAND *cmd)
} else {
pboot_time_tlv->enable = MFALSE;
}
tlv_buf += sizeof(MrvlIEtypes_boot_time_cfg_t);
prx_buf_size_tlv = (MrvlIEtypes_host_max_rx_buf_size_t *)tlv_buf;
prx_buf_size_tlv->type = wlan_cpu_to_le16(TLV_HOST_MAX_RX_BUF_SIZE);
prx_buf_size_tlv->len =
wlan_cpu_to_le16(sizeof(MrvlIEtypes_host_max_rx_buf_size_t) -
sizeof(MrvlIEtypesHeader_t));
prx_buf_size_tlv->max_rx_buf_size =
wlan_cpu_to_le16(pmadapter->rx_buf_size);
prx_buf_size_tlv->reserved = 0;
cmd->size += sizeof(MrvlIEtypes_host_max_rx_buf_size_t);
cmd->size = wlan_cpu_to_le16(cmd->size);
LEAVE();
return MLAN_STATUS_SUCCESS;
@ -7031,6 +7045,7 @@ mlan_status wlan_ret_get_hw_spec(pmlan_private pmpriv, HostCmd_DS_COMMAND *resp,
t_u16 fw_pl_ver = 0;
MrvlIEtypes_fw_ver_info_t *api_rev = MNULL;
t_u16 api_id = 0;
t_u16 dev_max_amsdu_size;
MrvlIEtypesHeader_t *tlv = MNULL;
pmlan_ioctl_req pioctl_req = (mlan_ioctl_req *)pioctl_buf;
MrvlIEtypes_Max_Conn_t *tlv_max_conn = MNULL;
@ -7131,6 +7146,18 @@ mlan_status wlan_ret_get_hw_spec(pmlan_private pmpriv, HostCmd_DS_COMMAND *resp,
MLAN_MAC_ADDR_LENGTH);
pmadapter->hw_dot_11n_dev_cap =
wlan_le32_to_cpu(hw_spec->dot_11n_dev_cap);
dev_max_amsdu_size = ISSUPP_MAXAMSDU(hw_spec->dot_11n_dev_cap) ?
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->dot_11n_dev_cap))
SETSUPP_MAXAMSDU(pmadapter->hw_dot_11n_dev_cap);
else
RESETSUPP_MAXAMSDU(pmadapter->hw_dot_11n_dev_cap);
pmadapter->hw_dev_mcs_support = hw_spec->dev_mcs_support;
pmadapter->hw_mpdu_density = GET_MPDU_DENSITY(hw_spec->hw_dev_cap);
PRINTM(MCMND, "GET_HW_SPEC: hw_mpdu_density=%d dev_mcs_support=0x%x\n",
@ -7165,6 +7192,17 @@ 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) ?
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))
SETSUPP_MAXAMSDU(pmadapter->hw_dot_11ac_dev_cap);
else
RESETSUPP_MAXAMSDU(pmadapter->hw_dot_11ac_dev_cap);
pmadapter->hw_dot_11ac_mcs_support =
wlan_le32_to_cpu(hw_spec->Dot11acMcsSupport);
for (i = 0; i < pmadapter->priv_num; i++) {
@ -11892,6 +11930,88 @@ mlan_status wlan_ret_foundry_type(pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
/**
* @brief This function prepares command to set debug temperature
*
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param pdata_buf A pointer to data buffer
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
mlan_status wlan_cmd_set_debug_temperature(pmlan_private pmpriv,
HostCmd_DS_COMMAND *cmd,
t_u16 cmd_action, t_void *pdata_buf)
{
HostCmd_DS_SET_DEBUG_TEMPERATURE *temp_config = &cmd->params.temp_cfg;
mlan_ds_set_debug_temperature *cfg =
(mlan_ds_set_debug_temperature *)pdata_buf;
t_u8 rfu = 0;
t_u8 rpath = 0;
ENTER();
cmd->command = wlan_cpu_to_le16(HostCmd_CMD_SET_DEBUG_TEMPERATURE);
cmd->size = wlan_cpu_to_le16(sizeof(HostCmd_DS_SET_DEBUG_TEMPERATURE) +
S_DS_GEN);
temp_config->action = wlan_cpu_to_le16(cmd_action);
temp_config->simulation_enable =
wlan_cpu_to_le16(cfg->simulation_enable);
if (temp_config->simulation_enable == 0) {
cmd->size = wlan_cpu_to_le16(
sizeof(temp_config->action) +
sizeof(temp_config->simulation_enable) + S_DS_GEN);
} else {
temp_config->cau_temp = wlan_cpu_to_le32(cfg->cau_temp);
for (rfu = 0; rfu < MAX_RFUS; rfu++) {
for (rpath = 0; rpath < MAX_PATHS; rpath++) {
temp_config->rf_temp[rfu][rpath] =
wlan_cpu_to_le32(
cfg->rf_temp[rfu][rpath]);
}
}
}
LEAVE();
return MLAN_STATUS_SUCCESS;
}
/**
* @brief This function handles the command response of debug temperature
*
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
*
* @return MLAN_STATUS_SUCCESS
*/
mlan_status wlan_ret_debug_temperature(pmlan_private pmpriv,
HostCmd_DS_COMMAND *resp,
mlan_ioctl_req *pioctl_buf)
{
HostCmd_DS_SET_DEBUG_TEMPERATURE *temp_config =
(HostCmd_DS_SET_DEBUG_TEMPERATURE *)&resp->params.temp_cfg;
mlan_ds_misc_cfg *cfg = MNULL;
t_u8 rfu = 0;
t_u8 rpath = 0;
ENTER();
if (pioctl_buf) {
cfg = (mlan_ds_misc_cfg *)pioctl_buf->pbuf;
cfg->param.temp_cfg.simulation_enable =
wlan_le16_to_cpu(temp_config->simulation_enable);
cfg->param.temp_cfg.cau_temp =
wlan_le32_to_cpu(temp_config->cau_temp);
for (rfu = 0; rfu < MAX_RFUS; rfu++) {
for (rpath = 0; rpath < MAX_PATHS; rpath++) {
cfg->param.temp_cfg
.rf_temp[rfu][rpath] = wlan_le32_to_cpu(
temp_config->rf_temp[rfu][rpath]);
}
}
}
LEAVE();
return MLAN_STATUS_SUCCESS;
}
/**
* @brief This function prepares command of RANGE_EXT
*

View file

@ -3,7 +3,7 @@
* @brief This file declares the generic data structures and APIs.
*
*
* 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
@ -237,8 +237,10 @@ typedef t_s32 t_sval;
/** MU beamformer */
#define DEFALUT_11AC_CAP_BEAMFORMING_RESET_MASK (MBIT(19))
/** Size of rx data buffer 3839+256 */
#define MLAN_RX_DATA_BUF_SIZE 4096
#define MLAN_RX_DATA_BUF_SIZE_4K 4096
#define MLAN_RX_DATA_BUF_SIZE_8K (8 * 1024)
#define MLAN_RX_DATA_BUF_SIZE MLAN_RX_DATA_BUF_SIZE_8K
/** Size of command buffer */
/** because cal_data_size 2.4 k */
@ -345,8 +347,6 @@ typedef t_u8 mlan_802_11_mac_addr[MLAN_MAC_ADDR_LENGTH];
/* We support up to 480-byte block size due to FW buffer limitation. */
#define MLAN_SDIO_BLOCK_SIZE 256
/** define allocated buffer size */
#define ALLOC_BUF_SIZE MLAN_RX_DATA_BUF_SIZE
/** SDIO MP aggr pkt limit */
#define SDIO_MP_AGGR_DEF_PKT_LIMIT (16)
/** SDIO MP aggr pkt limit 8 */
@ -3003,6 +3003,7 @@ typedef struct _mlan_device {
t_u8 disable_11h_tpc;
t_u8 tpe_ie_ignore;
t_u32 amsdu_disable;
t_u16 amsdu_rx_size;
#ifdef SECURE_HOST
t_u32 secure_host;
#endif

View file

@ -5,7 +5,7 @@
* in MLAN module.
*
*
* 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
@ -424,6 +424,10 @@ typedef enum _WLAN_802_11_WEP_STATUS {
/** HW_SPEC Dot11nDevCap : MAX AMSDU supported */
#define ISSUPP_MAXAMSDU(Dot11nDevCap) (Dot11nDevCap & MBIT(31))
/** HW_SPEC Dot11nDevCap : Reset MAX AMSDU supported */
#define RESETSUPP_MAXAMSDU(Dot11nDevCap) (Dot11nDevCap &= ~MBIT(31))
/** HW_SPEC Dot11nDevCap : Set MAX AMSDU supported */
#define SETSUPP_MAXAMSDU(Dot11nDevCap) (Dot11nDevCap |= MBIT(31))
/** HW_SPEC Dot11nDevCap : Beamforming support */
#define ISSUPP_BEAMFORMING(Dot11nDevCap) (Dot11nDevCap & MBIT(30))
/** HW_SPEC Dot11nDevCap : Green field support */
@ -3915,6 +3919,19 @@ typedef MLAN_PACK_START struct _MrvlIEtypes_boot_time_cfg_t {
t_u8 reserve[3];
} MLAN_PACK_END MrvlIEtypes_boot_time_cfg_t, *pMrvlIEtypes_boot_time_cfg_t;
/** Host Max RX Buffer Size TLV */
typedef MLAN_PACK_START struct _MrvlIEtypes_host_max_rx_buf_size_t {
/** Header type */
t_u16 type;
/** Header length */
t_u16 len;
/** Max RX buffer size */
t_u16 max_rx_buf_size;
/** Reserved */
t_u16 reserved;
} MLAN_PACK_END MrvlIEtypes_host_max_rx_buf_size_t,
*pMrvlIEtypes_host_max_rx_buf_size_t;
/** Power_Group_t */
typedef MLAN_PACK_START struct _Power_Group_t {
/** Modulation Class */
@ -4706,6 +4723,17 @@ typedef MLAN_PACK_START struct _HostCmd_DS_GET_FOUNDRY_TYPE {
t_u8 foundry_type;
} MLAN_PACK_END HostCmd_DS_GET_FOUNDRY_TYPE;
/** Type definition of HostCmd_DS_SET_DEBUG_TEMPERATURE */
typedef MLAN_PACK_START struct _HostCmd_DS_SET_DEBUG_TEMPERATURE {
/** Action */
t_u16 action;
/** enable/disable debug thermal simulation */
t_u16 simulation_enable;
/** CAU temperature to set */
t_s32 cau_temp;
/** RFU temperature to set */
t_s32 rf_temp[MAX_RFUS][MAX_PATHS];
} MLAN_PACK_END HostCmd_DS_SET_DEBUG_TEMPERATURE;
/** Type definition of hostcmd_twt_information */
typedef struct MLAN_PACK_START _hostcmd_twt_information {
/** TWT Flow Identifier. Range: [0-7] */
@ -8003,6 +8031,7 @@ typedef struct MLAN_PACK_START _HostCmd_DS_COMMAND {
t_u8 assoc_rsp_buf[ASSOC_RSP_BUF_SIZE];
HostCmd_DS_GET_FOUNDRY_TYPE foundry_type;
HostCmd_DS_SET_DEBUG_TEMPERATURE temp_cfg;
#ifdef UAP_SUPPORT
/** Agiled channel switch configuration */
HostCmd_DS_AGCS_CFG agcs_cfg;

View file

@ -486,6 +486,10 @@ ENUM_ELEMENT(HostCmd_CMD_GET_HW_SPEC, 0x0003),
/** Host Command ID : Get foundry type */
ENUM_ELEMENT(HostCmd_CMD_DS_GET_FOUNDRY_TYPE, 0X028c),
/** Host Command ID : Set CAU, RFU temperature to run thermal
simulations */
ENUM_ELEMENT(HostCmd_CMD_SET_DEBUG_TEMPERATURE, 0x028d),
#ifdef UAP_SUPPORT
/** Host Command ID : Agiled channel switch configuration */
ENUM_ELEMENT(HostCmd_CMD_APCMD_AGCS_CFG, 0x0293),

View file

@ -406,6 +406,8 @@ enum _mlan_ioctl_req_id {
MLAN_OID_MISC_PREAMBLE_PWR_BOOST = 0x0020009D,
MLAN_OID_MISC_PER_BAND_TXPWR_CAP = 0x0020009E,
MLAN_OID_MISC_DEBUG_TEMPERATURE = 0X0020009F,
#ifdef UAP_SUPPORT
MLAN_OID_MISC_AGCS_CONFIG = 0x002000A0,
#endif /* UAP_SUPPORT */
@ -6619,6 +6621,18 @@ typedef struct _mlan_ds_tsp_cfg {
t_s32 reg_rfu_temp[MAX_RFUS][MAX_PATHS];
} MLAN_PACK_END mlan_ds_tsp_cfg;
/**thermal simulation parameters */
typedef struct _mlan_ds_set_debug_temperature {
/** Action */
t_u16 action;
/** enable/disable debug thermal simulation */
t_u16 simulation_enable;
/** CAU temperature to set */
t_s32 cau_temp;
/** RFU temperature to set */
t_s32 rf_temp[MAX_RFUS][MAX_PATHS];
} mlan_ds_set_debug_temperature;
typedef struct _mlan_ds_reorder_flush_time {
/** AC BK/BE_flush time*/
t_u16 flush_time_ac_be_bk;
@ -6907,6 +6921,7 @@ typedef struct _mlan_ds_misc_cfg {
mlan_ds_foundry_type soc_foundry_type;
mlan_ds_misc_per_band_txpwr_cap per_band_txpwr_cap;
mlan_ds_set_debug_temperature temp_cfg;
#ifdef UAP_SUPPORT
/** config AGCS for MLAN_OID_MISC_AGCS_CONFIG */

View file

@ -5,7 +5,7 @@
* in MLAN module.
*
*
* 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
@ -2614,6 +2614,8 @@ struct _mlan_adapter {
t_u16 max_tx_buf_size;
/** Tx buf size */
t_u16 tx_buf_size;
/** Rx buf size */
t_u16 rx_buf_size;
/** current tx buf size in fw */
t_u16 curr_tx_buf_size;
/** flush data flag */
@ -4763,6 +4765,17 @@ mlan_status wlan_ret_foundry_type(pmlan_private pmpriv,
mlan_status wlan_misc_ioctl_foundry_type(pmlan_adapter pmadapter,
mlan_ioctl_req *pioctl_req);
mlan_status wlan_cmd_set_debug_temperature(pmlan_private pmpriv,
HostCmd_DS_COMMAND *cmd,
t_u16 cmd_action,
t_void *pioctl_req);
mlan_status wlan_ret_debug_temperature(pmlan_private pmpriv,
HostCmd_DS_COMMAND *resp,
mlan_ioctl_req *pioctl_buf);
mlan_status wlan_misc_ioctl_debug_temperature(pmlan_adapter pmadapter,
mlan_ioctl_req *pioctl_req);
mlan_status wlan_misc_ioctl_get_tsf(pmlan_adapter pmadapter,
pmlan_ioctl_req pioctl_req);
void wlan_add_fw_cfp_tables(pmlan_private pmpriv, t_u8 *buf, t_u16 buf_left);

View file

@ -4,7 +4,7 @@
* @brief This file include miscellaneous functions for MLAN module
*
*
* 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
@ -3539,7 +3539,15 @@ mlan_status wlan_process_802dot11_mgmt_pkt(mlan_private *priv, t_u8 *payload,
!memcmp(pmadapter, pieee_pkt_hdr->addr3,
(t_u8 *)priv->curr_bss_params
.prev_bssid,
MLAN_MAC_ADDR_LENGTH)) {
MLAN_MAC_ADDR_LENGTH) ||
(pmadapter->enable_net_mon && unicast &&
!memcmp(pmadapter, pieee_pkt_hdr->addr3,
(t_u8 *)priv->curr_bss_params
.bss_descriptor.mac_address,
MLAN_MAC_ADDR_LENGTH) &&
memcmp(pmadapter, pieee_pkt_hdr->addr1,
(t_u8 *)priv->curr_addr,
MLAN_MAC_ADDR_LENGTH))) {
PRINTM(MCMND,
"Dropping Deauth frame from other bssid: type=%d " MACSTR
"\n",
@ -7358,6 +7366,42 @@ mlan_status wlan_misc_ioctl_foundry_type(pmlan_adapter pmadapter,
return ret;
}
/**
* @brief Get/Set thermal simulation temperature
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
*
* @return MLAN_STATUS_PENDING --success, otherwise fail
*/
mlan_status wlan_misc_ioctl_debug_temperature(pmlan_adapter pmadapter,
pmlan_ioctl_req pioctl_req)
{
mlan_private *pmpriv = pmadapter->priv[pioctl_req->bss_index];
mlan_status ret = MLAN_STATUS_SUCCESS;
mlan_ds_misc_cfg *misc_cfg = MNULL;
t_u16 cmd_action = 0;
ENTER();
misc_cfg = (mlan_ds_misc_cfg *)pioctl_req->pbuf;
if (pioctl_req->action == MLAN_ACT_SET)
cmd_action = HostCmd_ACT_GEN_SET;
else if (pioctl_req->action == MLAN_ACT_GET)
cmd_action = HostCmd_ACT_GEN_GET;
/* Send request to firmware */
ret = wlan_prepare_cmd(pmpriv, HostCmd_CMD_SET_DEBUG_TEMPERATURE,
cmd_action, 0, (t_void *)pioctl_req,
(t_void *)&misc_cfg->param.temp_cfg);
if (ret == MLAN_STATUS_SUCCESS)
ret = MLAN_STATUS_PENDING;
LEAVE();
return ret;
}
/**
* @brief Get CHAN_TPRC setting
*

View file

@ -3,7 +3,7 @@
* @brief This file contains PCI-E specific code
*
*
* Copyright 2008-2021, 2025 NXP
* Copyright 2008-2021, 2025-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -1331,7 +1331,7 @@ static mlan_status wlan_pcie_delete_txbd_ring(mlan_adapter *pmadapter)
pcb->moal_unmap_memory(
pmadapter->pmoal_handle,
pmbuf->pbuf + pmbuf->data_offset,
pmbuf->buf_pa, MLAN_RX_DATA_BUF_SIZE,
pmbuf->buf_pa, pmadapter->rx_buf_size,
PCI_DMA_TODEVICE);
}
wlan_write_data_complete(pmadapter, pmbuf,
@ -1488,10 +1488,9 @@ static mlan_status wlan_pcie_create_rxbd_ring(mlan_adapter *pmadapter)
for (i = 0; i < pmadapter->pcard_pcie->txrx_bd_size; i++) {
/* Allocate buffer here so that firmware can DMA data on it */
mlan_buffer *pmbuf =
wlan_alloc_mlan_buffer(pmadapter, MLAN_RX_DATA_BUF_SIZE,
MLAN_RX_HEADER_LEN,
MOAL_ALLOC_MLAN_BUFFER);
mlan_buffer *pmbuf = wlan_alloc_mlan_buffer(
pmadapter, pmadapter->rx_buf_size, MLAN_RX_HEADER_LEN,
MOAL_ALLOC_MLAN_BUFFER);
if (!pmbuf) {
PRINTM(MERROR,
"RX ring create : Unable to allocate mlan_buffer\n");
@ -1507,7 +1506,7 @@ static mlan_status wlan_pcie_create_rxbd_ring(mlan_adapter *pmadapter)
pcb->moal_map_memory(
pmadapter->pmoal_handle,
pmbuf->pbuf + pmbuf->data_offset,
&pmbuf->buf_pa, MLAN_RX_DATA_BUF_SIZE,
&pmbuf->buf_pa, pmadapter->rx_buf_size,
PCI_DMA_FROMDEVICE)) {
PRINTM(MERROR,
"Rx ring create : moal_map_memory failed\n");
@ -1537,7 +1536,7 @@ static mlan_status wlan_pcie_create_rxbd_ring(mlan_adapter *pmadapter)
return MLAN_STATUS_FAILURE;
}
ret = pcb->moal_malloc_cached(pmadapter->pmoal_handle,
MLAN_RX_DATA_BUF_SIZE,
pmadapter->rx_buf_size,
&rx_coherent_vbase,
&rx_coherent_pbase);
@ -1554,8 +1553,8 @@ static mlan_status wlan_pcie_create_rxbd_ring(mlan_adapter *pmadapter)
pcbuf->buf_pa = rx_coherent_pbase;
pcbuf->pbuf = rx_coherent_vbase;
pcbuf->data_offset = 0;
pcbuf->data_len = MLAN_RX_DATA_BUF_SIZE;
pcbuf->total_pcie_buf_len = MLAN_RX_DATA_BUF_SIZE;
pcbuf->data_len = pmadapter->rx_buf_size;
pcbuf->total_pcie_buf_len = pmadapter->rx_buf_size;
pmadapter->pcard_pcie->rx_coherent_buf_list[i] = pcbuf;
pmbuf = pcbuf;
}
@ -1635,7 +1634,7 @@ static mlan_status wlan_pcie_delete_rxbd_ring(mlan_adapter *pmadapter)
pcb->moal_unmap_memory(
pmadapter->pmoal_handle,
pmbuf->pbuf + pmbuf->data_offset,
pmbuf->buf_pa, MLAN_RX_DATA_BUF_SIZE,
pmbuf->buf_pa, pmadapter->rx_buf_size,
PCI_DMA_FROMDEVICE);
}
wlan_free_mlan_buffer(
@ -3198,7 +3197,7 @@ mlan_status wlan_pcie_reattach_pmbuf(mlan_adapter *pmadapter, t_u32 rd_index,
pmlan_callbacks pcb = &pmadapter->callbacks;
/* Create new buffer and attach it to Rx Ring */
*pmbuf = wlan_alloc_mlan_buffer(pmadapter, MLAN_RX_DATA_BUF_SIZE,
*pmbuf = wlan_alloc_mlan_buffer(pmadapter, pmadapter->rx_buf_size,
MLAN_RX_HEADER_LEN,
MOAL_ALLOC_MLAN_BUFFER);
if (!(*pmbuf)) {
@ -3215,7 +3214,7 @@ mlan_status wlan_pcie_reattach_pmbuf(mlan_adapter *pmadapter, t_u32 rd_index,
pcb->moal_map_memory(pmadapter->pmoal_handle,
(*pmbuf)->pbuf + (*pmbuf)->data_offset,
&(*pmbuf)->buf_pa,
MLAN_RX_DATA_BUF_SIZE,
pmadapter->rx_buf_size,
PCI_DMA_FROMDEVICE)) {
wlan_free_mlan_buffer(pmadapter, *pmbuf);
ret = MLAN_STATUS_FAILURE;
@ -3306,7 +3305,7 @@ static mlan_status wlan_pcie_process_recv_data(mlan_adapter *pmadapter)
pmadapter->pcard_pcie
->rx_coherent_buf_list[rd_index];
pcb->moal_dma_sync_to_cpu(pmadapter->pmoal_handle,
MLAN_RX_DATA_BUF_SIZE,
pmadapter->rx_buf_size,
staged_buf->buf_pa,
MOAL_DMA_SYNC_FROM_DEVICE);
/* copy rx data from staged buf */
@ -3315,12 +3314,12 @@ static mlan_status wlan_pcie_process_recv_data(mlan_adapter *pmadapter)
rx_len = wlan_le16_to_cpu(rx_len);
memcpy_ext(pmadapter, pmbuf->pbuf + pmbuf->data_offset,
staged_buf->pbuf, rx_len,
MLAN_RX_DATA_BUF_SIZE);
pmadapter->rx_buf_size);
} else if (MLAN_STATUS_FAILURE ==
pcb->moal_unmap_memory(
pmadapter->pmoal_handle,
pmbuf->pbuf + pmbuf->data_offset,
pmbuf->buf_pa, MLAN_RX_DATA_BUF_SIZE,
pmbuf->buf_pa, pmadapter->rx_buf_size,
PCI_DMA_FROMDEVICE)) {
PRINTM(MERROR,
"RECV DATA: moal_unmap_memory failed.\n");
@ -3346,7 +3345,7 @@ static mlan_status wlan_pcie_process_recv_data(mlan_adapter *pmadapter)
pmadapter->pcard_pcie->rxbd_wrptr, rdptr, rx_len,
rx_type);
if (rx_len && rx_len <= MLAN_RX_DATA_BUF_SIZE) {
if (rx_len && rx_len <= pmadapter->rx_buf_size) {
pmadapter->pcard_pcie->rx_buf_list[rd_index] = MNULL;
/* send buffer to host (which will free it) */
pmbuf->data_len = rx_len - PCIE_INTF_HEADER_LEN;
@ -3403,7 +3402,7 @@ static mlan_status wlan_pcie_process_recv_data(mlan_adapter *pmadapter)
pmbuf = MNULL;
}
reattach:
if ((rx_len <= MLAN_RX_DATA_BUF_SIZE) || (!pmbuf)) {
if ((rx_len <= pmadapter->rx_buf_size) || (!pmbuf)) {
if (MLAN_STATUS_FAILURE ==
wlan_pcie_reattach_handle(pmadapter, rd_index,
&pmbuf)) {

View file

@ -3,7 +3,7 @@
* @brief This file contains SDIO specific code
*
*
* Copyright 2008-2021, 2024-2025 NXP
* Copyright 2008-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
@ -2654,7 +2654,7 @@ static mlan_status wlan_process_sdio_int_status(mlan_adapter *pmadapter,
pmadapter->pcard_sd->sdio_blk_size;
if (rx_len <= SDIO_INTF_HEADER_LEN ||
(rx_blocks * pmadapter->pcard_sd->sdio_blk_size) >
ALLOC_BUF_SIZE) {
pmadapter->rx_buf_size) {
PRINTM(MERROR, "invalid rx_len=%d\n", rx_len);
ret = MLAN_STATUS_FAILURE;
goto done;

View file

@ -3,7 +3,7 @@
* @brief This file contains APIs to MOAL module.
*
*
* Copyright 2008-2021, 2024-2025 NXP
* Copyright 2008-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
@ -523,6 +523,7 @@ mlan_status mlan_register(pmlan_device pmdevice, t_void **ppmlan_adapter)
pmadapter->init_para.disable_11h_tpc = pmdevice->disable_11h_tpc;
pmadapter->init_para.tpe_ie_ignore = pmdevice->tpe_ie_ignore;
pmadapter->init_para.amsdu_disable = pmdevice->amsdu_disable;
pmadapter->rx_buf_size = pmdevice->amsdu_rx_size;
pmadapter->priv_num = 0;
pmadapter->priv[0] = MNULL;
@ -2045,7 +2046,7 @@ mlan_status mlan_recv(t_void *padapter, pmlan_buffer pmbuf, t_u32 port)
#ifdef DEBUG_LEVEL1
t_u32 sec = 0, usec = 0;
#endif
t_u32 max_rx_data_size = MLAN_RX_DATA_BUF_SIZE;
t_u32 max_rx_data_size = pmadapter->rx_buf_size;
ENTER();
@ -2144,7 +2145,7 @@ mlan_status mlan_recv(t_void *padapter, pmlan_buffer pmbuf, t_u32 port)
pmadapter->pcard_usb->usb_rx_deaggr
.aggr_ctrl.aggr_align);
max_rx_data_size = MAX(max_rx_data_size,
MLAN_RX_DATA_BUF_SIZE);
pmadapter->rx_buf_size);
}
}
#endif

View file

@ -4624,6 +4624,10 @@ mlan_status wlan_ops_sta_prepare_cmd(t_void *priv, t_u16 cmd_no,
case HostCmd_CMD_DS_GET_FOUNDRY_TYPE:
ret = wlan_cmd_get_foundry_type(pmpriv, cmd_ptr, cmd_action);
break;
case HostCmd_CMD_SET_DEBUG_TEMPERATURE:
ret = wlan_cmd_set_debug_temperature(pmpriv, cmd_ptr,
cmd_action, pdata_buf);
break;
#ifdef SECURE_HOST
case HostCmd_CMD_SECURE_HOST:
ret = wlan_cmd_secure_host(pmpriv, cmd_ptr, pdata_buf);

View file

@ -3564,6 +3564,9 @@ mlan_status wlan_ops_sta_process_cmdresp(t_void *priv, t_u16 cmdresp_no,
case HostCmd_CMD_DS_GET_FOUNDRY_TYPE:
ret = wlan_ret_foundry_type(pmpriv, resp, pioctl_buf);
break;
case HostCmd_CMD_SET_DEBUG_TEMPERATURE:
ret = wlan_ret_debug_temperature(pmpriv, resp, pioctl_buf);
break;
case HostCmd_CMD_SUPPLICANT_PMK:
ret = wlan_ret_802_11_supplicant_pmk(pmpriv, resp, pioctl_buf);

View file

@ -5447,6 +5447,10 @@ static mlan_status wlan_misc_cfg_ioctl(pmlan_adapter pmadapter,
status = wlan_misc_ioctl_per_band_txpwr_cap(pmadapter,
pioctl_req);
break;
case MLAN_OID_MISC_DEBUG_TEMPERATURE:
status = wlan_misc_ioctl_debug_temperature(pmadapter,
pioctl_req);
break;
default:
if (pioctl_req)

View file

@ -3,7 +3,7 @@
* @brief This file contains TLV 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
@ -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 */
#endif /* !MLAN_TLV_IDS_H_ */

View file

@ -5809,6 +5809,10 @@ mlan_status wlan_ops_uap_prepare_cmd(t_void *priv, t_u16 cmd_no,
case HostCmd_CMD_DS_GET_FOUNDRY_TYPE:
ret = wlan_cmd_get_foundry_type(pmpriv, cmd_ptr, cmd_action);
break;
case HostCmd_CMD_SET_DEBUG_TEMPERATURE:
ret = wlan_cmd_set_debug_temperature(pmpriv, cmd_ptr,
cmd_action, pdata_buf);
break;
#ifdef STA_SUPPORT
case HostCmd_CMD_802_11_SCAN_EXT:
ret = wlan_cmd_802_11_scan_ext(pmpriv, cmd_ptr, pdata_buf);
@ -6292,6 +6296,10 @@ mlan_status wlan_ops_uap_process_cmdresp(t_void *priv, t_u16 cmdresp_no,
ret = wlan_ret_foundry_type(pmpriv, resp, pioctl_buf);
break;
case HostCmd_CMD_SET_DEBUG_TEMPERATURE:
ret = wlan_ret_debug_temperature(pmpriv, resp, pioctl_buf);
break;
#ifdef STA_SUPPORT
case HostCmd_CMD_802_11_SCAN_EXT:
ret = wlan_ret_802_11_scan_ext(pmpriv, resp, pioctl_buf);

View file

@ -2377,6 +2377,9 @@ mlan_status wlan_ops_uap_ioctl(t_void *adapter, pmlan_ioctl_req pioctl_req)
else if (misc->sub_command == MLAN_OID_MISC_FOUNDRY_TYPE)
status = wlan_misc_ioctl_foundry_type(pmadapter,
pioctl_req);
else if (misc->sub_command == MLAN_OID_MISC_DEBUG_TEMPERATURE)
status = wlan_misc_ioctl_debug_temperature(pmadapter,
pioctl_req);
else if (misc->sub_command == MLAN_OID_MISC_GET_TSF)
status = wlan_misc_ioctl_get_tsf(pmadapter, pioctl_req);

View file

@ -3,7 +3,7 @@
* @brief This file contains AP mode transmit and receive functions
*
*
* Copyright 2009-2021, 2025 NXP
* Copyright 2009-2021, 2025-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -409,7 +409,7 @@ mlan_status wlan_ops_uap_process_rx_packet(t_void *adapter, pmlan_buffer pmbuf)
* meant for monitor iface
*/
pmbuf2 = wlan_alloc_mlan_buffer(pmadapter,
MLAN_RX_DATA_BUF_SIZE,
pmadapter->rx_buf_size,
MLAN_RX_HEADER_LEN,
MOAL_ALLOC_MLAN_BUFFER);
if (!pmbuf2) {

View file

@ -535,13 +535,11 @@ static INLINE t_void util_scalar_decrement(
* @return Value after offset or 0 if (scalar_value + offset)
* overflows
*/
#ifdef ANDROID_SDK_VERSION
#define INT_MAX 2147483647
#else
#ifndef CONFIG_KASAN
#ifndef INT_MAX
#define INT_MAX 2147483647
#endif
#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),

View file

@ -3,7 +3,7 @@
* @brief This file declares the generic data structures and APIs.
*
*
* 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
@ -237,8 +237,10 @@ typedef t_s32 t_sval;
/** MU beamformer */
#define DEFALUT_11AC_CAP_BEAMFORMING_RESET_MASK (MBIT(19))
/** Size of rx data buffer 3839+256 */
#define MLAN_RX_DATA_BUF_SIZE 4096
#define MLAN_RX_DATA_BUF_SIZE_4K 4096
#define MLAN_RX_DATA_BUF_SIZE_8K (8 * 1024)
#define MLAN_RX_DATA_BUF_SIZE MLAN_RX_DATA_BUF_SIZE_8K
/** Size of command buffer */
/** because cal_data_size 2.4 k */
@ -345,8 +347,6 @@ typedef t_u8 mlan_802_11_mac_addr[MLAN_MAC_ADDR_LENGTH];
/* We support up to 480-byte block size due to FW buffer limitation. */
#define MLAN_SDIO_BLOCK_SIZE 256
/** define allocated buffer size */
#define ALLOC_BUF_SIZE MLAN_RX_DATA_BUF_SIZE
/** SDIO MP aggr pkt limit */
#define SDIO_MP_AGGR_DEF_PKT_LIMIT (16)
/** SDIO MP aggr pkt limit 8 */
@ -3003,6 +3003,7 @@ typedef struct _mlan_device {
t_u8 disable_11h_tpc;
t_u8 tpe_ie_ignore;
t_u32 amsdu_disable;
t_u16 amsdu_rx_size;
#ifdef SECURE_HOST
t_u32 secure_host;
#endif

View file

@ -406,6 +406,8 @@ enum _mlan_ioctl_req_id {
MLAN_OID_MISC_PREAMBLE_PWR_BOOST = 0x0020009D,
MLAN_OID_MISC_PER_BAND_TXPWR_CAP = 0x0020009E,
MLAN_OID_MISC_DEBUG_TEMPERATURE = 0X0020009F,
#ifdef UAP_SUPPORT
MLAN_OID_MISC_AGCS_CONFIG = 0x002000A0,
#endif /* UAP_SUPPORT */
@ -6619,6 +6621,18 @@ typedef struct _mlan_ds_tsp_cfg {
t_s32 reg_rfu_temp[MAX_RFUS][MAX_PATHS];
} MLAN_PACK_END mlan_ds_tsp_cfg;
/**thermal simulation parameters */
typedef struct _mlan_ds_set_debug_temperature {
/** Action */
t_u16 action;
/** enable/disable debug thermal simulation */
t_u16 simulation_enable;
/** CAU temperature to set */
t_s32 cau_temp;
/** RFU temperature to set */
t_s32 rf_temp[MAX_RFUS][MAX_PATHS];
} mlan_ds_set_debug_temperature;
typedef struct _mlan_ds_reorder_flush_time {
/** AC BK/BE_flush time*/
t_u16 flush_time_ac_be_bk;
@ -6907,6 +6921,7 @@ typedef struct _mlan_ds_misc_cfg {
mlan_ds_foundry_type soc_foundry_type;
mlan_ds_misc_per_band_txpwr_cap per_band_txpwr_cap;
mlan_ds_set_debug_temperature temp_cfg;
#ifdef UAP_SUPPORT
/** config AGCS for MLAN_OID_MISC_AGCS_CONFIG */

View file

@ -3,7 +3,7 @@
* @brief This file contains the functions for CFG80211.
*
*
* Copyright 2011-2025 NXP
* Copyright 2011-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -4315,6 +4315,12 @@ static t_u16 woal_filter_beacon_ies(moal_private *priv, const t_u8 *ie,
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
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 */
if ((id == VHT_CAPABILITY) &&
(priv->bss_type ==
MLAN_BSS_TYPE_WIFIDIRECT)) {
break;
}
moal_memcpy_ext(priv->phandle,
ie_out + out_len, pos,
length + 2,
@ -6552,66 +6558,75 @@ void process_wifi_channel_avoid_list_event(
struct ieee80211_supported_band *sband = NULL;
struct ieee80211_channel *channel = NULL;
int index = 0, i = 0, j = 0;
t_u8 ieee_band = 0;
if (!pwifi_chan_info)
return;
/* Process the event */
if (pwifi_chan_info->bandcfg.chanBand == BAND_2GHZ) {
ieee_band = IEEE80211_BAND_2GHZ;
PRINTM(MEVENT, "WiFi Channel Avoidance List band=%d len=%d\n",
pwifi_chan_info->bandcfg.chanBand,
pwifi_chan_info->length);
for (index = 0; index < MAX_MLAN_ADAPTER; index++) {
/* Reinitialize the sband for every adapter */
sband = NULL;
if (m_handle[index] && m_handle[index]->wiphy) {
sband = m_handle[index]
->wiphy
->bands[IEEE80211_BAND_2GHZ];
/* Move to next adapter with supporting band */
if (!sband)
continue;
PRINTM(MINFO,
"====== Iteration=%d ======", index);
/* Clearing NO-IR flags for all channels */
for (i = 0; i < sband->n_channels; i++) {
channel = &sband->channels[i];
channel->flags &= ~IEEE80211_CHAN_NO_IR;
}
/* Setting NO-IR flags as per the channel list
*/
for (j = 0; j < pwifi_chan_info->length; j++) {
for (i = 0; i < sband->n_channels;
i++) {
channel = &sband->channels[i];
if (channel->hw_value ==
pwifi_chan_info
->chanList[j]) {
PRINTM(MMSG,
"Marking channel = %d as NO-IR\n",
pwifi_chan_info->chanList
[j]);
channel->flags |=
IEEE80211_CHAN_NO_IR;
break;
}
}
}
/* Disabling beacon hints to avoid re-enabling
* of channels marked as NO-IR */
m_handle[index]->wiphy->regulatory_flags =
m_handle[index]
->wiphy->regulatory_flags |
REGULATORY_DISABLE_BEACON_HINTS;
}
}
} else
ieee_band, pwifi_chan_info->length);
} else if (pwifi_chan_info->bandcfg.chanBand == BAND_5GHZ) {
ieee_band = IEEE80211_BAND_5GHZ;
PRINTM(MEVENT, "WiFi Channel Avoidance List band=%d len=%d\n",
ieee_band, pwifi_chan_info->length);
}
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)
else if (pwifi_chan_info->bandcfg.chanBand == BAND_6GHZ) {
ieee_band = IEEE80211_BAND_6GHZ;
PRINTM(MEVENT, "WiFi Channel Avoidance List band=%d len=%d\n",
ieee_band, pwifi_chan_info->length);
}
#endif
else {
PRINTM(MEVENT,
"Ignoring the WiFi Channel Avoidance List Event\n");
return;
}
for (index = 0; index < MAX_MLAN_ADAPTER; index++) {
/* Reinitialize the sband for every adapter */
sband = NULL;
if (m_handle[index] && m_handle[index]->wiphy) {
sband = m_handle[index]->wiphy->bands[ieee_band];
/* Move to next adapter with supporting band */
if (!sband)
continue;
PRINTM(MINFO, "====== Iteration=%d ======", index);
/* Clearing NO-IR flags for all channels */
for (i = 0; i < sband->n_channels; i++) {
channel = &sband->channels[i];
channel->flags &= ~IEEE80211_CHAN_NO_IR;
}
/* Setting NO-IR flags as per the channel list */
for (j = 0; j < pwifi_chan_info->length; j++) {
for (i = 0; i < sband->n_channels; i++) {
channel = &sband->channels[i];
if (channel->hw_value ==
pwifi_chan_info->chanList[j]) {
PRINTM(MMSG,
"Marking channel = %d as NO-IR\n",
pwifi_chan_info
->chanList[j]);
channel->flags |=
IEEE80211_CHAN_NO_IR;
break;
}
}
}
/* Disabling beacon hints to avoid re-enabling of
* channels marked as NO-IR */
m_handle[index]->wiphy->regulatory_flags =
m_handle[index]->wiphy->regulatory_flags |
REGULATORY_DISABLE_BEACON_HINTS;
}
}
return;
}

View file

@ -3,7 +3,7 @@
* @brief This file contains the functions for CFG80211 vendor.
*
*
* Copyright 2015-2022, 2025 NXP
* Copyright 2015-2022, 2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -641,7 +641,6 @@ static int woal_cfg80211_subcmd_get_drv_version(struct wiphy *wiphy,
struct sk_buff *skb = NULL;
t_u32 reply_len = 0;
int ret = 0;
t_u32 drv_len = 0;
char drv_version[MLAN_MAX_VER_STR_LEN] = {0};
char *pos;
@ -649,18 +648,13 @@ static int woal_cfg80211_subcmd_get_drv_version(struct wiphy *wiphy,
moal_memcpy_ext(priv->phandle, drv_version,
&priv->phandle->driver_version, MLAN_MAX_VER_STR_LEN,
MLAN_MAX_VER_STR_LEN);
/* Remove all "-%s" substrings */
// drv_version is already initialized to 0 and hence null terminated
// coverity[cert_str32_c_violation:SUPPRESS]
drv_len = strlen(drv_version);
pos = strstr(drv_version, "%s");
/* remove 3 char "-%s" in driver_version string */
if (pos != NULL)
moal_memcpy_ext(priv->phandle, pos, pos + 3, strlen(pos) - 3,
while ((pos = strstr(drv_version, "-%s")) != NULL)
moal_memcpy_ext(priv->phandle, pos, pos + 3, strlen(pos) - 2,
strlen(pos));
reply_len = strlen(drv_version) + 1;
drv_len -= 3;
drv_version[drv_len] = '\0';
/** Allocate skb for cmd reply*/
skb = cfg80211_vendor_cmd_alloc_reply_skb(wiphy, reply_len);
@ -708,7 +702,7 @@ static int woal_cfg80211_subcmd_get_fw_version(struct wiphy *wiphy,
hotfix_ver = priv->phandle->fw_hotfix_version;
if (hotfix_ver) {
if (snprintf(fw_ver, sizeof(fw_ver),
"%s-%u.%u.%u.p%u.%u, %s-%s%c",
"%s %u.%u.%u.p%u.%u %s %s%c",
priv->phandle->fw_ver_milestone,
priv->phandle->fw_release_number.majorRevNum,
priv->phandle->fw_release_number.minorRevNum,
@ -718,7 +712,7 @@ static int woal_cfg80211_subcmd_get_fw_version(struct wiphy *wiphy,
priv->phandle->fw_ver_data, end_c) <= 0)
PRINTM(MERROR, "Failed to write fw hotfix version\n");
} else {
if (snprintf(fw_ver, sizeof(fw_ver), "%s-%u.%u.%u.p%u, %s-%s%c",
if (snprintf(fw_ver, sizeof(fw_ver), "%s %u.%u.%u.p%u %s %s%c",
priv->phandle->fw_ver_milestone,
priv->phandle->fw_release_number.majorRevNum,
priv->phandle->fw_release_number.minorRevNum,

View file

@ -4,7 +4,7 @@
* @brief This file contains private ioctl functions
*
* Copyright 2014-2025 NXP
* Copyright 2014-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -15002,6 +15002,110 @@ done:
return ret;
}
/**
* @brief Set/Get thermal simulation debug temperatures
*
* @param priv Pointer to moal_private structure
* @param respbuf Pointer to response buffer
* @param resplen Response buffer length
*
* @return Number of bytes written, negative for failure.
*/
static int woal_priv_set_debug_temperature(moal_private *priv, t_u8 *respbuf,
t_u32 respbuflen)
{
mlan_ioctl_req *ioctl_req = NULL;
mlan_ds_misc_cfg *misc = NULL;
mlan_status status = MLAN_STATUS_SUCCESS;
int ret = 0, header_len = 0, user_data_len = 0;
int data[8];
t_u8 rfu = 0, i = 2;
t_u8 rpath = 0;
ENTER();
memset(data, 0, sizeof(data));
header_len = strlen(CMD_NXP) + strlen(PRIV_CMD_DEBUG_TEMPERATURE);
if (strlen(respbuf) == (header_len)) {
/* GET operation */
user_data_len = 0;
} else {
/*set operation*/
memset((char *)data, 0, sizeof(data));
parse_arguments(respbuf + header_len, data, ARRAY_SIZE(data),
&user_data_len);
if (user_data_len != 5) {
PRINTM(MERROR,
"set_debug_temperature: invalid numder of arguments provided\n");
LEAVE();
return -EINVAL;
}
}
/* Allocate an IOCTL request buffer */
ioctl_req = woal_alloc_mlan_ioctl_req(sizeof(mlan_ds_misc_cfg));
if (ioctl_req == NULL) {
ret = -ENOMEM;
goto done;
}
/* Fill request buffer */
misc = (mlan_ds_misc_cfg *)ioctl_req->pbuf;
misc->sub_command = MLAN_OID_MISC_DEBUG_TEMPERATURE;
ioctl_req->req_id = MLAN_IOCTL_MISC_CFG;
if (user_data_len) {
// set operation
if (data[0] < 0 || data[0] > 1) {
PRINTM(MERROR,
"err: Invalid temperature simulation enable value\n");
ret = -EINVAL;
goto done;
}
misc->param.temp_cfg.simulation_enable = (t_u16)data[0];
if (misc->param.temp_cfg.simulation_enable) {
misc->param.temp_cfg.cau_temp = (t_s32)data[1];
for (rfu = 0; rfu < MAX_RFUS; rfu++) {
for (rpath = 0; rpath < MAX_PATHS; rpath++) {
misc->param.temp_cfg
.rf_temp[rfu][rpath] =
(t_s32)data[i++];
}
}
}
ioctl_req->action = MLAN_ACT_SET;
} else
ioctl_req->action = MLAN_ACT_GET;
/* Send IOCTL request to MLAN */
status = woal_request_ioctl(priv, ioctl_req, MOAL_IOCTL_WAIT);
if (status != MLAN_STATUS_SUCCESS) {
ret = -EFAULT;
goto done;
}
data[0] = misc->param.temp_cfg.simulation_enable;
data[1] = misc->param.temp_cfg.cau_temp;
i = 2;
for (rfu = 0; rfu < MAX_RFUS; rfu++) {
for (rpath = 0; rpath < MAX_PATHS; rpath++) {
data[i] = misc->param.temp_cfg.rf_temp[rfu][rpath];
i++;
}
}
moal_memcpy_ext(priv->phandle, respbuf, (t_u8 *)data, sizeof(data),
respbuflen);
ret = sizeof(data);
done:
if (status != MLAN_STATUS_PENDING)
kfree(ioctl_req);
LEAVE();
return ret;
}
/**
* @brief Set/Get Tx/Rx antenna
*
@ -21648,12 +21752,15 @@ static int woal_priv_preamble_pwr_boost(moal_private *priv, t_u8 *respbuf,
ret = -EINVAL;
goto done;
}
if (data[0] == MTRUE) {
if (data[1] && data[1] > 0x7f) {
PRINTM(MERROR, "Invalid threshold value\n");
ret = -EINVAL;
goto done;
}
if ((data[0] < 0) || (data[0] > 2)) {
PRINTM(MERROR, "Invalid enable mode value\n");
ret = -EINVAL;
goto done;
}
if ((data[1] > 0) || (data[1] < -80)) {
PRINTM(MERROR, "Invalid threshold value\n");
ret = -EINVAL;
goto done;
}
misc->param.preamble_pwr_boost.enable_mode = (t_u8)data[0];
@ -22674,7 +22781,9 @@ static int woal_priv_per_band_txpwr_cap(moal_private *priv, t_u8 *respbuf,
}
/* tx power capping cannot be negative or above 25 dBm */
if (data[1] < 0 || data[1] > 25) {
if (data[1] == 0xff && data[0] == BAND_6GHZ) {
if (data[1] == 0xff && data[0] == BAND_5GHZ) {
/* rssi based tpc */
} else if (data[1] == 0xff && data[0] == BAND_6GHZ) {
/* rssi based tpc */
} else {
PRINTM(MERROR,
@ -22683,7 +22792,8 @@ static int woal_priv_per_band_txpwr_cap(moal_private *priv, t_u8 *respbuf,
goto done;
}
}
if (data[0] == BAND_6GHZ && data[1] == 0xff) {
if ((data[0] == BAND_5GHZ && data[1] == 0xff) ||
(data[0] == BAND_6GHZ && data[1] == 0xff)) {
if ((data[2] == 0 || data[3] == 0) && (data[2] != data[3])) {
/* both thresholds must be 0 for dynamic TPC */
PRINTM(MERROR,
@ -22702,6 +22812,7 @@ static int woal_priv_per_band_txpwr_cap(moal_private *priv, t_u8 *respbuf,
goto done;
}
}
misc->param.per_band_txpwr_cap.band = (t_u8)data[0];
misc->param.per_band_txpwr_cap.power = (t_u8)data[1];
misc->param.per_band_txpwr_cap.strong_rssi_thresh = (t_s8)data[2];
@ -23794,6 +23905,14 @@ int woal_android_priv_cmd(struct net_device *dev, struct ifreq *req)
priv_cmd.total_len);
goto handled;
} else if (strnicmp(buf + strlen(CMD_NXP),
PRIV_CMD_DEBUG_TEMPERATURE,
strlen(PRIV_CMD_DEBUG_TEMPERATURE)) == 0) {
/* mc_aggr_cfg*/
len = woal_priv_set_debug_temperature(
priv, buf, priv_cmd.total_len);
goto handled;
} else if (strnicmp(buf + strlen(CMD_NXP),
PRIV_CMD_CROSS_CHIP_SYNCH,
strlen(PRIV_CMD_CROSS_CHIP_SYNCH)) == 0) {

View file

@ -316,6 +316,8 @@ typedef struct _chan_stats {
#define PRIV_CMD_FOUNDRY_TYPE "foundry_type"
#define PRIV_CMD_DEBUG_TEMPERATURE "set_debug_temperature"
/**Private command to configure static rx abort config */
#define PRIV_CMD_RX_ABORT_CFG "rx_abort_cfg"
/**Private command to configure static OFDM DESENSE config */

View file

@ -4,7 +4,7 @@
* driver.
*
*
* Copyright 2018-2022, 2024-2025 NXP
* Copyright 2018-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
@ -370,6 +370,8 @@ static int disable_11h_tpc = 0;
/** ignore TPE IE configuration from ex-AP*/
static int tpe_ie_ignore = 0;
static int amsdu_8k_rx = 0;
#ifdef DEBUG_LEVEL1
#ifdef DEBUG_LEVEL2
#define DEFAULT_DEBUG_MASK (0xffffffff)
@ -2465,6 +2467,8 @@ static void woal_setup_module_param(moal_handle *handle, moal_mod_para *params)
if (params)
handle->params.tpe_ie_ignore = params->tpe_ie_ignore;
handle->params.make_before_break = make_before_break;
handle->params.amsdu_rx_size = amsdu_8k_rx ? MLAN_RX_DATA_BUF_SIZE_8K :
MLAN_RX_DATA_BUF_SIZE_4K;
#ifdef SECURE_HOST
handle->params.secure_host = secure_host;
@ -3946,3 +3950,7 @@ MODULE_PARM_DESC(
module_param(bandctrl, int, 0);
MODULE_PARM_DESC(bandctrl,
"0: Disable bandctrl mode(default); 1: Enable bandctrl mode");
module_param(amsdu_8k_rx, int, 0);
MODULE_PARM_DESC(amsdu_8k_rx,
"1: support AMPDU 8K RX; 0: just support AMPDU 4K RX");

View file

@ -4,7 +4,7 @@
* driver.
*
*
* 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
@ -473,8 +473,8 @@ static struct _card_info card_info_SDAW693 = {
.rev_id_reg = 0xc8,
.host_strap_reg = 0xf4,
.magic_reg = 0xf0,
.fw_name = SDAW693_DEFAULT_COMBO_FW_NAME,
.fw_name_wlan = SDAW693_DEFAULT_WLAN_FW_NAME,
.fw_name = SDIW693_DEFAULT_COMBO_FW_NAME,
.fw_name_wlan = SDIW693_DEFAULT_WLAN_FW_NAME,
#ifdef SDIO
.dump_fw_info = DUMP_FW_SDIO_V3,
.dump_fw_ctrl_reg = 0xf9,
@ -2786,6 +2786,7 @@ mlan_status woal_init_sw(moal_handle *handle)
device->disable_11h_tpc = (t_u32)handle->params.disable_11h_tpc;
device->tpe_ie_ignore = (t_u32)handle->params.tpe_ie_ignore;
device->amsdu_disable = handle->params.amsdu_disable;
device->amsdu_rx_size = handle->params.amsdu_rx_size;
for (i = 0; i < handle->drv_mode.intf_num; i++) {
device->bss_attr[i].bss_type =

View file

@ -3,7 +3,7 @@
* @brief This file contains wlan driver specific defines etc.
*
*
* 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
@ -3001,6 +3001,8 @@ typedef struct _moal_mod_para {
#endif
int bandctrl;
t_u16 amsdu_rx_size;
} moal_mod_para;
void woal_tp_acnt_timer_func(void *context);

View file

@ -3,7 +3,7 @@
* @brief This file contains functions for proc file.
*
*
* Copyright 2008-2022, 2025 NXP
* Copyright 2008-2022, 2025-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991

View file

@ -148,13 +148,13 @@ Change log:
#ifdef SDAW693
#define SDAW693_A0 0x00
#define SDAW693_A1 0x01
#define SDAW693_DEFAULT_COMBO_FW_NAME "nxp/sduartaw693_combo.bin"
#define SDUARTAW693_COMBO_FW_NAME "nxp/sduartaw693_combo.bin"
#define SDSDAW693_COMBO_FW_NAME "sdsdaw693_combo.bin"
#define SDUARTAW693_COMBO_V1_FW_NAME "nxp/sduartaw693_combo_v1.bin.se"
#define SDSDAW693_COMBO_V1_FW_NAME "sdsdaw693_combo_v1.bin.se"
#define SDAW693_DEFAULT_WLAN_FW_NAME "nxp/sdaw693_wlan.bin"
#define SDAW693_WLAN_V1_FW_NAME "nxp/sdaw693_wlan_v1.bin.se"
#define SDIW693_DEFAULT_COMBO_FW_NAME "nxp/sduartiw693_combo.bin"
#define SDUARTIW693_COMBO_FW_NAME "nxp/sduartiw693_combo.bin"
#define SDSDIW693_COMBO_FW_NAME "sdsdiw693_combo.bin"
#define SDUARTIW693_COMBO_V1_FW_NAME "nxp/sduartiw693_combo_v1.bin.se"
#define SDSDIW693_COMBO_V1_FW_NAME "sdsdiw693_combo_v1.bin.se"
#define SDIW693_DEFAULT_WLAN_FW_NAME "nxp/sdiw693_wlan.bin"
#define SDIW693_WLAN_V1_FW_NAME "nxp/sdiw693_wlan_v1.bin.se"
#endif /* SDAW693 */
#ifdef SD9177

View file

@ -4,7 +4,7 @@
* related functions.
*
*
* 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
@ -682,7 +682,7 @@ static t_u16 woal_update_card_type(t_void *card)
NULL,
driver_version + strlen(INTF_CARDTYPE) +
strlen(KERN_VERSION),
V17, strlen(V17),
V18, strlen(V18),
strnlen(driver_version, MLAN_MAX_VER_STR_LEN - 1) -
(strlen(INTF_CARDTYPE) + strlen(KERN_VERSION)));
}
@ -2048,26 +2048,26 @@ static mlan_status woal_sdiommc_get_fw_name(moal_handle *handle)
case SDAW693_A0:
if (strap == CARD_TYPE_SDAW693_UART)
strncpy(handle->card_info->fw_name,
SDUARTAW693_COMBO_FW_NAME,
SDUARTIW693_COMBO_FW_NAME,
FW_NAMW_MAX_LEN);
else
strncpy(handle->card_info->fw_name,
SDSDAW693_COMBO_FW_NAME,
SDSDIW693_COMBO_FW_NAME,
FW_NAMW_MAX_LEN);
strncpy(handle->card_info->fw_name_wlan,
SDAW693_DEFAULT_WLAN_FW_NAME, FW_NAMW_MAX_LEN);
SDIW693_DEFAULT_WLAN_FW_NAME, FW_NAMW_MAX_LEN);
break;
case SDAW693_A1:
if (strap == CARD_TYPE_SDAW693_UART)
strncpy(handle->card_info->fw_name,
SDUARTAW693_COMBO_V1_FW_NAME,
SDUARTIW693_COMBO_V1_FW_NAME,
FW_NAMW_MAX_LEN);
else
strncpy(handle->card_info->fw_name,
SDSDAW693_COMBO_V1_FW_NAME,
SDSDIW693_COMBO_V1_FW_NAME,
FW_NAMW_MAX_LEN);
strncpy(handle->card_info->fw_name_wlan,
SDAW693_WLAN_V1_FW_NAME, FW_NAMW_MAX_LEN);
SDIW693_WLAN_V1_FW_NAME, FW_NAMW_MAX_LEN);
if (magic != 0x03) {
/* remove extension .se */
se_pos = strstr(handle->card_info->fw_name,

View file

@ -3,7 +3,7 @@
* @brief This file contains the callback functions registered 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
@ -2790,7 +2790,7 @@ mlan_status moal_recv_packet(t_void *pmoal, pmlan_buffer pmbuf)
struct sk_buff *skb = NULL;
moal_handle *handle = (moal_handle *)pmoal;
#if defined(USB) || defined(PCIE)
t_u32 max_rx_data_size = MLAN_RX_DATA_BUF_SIZE;
t_u32 max_rx_data_size = handle->params.amsdu_rx_size;
#endif
dot11_rxcontrol rxcontrol;
t_u8 rx_info_flag = MFALSE;
@ -2819,9 +2819,9 @@ mlan_status moal_recv_packet(t_void *pmoal, pmlan_buffer pmbuf)
MAX(MLAN_USB_MAX_PKT_SIZE,
cardp->rx_deaggr_ctrl
.aggr_align);
max_rx_data_size =
MAX(max_rx_data_size,
MLAN_RX_DATA_BUF_SIZE);
max_rx_data_size = MAX(
max_rx_data_size,
handle->params.amsdu_rx_size);
}
}
}
@ -3116,6 +3116,8 @@ mlan_status moal_recv_packet(t_void *pmoal, pmlan_buffer pmbuf)
woal_get_monotonic_time(&t);
pmbuf->out_ts_sec = t.time_sec;
pmbuf->out_ts_usec = t.time_usec;
moal_tp_accounting(handle, pmbuf,
RX_TIME_PKT);
}
}
if (priv->phandle->tp_acnt.drop_point == RX_DROP_P4) {
@ -3141,18 +3143,15 @@ mlan_status moal_recv_packet(t_void *pmoal, pmlan_buffer pmbuf)
}
}
}
if (priv->phandle->tp_acnt.on) {
if (pmbuf && pmbuf->in_ts_sec)
moal_tp_accounting(handle, pmbuf,
RX_TIME_PKT);
}
}
}
done:
if (status != MLAN_STATUS_PENDING && pmbuf && !pmbuf->pdesc && skb)
dev_kfree_skb(skb);
if (pmbuf && !pmbuf->pbuf)
status = MLAN_STATUS_PENDING;
if (status == MLAN_STATUS_FAILURE) {
if (pmbuf && !pmbuf->pbuf)
status = MLAN_STATUS_PENDING;
if (pmbuf && !pmbuf->pdesc && skb)
dev_kfree_skb(skb);
}
LEAVE();
return status;
}

View file

@ -3,7 +3,7 @@
* @brief This file contains the functions for STA CFG80211.
*
*
* Copyright 2011-2025 NXP
* Copyright 2011-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -97,7 +97,7 @@ static const u32 cfg80211_akm_suites[] = {
*/
mode_psd_t mode_psd_sta_FCC_6G[] = {
{"indoor_", "minus1"},
{"sp_", ""},
{"sp_", "plus17"},
{"vlp_", "minus5"},
};
@ -110,6 +110,15 @@ mode_psd_t mode_psd_sta_EU_6G[] = {
{"vlp_", "plus1"},
};
/**
* @brief Band: 6G, Region: JP STA-Mode-PSD Table
*/
mode_psd_t mode_psd_sta_JP_6G[] = {
{"indoor_", "plus10"},
{"sp_", ""},
{"vlp_", "plus1"},
};
/**
* @brief The 6GHz STA Region-Mode-PSD Table
*/
@ -122,6 +131,10 @@ rmp_table_t rmp_table_sta_6G[] = {
0x30, /* ETSI region */
mode_psd_sta_EU_6G,
},
{
0x40, /* JP region */
mode_psd_sta_JP_6G,
},
};
#ifdef UAP_SUPPORT
@ -4631,7 +4644,12 @@ static mlan_status woal_cfg80211_dump_station_info(moal_private *priv,
#endif
moal_memcpy_ext(priv->phandle, sinfo, priv->sinfo,
sizeof(struct station_info),
#if (CFG80211_VERSION_CODE >= KERNEL_VERSION(6, 18, 0) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 36))
offsetof(struct station_info, pertid));
#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++) {
@ -4734,7 +4752,12 @@ static mlan_status woal_cfg80211_dump_station_info(moal_private *priv,
if (priv->sinfo)
moal_memcpy_ext(priv->phandle, priv->sinfo, sinfo,
sizeof(struct station_info),
#if (CFG80211_VERSION_CODE >= KERNEL_VERSION(6, 18, 0) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 36))
offsetof(struct station_info, pertid));
#else
sizeof(struct station_info));
#endif
done:
LEAVE();
@ -12476,6 +12499,10 @@ void woal_dnld_sta_6e_psd_table(moal_private *priv, t_u8 *resp_buf,
mode_psd_6G = rmp_table_sta_6G[NXP_DFS_ETSI - 1].mp_ptr;
break;
}
case NXP_DFS_JP: {
mode_psd_6G = rmp_table_sta_6G[NXP_DFS_JP - 1].mp_ptr;
break;
}
default:
PRINTM(MERROR, "Unsupported DFS Region selected\n");
goto done;
@ -12518,6 +12545,10 @@ void woal_dnld_sta_6e_psd_table(moal_private *priv, t_u8 *resp_buf,
mode_psd_6G = rmp_table_sta_6G[NXP_DFS_ETSI - 1].mp_ptr;
break;
}
case NXP_DFS_JP: {
mode_psd_6G = rmp_table_sta_6G[NXP_DFS_JP - 1].mp_ptr;
break;
}
default:
PRINTM(MERROR, "Unsupported DFS Region selected\n");
goto done;
@ -12560,6 +12591,10 @@ void woal_dnld_sta_6e_psd_table(moal_private *priv, t_u8 *resp_buf,
mode_psd_6G = rmp_table_sta_6G[NXP_DFS_ETSI - 1].mp_ptr;
break;
}
case NXP_DFS_JP: {
mode_psd_6G = rmp_table_sta_6G[NXP_DFS_JP - 1].mp_ptr;
break;
}
default:
PRINTM(MERROR, "Unsupported DFS Region selected\n");
goto done;

View file

@ -4,7 +4,7 @@
* driver.
*
*
* 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
@ -3849,6 +3849,7 @@ int woal_uap_set_11ac_status(moal_private *priv, t_u8 action, t_u8 band,
} else {
cfg_11ac->param.vht_cfg.vht_cap_info =
fw_info.usr_dot_11ac_dev_cap_a;
cfg_11ac->param.vht_cfg.vht_cap_info &= ~(MBIT(0) | MBIT(1));
}
if (action == MLAN_ACT_DISABLE) {
cfg_11ac->param.vht_cfg.bwcfg = MFALSE;
@ -5021,7 +5022,7 @@ void woal_uap_get_version(moal_private *priv, char *version, int max_len)
PRINTM(MINFO, "MOAL UAP VERSION: %s\n",
info->param.ver_ext.version_str);
snprintf(version, max_len, priv->phandle->driver_version,
info->param.ver_ext.version_str);
info->param.ver_ext.version_str, REL_MILESTONE);
}
if (status != MLAN_STATUS_PENDING)

View file

@ -3,7 +3,7 @@
* @brief This file contains the functions for uAP CFG80211.
*
*
* Copyright 2011-2025 NXP
* Copyright 2011-2026 NXP
*
* This software file (the File) is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
@ -57,6 +57,15 @@ static mode_psd_t mode_psd_uap_EU_6G[] = {
{"vlp_", "plus1"},
};
/**
* @brief Band: 6G, Region: JP UAP-Mode-PSD Table
*/
static mode_psd_t mode_psd_uap_JP_6G[] = {
{"indoor_", "plus10"},
{"sp_", ""},
{"vlp_", "plus1"},
};
/**
* @brief The 6GHz UAP Region-Mode-PSD Table
*/
@ -69,6 +78,10 @@ static rmp_table_t rmp_table_uap_6G[] = {
0x30, /* ETSI region */
mode_psd_uap_EU_6G,
},
{
0x40, /* JP region */
mode_psd_uap_JP_6G,
},
};
#ifdef UAP_SUPPORT
@ -1405,6 +1418,11 @@ void woal_dnld_uap_6e_psd_table(moal_private *priv, const t_u8 *beacon_buf,
.mp_ptr;
break;
}
case NXP_DFS_JP: {
mode_psd_6G =
rmp_table_uap_6G[NXP_DFS_JP - 1].mp_ptr;
break;
}
default:
PRINTM(MCMND, "Downloading deafult 6E table\n");
if (MLAN_STATUS_SUCCESS !=
@ -1453,6 +1471,11 @@ void woal_dnld_uap_6e_psd_table(moal_private *priv, const t_u8 *beacon_buf,
.mp_ptr;
break;
}
case NXP_DFS_JP: {
mode_psd_6G =
rmp_table_uap_6G[NXP_DFS_JP - 1].mp_ptr;
break;
}
default:
PRINTM(MCMND, "Downloading deafult 6E table\n");
if (MLAN_STATUS_SUCCESS !=
@ -1501,6 +1524,11 @@ void woal_dnld_uap_6e_psd_table(moal_private *priv, const t_u8 *beacon_buf,
.mp_ptr;
break;
}
case NXP_DFS_JP: {
mode_psd_6G =
rmp_table_uap_6G[NXP_DFS_JP - 1].mp_ptr;
break;
}
default:
PRINTM(MCMND, "Downloading deafult 6E table\n");
if (MLAN_STATUS_SUCCESS !=
@ -1909,14 +1937,14 @@ static int woal_cfg80211_beacon_config(moal_private *priv,
(ht_cap &
(wiphy->bands[IEEE80211_BAND_2GHZ]
->ht_cap.cap &
0x13ff)) |
0x1bff)) |
0x0c;
else if (wiphy->bands[IEEE80211_BAND_5GHZ]) {
sys_config->ht_cap_info =
(ht_cap &
(wiphy->bands[IEEE80211_BAND_5GHZ]
->ht_cap.cap &
0x13ff)) |
0x1bff)) |
0x0c;
}
}

View file

@ -4,7 +4,7 @@
* driver.
*
*
* Copyright 2008-2021, 2024-2025 NXP
* Copyright 2008-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
@ -323,10 +323,10 @@ setup_for_next:
MLAN_USB_AGGR_MODE_NUM) {
size *= MAX(MLAN_USB_MAX_PKT_SIZE,
cardp->rx_deaggr_ctrl.aggr_align);
size = MAX(size, MLAN_RX_DATA_BUF_SIZE);
size = MAX(size, handle->params.amsdu_rx_size);
}
} else
size = MLAN_RX_DATA_BUF_SIZE;
size = handle->params.amsdu_rx_size;
}
woal_usb_submit_rx_urb(context, size);
@ -1513,7 +1513,7 @@ mlan_status woal_usb_submit_rx_data_urbs(moal_handle *handle)
struct usb_card_rec *cardp = (struct usb_card_rec *)handle->card;
int i;
mlan_status ret = MLAN_STATUS_FAILURE;
t_u32 buffer_len = MLAN_RX_DATA_BUF_SIZE;
t_u32 buffer_len = handle->params.amsdu_rx_size;
ENTER();
@ -1522,7 +1522,8 @@ mlan_status woal_usb_submit_rx_data_urbs(moal_handle *handle)
if (cardp->rx_deaggr_ctrl.aggr_mode == MLAN_USB_AGGR_MODE_NUM) {
buffer_len *= MAX(MLAN_USB_MAX_PKT_SIZE,
cardp->rx_deaggr_ctrl.aggr_align);
buffer_len = MAX(buffer_len, MLAN_RX_DATA_BUF_SIZE);
buffer_len =
MAX(buffer_len, handle->params.amsdu_rx_size);
}
}