Driver commit for release MM6X18542.p12 2026-02-10_18:52:18

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-02-10 18:52:18 +05:30 • committed by Sherry Sun
parent dd4c01c5f5
commit da88413701
10 changed files with 582 additions and 241 deletions

View file

@ -136,7 +136,7 @@ endif
#############################################################################
# Select Platform Tools
#############################################################################
ifeq ($(ANDROID_BUILD), 1)
ifeq ($(ANDROID_BUILD), yes)
# Set target Android SDK version.
# ANDROID_SDK_VERSION 29 corresponds to Android 10 Android 10
# ANDROID_SDK_VERSION 30 corresponds to Android 11 (Red Velvet Cake)
@ -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.p12"'
ccflags-y += -DMLAN_EXT_RELEASE_VERSION='"542.p12"'
ccflags-y += -DREL_MILESTONE='""'
ccflags-y += -DFPNUM='"92"'

View file

@ -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;
}

View file

@ -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 */

View file

@ -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_ */

View file

@ -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
@ -6781,8 +6781,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);

View file

@ -4316,11 +4316,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,

File diff suppressed because it is too large Load diff

View file

@ -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

View file

@ -18044,6 +18044,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;

View file

@ -1006,7 +1006,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 +5738,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 +5805,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
@ -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;