Commit graph

43 commits

Author SHA1 Message Date
AMIT CHOUDHARY
b8c868b7cb Driver commit for release MM6X18543.p18 2026-05-28_16:18:19
Firmware version for commit:
W9098-17.92.1.p149.115
IW416-16.92.21.p160
W8987-16.92.21.p156.2
IW612-18.99.8.p52
IW610-18.99.8.p52
AW693-18.99.7.p230.2

Signed-off-by: AMIT CHOUDHARY <amit.kumar_13@nxp.com>
2026-05-29 11:05:44 +08:00
Sherry Sun
031aa9bba0 mxm_wifiex: fix build errors on L7.0 kernel next tree
When build wifi driver based on L7.0 kernel next tree, will observe the
following build errors. These are caused by the upstream patches:
7c6084d7fa4e6 ("wifi: cfg80211: support key installation on non-netdev wdevs")
033fe322f5852 ("wifi: nl80211/cfg80211: support stations of non-netdev interfaces")
08e6183ed2568 ("wifi: move action code from per-type frame structs")
Need to change corresponding APIs here to avoid the build break.

mlinux/moal_shim.c: In function ‘moal_recv_event’:
mlinux/moal_shim.c:5041:62: error: passing argument 1 of ‘cfg80211_new_sta’ from incompatible pointer type [-Wincompatible-pointer-types]
 5041 |                                         cfg80211_new_sta(priv->netdev,
      |                                                          ~~~~^~~~~~~~
      |                                                              |
      |                                                              struct net_device *
In file included from mlinux/moal_main.h:160,
                 from mlinux/moal_shim.c:28:
linux-nxp-rebase/include/net/cfg80211.h:8972:44: note: expected ‘struct wireless_dev *’ but argument is of type ‘struct net_device *’
 8972 | void cfg80211_new_sta(struct wireless_dev *wdev, const u8 *mac_addr,
      |                       ~~~~~~~~~~~~~~~~~~~~~^~~~
mlinux/moal_sta_cfg80211.c: In function ‘woal_construct_tdls_action_frame’:
mlinux/moal_sta_cfg80211.c:9329:55: error: ‘struct <anonymous>’ has no member named ‘u’
 9329 |                 skb_put(skb, 1 + sizeof(mgmt->u.action.u.tdls_discover_resp));
      |                                                       ^
mlinux/moal_sta_cfg80211.c:9331:31: error: ‘struct <anonymous>’ has no member named ‘u’
 9331 |                 mgmt->u.action.u.tdls_discover_resp.action_code =
      |                               ^
mlinux/moal_sta_cfg80211.c:9333:31: error: ‘struct <anonymous>’ has no member named ‘u’
 9333 |                 mgmt->u.action.u.tdls_discover_resp.dialog_token = dialog_token;
      |                               ^
mlinux/moal_sta_cfg80211.c:9334:31: error: ‘struct <anonymous>’ has no member named ‘u’
 9334 |                 mgmt->u.action.u.tdls_discover_resp.capability =
      |                               ^
mlinux/moal_sta_cfg80211.c:9338:50: error: ‘struct <anonymous>’ has no member named ‘u’
 9338 |                         1 + sizeof(mgmt->u.action.u.tdls_discover_resp));
      |                                                  ^
mlinux/moal_sta_cfg80211.c: In function ‘woal_cfg80211_uap_add_station’:
mlinux/moal_sta_cfg80211.c:11172:42: error: passing argument 1 of ‘cfg80211_new_sta’ from incompatible pointer type [-Wincompatible-pointer-types]
11172 |                         cfg80211_new_sta(dev, mac, sinfo, GFP_KERNEL);
      |                                          ^~~
      |                                          |
      |                                          struct net_device *
In file included from mlinux/moal_main.h:160,
                 from mlinux/moal_cfg80211.h:26:
linux-nxp-rebase/include/net/cfg80211.h:8972:44: note: expected ‘struct wireless_dev *’ but argument is of type ‘struct net_device *’
 8972 | void cfg80211_new_sta(struct wireless_dev *wdev, const u8 *mac_addr,
      |                       ~~~~~~~~~~~~~~~~~~~~~^~~~

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2026-05-07 10:48:44 +08:00
AMIT CHOUDHARY
d5dfe5409d Driver commit for release MM6X18543.p8 2026-04-27_14:30:19
Firmware version for commit:
W9098-17.92.1.p149.88
IW416-16.92.21.p159
W8987-16.92.21.p156.1
IW612-18.99.8.p24
IW610-18.99.8.p24
AW693-18.99.2.p145.201

Signed-off-by: AMIT CHOUDHARY <amit.kumar_13@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2026-04-27 21:59:13 +08:00
AMIT CHOUDHARY
da88413701 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>
2026-04-27 17:55:04 +08:00
Sherry Sun
dd4c01c5f5 mxm_wifiex: fix build error on L6.19 kernel next tree
When build wifi driver based on L6.19 kernel next tree, will observe the
following build error. It is caused by the upstream patch:
2b5e9f9b7e414 ("net: Convert struct sockaddr to fixed-size "sa_data[14]"")
Need to change corresponding API here to avoid the build break.

Build error logs:
mlinux/moal_eth_ioctl.c: In function ‘woal_priv_get_ap’:
mlinux/moal_eth_ioctl.c:6970:55: error: ‘struct sockaddr’ has no member named ‘sa_data_min’; did you mean ‘sa_data’?
 6970 |                                 sizeof(mwr->u.ap_addr.sa_data_min));
      |                                                       ^~~~~~~~~~~
      |                                                       sa_data
make[4]: *** [/scripts/Makefile.build:287: mlinux/moal_eth_ioctl.o] Error 1

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2026-02-04 11:40:41 +08:00
AMIT CHOUDHARY
e9b6c82ac2 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>
2026-01-30 18:51:58 +08:00
Jindong Yue
b08958dc25 MA-24369 Fix use-after-free in station info with cached data
When a WiFi driver caches station_info and later copies it back
using memcpy(), the newly allocated sinfo->links[] pointers are
overwritten with stale pointers from the cache. This causes
use-after-free and double-free errors when cfg80211_sinfo_release_content()
attempts to free the already-freed cached pointers.

The issue occurs in this sequence:
1. nl80211_get_station() allocates fresh sinfo.links[] arrays
2. Driver's get_station() does memcpy(sinfo, cached_sinfo, ...)
3. This overwrites new link pointers with old freed pointers
4. cfg80211_sinfo_release_content() in nl80211_send_station() frees the stale pointers
5. It triggers KASAN use-after-free/double-free

Fix by preserving the newly allocated link pointers across the
memcpy operation.

KASAN report:
  BUG: KASAN: slab-use-after-free in cfg80211_sinfo_release_content+0x90/0xc8 [cfg80211]
 Call trace:
  show_stack+0x18/0x28 (C)
  dump_stack_lvl+0x40/0xbc
  print_report+0x144/0x6f4
  kasan_report+0xdc/0x13c
  __asan_report_load8_noabort+0x20/0x30
  cfg80211_sinfo_release_content+0x90/0xc8 [cfg80211]
  nl80211_send_station+0x167c/0x1bc4 [cfg80211]
  nl80211_get_station+0x530/0x660 [cfg80211]
  genl_family_rcv_msg_doit+0x17c/0x258
  genl_rcv_msg+0x334/0x478
  netlink_rcv_skb+0x1a0/0x2f8
  genl_rcv+0x34/0x50
  netlink_unicast+0x4e8/0x76c
  netlink_sendmsg+0x460/0x6ec

 Freed by task 992:
  kasan_save_track+0x40/0x7c
  __kasan_save_free_info+0x54/0x70
  __kasan_slab_free+0x6c/0xa0
  kfree+0x104/0x48c
  cfg80211_sinfo_release_content+0x50/0xc8 [cfg80211]
  nl80211_send_station+0x167c/0x1bc4 [cfg80211]
  nl80211_get_station+0x530/0x660 [cfg80211]

Change-Id: Ib7b715c953170b0cd31b7b3557a907debfdf1d6f
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
2026-01-11 19:37:20 +08:00
Sherry Sun
eadd45baa0 Fix build warning in MM6X18542.p2 release
When building MM6X18542.p2 wifi release on ARM32 platforms, will meet
the following build warning, force the size_t type to be converted to
the unsigned long to avoid this warning.

mlinux/moal_proc.c: In function ‘woal_ssu_dump_read’:
/linux-lts-nxp/include/linux/kern_levels.h:5:25: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-12-30 16:17:16 +08:00
Pushpendra Tiwari
e753dc757d Driver commit for release MM6X18542.p2_V1 2025-12-24_16:21:31
Firmware version for commit:
W9098-17.92.1.p149.82
IW416-16.92.21.p155
W8987-16.92.21.p153.7
IW612-18.99.3.p29.1
IW610-18.99.5.p86
AW693-18.99.2.p145.161

Signed-off-by: Pushpendra Tiwari <pushpendra.tiwari@nxp.com>
2025-12-27 16:05:52 +08:00
Pushpendra Tiwari
7b05b57625 Driver commit for release -MM6X18540.p34 2025-11-21_15:15:28
Firmware version for commit:
W8997-16.92.21.p153.7
W9098-17.92.1.p149.81
IW416-16.92.21.p153.7
W8987-16.92.21.p153.7
IW612-18.99.3.p27.6
IW610-18.99.5.p83
AW693-18.99.2.p145.147

Signed-off-by: Pushpendra Tiwari <pushpendra.tiwari@nxp.com>
2025-12-27 16:05:35 +08:00
Sherry Sun
87d7b50151 mwifiex: Fix improper logging level for wifi driver
Fix the wifi driver to make correct use of kernel log levels.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-12-05 15:31:26 +08:00
Sherry Sun
371a047ac6 Driver commit for release MM6X18540.p33_V1 2025-11-12_13:06:28
Firmware version for commit:
W8997-16.92.21.p153.7
W9098-17.92.1.p149.81
IW416-16.92.21.p153.7
W8987-16.92.21.p153.7
IW612-18.99.3.p27.6
IW610-18.99.5.p83
AW693-18.99.2.p145.147

Signed-off-by: Pushpendra Tiwari <pushpendra.tiwari@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-11-13 10:29:52 +08:00
Pushpendra Tiwari
65b034884c Driver commit for release MM6X18540.p22_V0 2025-10-07_15:04:46
Firmware version for commit:
W8997-16.92.21.p153.6
W9098-17.92.1.p149.79
IW416-16.92.21.p153.6
W8987-16.92.21.p153.6
IW612-18.99.3.p27
IW610-18.99.5.p78
AW693-18.99.2.p145.124

Signed-off-by: Pushpendra Tiwari <pushpendra.tiwari@nxp.com>
2025-10-10 14:54:23 +08:00
AMIT CHOUDHARY
166182fdcc Driver commit for release MM6X18540.p10 2025-08-28
Firmware version for commit:
W8997-16.92.21.p153.4
W9098-17.92.1.p149.76
IW416-16.92.21.p153.4
W8987-16.92.21.p153.4
IW612-18.99.3.p26.7
IW610-18.99.5.p73
AW693-18.99.2.p145.99

Signed-off-by: AMIT CHOUDHARY <amit.kumar_13@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-10-10 14:52:57 +08:00
Sherry Sun
cd6b82e5a0 mxm_wifiex: fix build warnings in MM6X18540.p7 release
Fix the following build warnings in MM6X18540.p7 release.

mwifiex/mlan/mlan_uap_ioctl.c:2037:13: warning: no previous prototype for ‘wlan_uap_agcs_cfg’ [-Wmissing-prototypes]
 2037 | mlan_status wlan_uap_agcs_cfg(pmlan_adapter pmadapter,
      |             ^~~~~~~~~~~~~~~~~
mwifiex/mlinux/moal_main.c:4375:13: warning: no previous prototype for ‘woal_get_ind_rst_cfg’ [-Wmissing-prototypes]
 4415 | mlan_status woal_get_ind_rst_cfg(moal_handle *handle, t_u8 wait_option)
      |             ^~~~~~~~~~~~~~~~~~~~
mwifiex/mlinux/moal_main.c:13295:6: warning: no previous prototype for ‘woal_survey_dump_reset’ [-Wmissing-prototypes]
13335 | void woal_survey_dump_reset(moal_private *priv)
      |      ^~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-08-26 16:31:05 +08:00
Sherry Sun
60f40a222f mxm_wifiex: clean up secure_host
Since the SECURE_HOST related files have been removed, the secure_host
in the README should also be cleaned up accordingly.

Also, some missing files in the mlan and mlinux folders have been
cleaned up.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-08-26 16:31:05 +08:00
AMIT CHOUDHARY
f97f966e17 Issue: WSW-62804 WSW-62817 UUT is still in bad state after auto firmware recovery
Added patch to handle the WSW-62804 WSW-62817 UUT
is still in bad state after auto firmware recovery.
2025-08-26 10:55:11 +08:00
AMIT CHOUDHARY
6818dd8ca9 Issue: WCSWREL-733 i.MX Linux: MM6X18540.p7: nanotls related files been wrong added which may cause license confilct
Removed the default config got SECURE_HOST which leads to
addition for nanotls dependency..

Signed-off-by: AMIT CHOUDHARY <amit.kumar_13@nxp.com>
2025-08-26 10:55:00 +08:00
AMIT CHOUDHARY
a250162547 Driver commit for release MM6X18540.p7 2025-08-23
Firmware version for commit:
W8997-16.92.21.p153.4
W9098-17.92.1.p149.76
IW416-16.92.21.p153.4
W8987-16.92.21.p153.4
IW612-18.99.3.p26.7
IW610-18.99.5.p73
AW693-18.99.2.p145.99

Signed-off-by: AMIT CHOUDHARY <amit.kumar_13@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-08-25 10:38:54 +08:00
Meet Patel
1e8b968f43 Driver commit for release MM6X18540 2025-07-13_16:06:22
Firmware version for commit:
W8997-16.92.21.p153
W9098-17.92.1.p149.74
IW416-16.92.21.p153
W8987-16.92.21.p153
IW612-18.99.3.p26.1
IW610-18.99.5.p70
AW693-18.99.2.p145.70
2025-07-22 22:46:18 +08:00
Meet Patel
7d13b9dc29 Driver commit for release MM6X18537.p15_V1 2025-06-20_11:48:00
Firmware version for commit:
W8997-16.92.21.p151.5
W9098-17.92.1.p149.72
IW416-16.92.21.p151.5
W8987-16.92.21.p151.5
IW612-18.99.3.p25.10
IW610-18.99.5.p65
AW693-18.99.2.p145.35
2025-07-22 22:46:14 +08:00
Sherry Sun
038a307943 mxm_wifiex: fix build errors on L6.16 kernel next tree
When build wifi driver based on L6.16 kernel next tree, will observe the
following build errors. These are caused by the upstream patches:
41cb08555c41 ("treewide, timers: Rename from_timer() to timer_container_of()")
b74947b4f6ff ("wifi: cfg80211/mac80211: Add support to get radio index")
Need to change corresponding API here to avoid the build break.

Build error logs:
mlinux/moal_main.h:498:54: note: each undeclared identifier is reported only once for each function it appears in
In file included from mlinux/moal_cfg80211.h:26,
                 from mlinux/moal_sta_cfg80211.c:23:
mlinux/moal_main.h: In function ‘woal_timer_handler’:
mlinux/moal_main.h:498:33: error: implicit declaration of function ‘from_timer’; did you mean ‘mod_timer’? [-Werror=implicit-function-declaration]
  498 |         pmoal_drv_timer timer = from_timer(timer, t, tl);
      |                                 ^~~~~~~~~~
      |                                 mod_timer
mlinux/moal_sta_cfg80211.c: At top level:
mlinux/moal_sta_cfg80211.c:403:29: error: initialization of ‘int (*)(struct wiphy *, int,  u32)’ {aka ‘int (*)(struct wiphy *, int,  unsigned int)’} from incompatible pointer type ‘int (*)(struct wiphy *, u32)’ {aka ‘int (*)(struct wiphy *, unsigned int)’} [-Werror=incompatible-pointer-types]
  403 |         .set_wiphy_params = woal_cfg80211_set_wiphy_params,
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mlinux/moal_sta_cfg80211.c:403:29: note: (near initialization for ‘woal_cfg80211_ops.set_wiphy_params’)
mlinux/moal_sta_cfg80211.c:428:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, int,  enum nl80211_tx_power_setting,  int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, enum nl80211_tx_power_setting,  int)’ [-Werror=incompatible-pointer-types]
  428 |         .set_tx_power = woal_cfg80211_set_tx_power,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
mlinux/moal_sta_cfg80211.c:428:25: note: (near initialization for ‘woal_cfg80211_ops.set_tx_power’)
mlinux/moal_sta_cfg80211.c:429:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, int,  unsigned int,  int *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  int *)’ [-Werror=incompatible-pointer-types]
  429 |         .get_tx_power = woal_cfg80211_get_tx_power,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
mlinux/moal_sta_cfg80211.c:429:25: note: (near initialization for ‘woal_cfg80211_ops.get_tx_power’)
mlinux/moal_sta_cfg80211.c:444:24: error: initialization of ‘int (*)(struct wiphy *, int,  u32,  u32)’ {aka ‘int (*)(struct wiphy *, int,  unsigned int,  unsigned int)’} from incompatible pointer type ‘int (*)(struct wiphy *, u32,  u32)’ {aka ‘int (*)(struct wiphy *, unsigned int,  unsigned int)’} [-Werror=incompatible-pointer-types]
  444 |         .set_antenna = woal_cfg80211_set_antenna,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~
mlinux/moal_sta_cfg80211.c:444:24: note: (near initialization for ‘woal_cfg80211_ops.set_antenna’)
mlinux/moal_sta_cfg80211.c:445:24: error: initialization of ‘int (*)(struct wiphy *, int,  u32 *, u32 *)’ {aka ‘int (*)(struct wiphy *, int,  unsigned int *, unsigned int *)’} from incompatible pointer type ‘int (*)(struct wiphy *, u32 *, u32 *)’ {aka ‘int (*)(struct wiphy *, unsigned int *, unsigned int *)’} [-Werror=incompatible-pointer-types]
  445 |         .get_antenna = woal_cfg80211_get_antenna,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~
mlinux/moal_sta_cfg80211.c:445:24: note: (near initialization for ‘woal_cfg80211_ops.get_antenna’)

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-07-21 15:35:27 +08:00
Meet Patel
eecc5871b1 Driver commit for release MM6X18537.p9 2025-05-27_13:55:57
Firmware version for commit:
W8997-16.92.21.p151.4
W9098-17.92.1.p149.70
IW416-16.92.21.p151.4
W8987-16.92.21.p151.4
IW612-18.99.3.p25.7
IW610-18.99.5.p61
AW693-18.99.2.p145.34
2025-05-27 15:09:21 +05:30
Sherry Sun
91d2e896ac mxm_wifiex: fix build error on L6.15 kernel next tree
When build wifi driver based on L6.15 kernel next tree, will observe the
following build error. This is caused by the upstream patch:
8fa7292fee5c ("treewide: Switch/rename to timer_delete[_sync]()")
Need to change corresponding API here to avoid the build break.

Build error logs:
In file included from mlinux/moal_ioctl.c:28:
mlinux/moal_main.h: In function ‘woal_cancel_timer’:
mlinux/moal_main.h:572:17: error: implicit declaration of function ‘del_timer’; did you mean ‘add_timer’? [-Werror=implicit-function-declaration]
  572 |                 del_timer(&timer->tl);
      |                 ^~~~~~~~~
      |                 add_timer
mlinux/moal_main.h:574:17: error: implicit declaration of function ‘del_timer_sync’; did you mean ‘dev_mc_sync’? [-Werror=implicit-function-declaration]
  574 |                 del_timer_sync(&timer->tl);
      |                 ^~~~~~~~~~~~~~
      |                 dev_mc_sync

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-05-03 17:02:53 +08:00
Vinoba Jadhav
bc7387bfe7 Driver commit for release MM6X18537.p2_2025-04-22-00-50-45 2025-04-22 09:02:23 +00:00
Vinoba Jadhav
32e3210500 Driver commit for release MM6X18537_2025-04-22-00-42-38 2025-04-22 08:53:34 +00:00
Sherry Sun
0ea4f2ff50 mxm_wifiex: fix build error on L6.14 kernel next tree
When build wifi driver based on L6.14 kernel next tree, will observe the
following build error. This is caused by the upstream patch:
f835bdae7167 ("net: remove init_dummy_netdev()").
Need to change corresponding API here to avoid the build break.

Build error logs:
mlinux/moal_main.c: In function 'woal_add_card':
mlinux/moal_main.c:13469:17: error: implicit declaration of function 'init_dummy_netdev' [-Wimplicit-function-declaration]
13469 | init_dummy_netdev(&handle->napi_dev);

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-03-19 16:28:38 +08:00
Sherry Sun
3383eb3ec9 mxm_wifiex: remove MODULE_DEVICE_TABLE for usb wifi driver
Remove MODULE_DEVICE_TABLE for USB wifi driver to avoid autoloading wifi
driver without any wifi load parameters.
Also keep consistency with PCIe and SDIO drivers.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-03-17 15:40:35 +08:00
Sherry Sun
58368fe6e6 mxm_wifiex: fix build warnings on L6.13 kernel next tree
When build wifi driver based on L6.13 kernel next tree, will observe the
following build errors. This is caused by the following three upstream
patches. Need to change corresponding API here to avoid the build break.

02f220b52670 ("wifi: ipw2x00/lib80211: move remaining lib80211 into
libipw")
7a53af85d3bb ("wifi: cfg80211: send MLO links tx power info in
GET_INTERFACE")
9c4f83092775 ("wifi: cfg80211: pass net_device to .set_monitor_channel")

In file included from mlinux/moal_main.c:29:
mlinux/moal_main.h:136:10: fatal error: net/lib80211.h: No such file or directory
  136 | #include <net/lib80211.h>
      |          ^~~~~~~~~~~~~~~~
 compilation terminated.
make[3]: *** [/kernel-source/scripts/Makefile.build:194: mlinux/moal_main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from mlinux/moal_eth_ioctl.c:29:
mlinux/moal_main.h:136:10: fatal error: net/lib80211.h: No such file or directory
  136 | #include <net/lib80211.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

mlinux/moal_sta_cfg80211.c:379:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  int *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, int *)’ [-Werror=incompatible-pointer-types]
  379 |         .get_tx_power = woal_cfg80211_get_tx_power,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
mlinux/moal_sta_cfg80211.c:379:25: note: (near initialization for ‘woal_cfg80211_ops.get_tx_power’)
mlinux/moal_sta_cfg80211.c:468:32: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
  468 |         .set_monitor_channel = woal_cfg80211_set_monitor_channel,
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mlinux/moal_sta_cfg80211.c:468:32: note: (near initialization for ‘woal_cfg80211_ops.set_monitor_channel’)
cc1: some warnings being treated as errors
make[4]: *** [/kernel-source/scripts/Makefile.build:194: mlinux/moal_sta_cfg80211.o] Error 1

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-02-12 14:34:07 +08:00
Sherry Sun
a8d5496229 mxm_wifiex: update to mxm6x18505.p14 release
Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p149.2
PCIE-UART W8997 Firmware version 16.92.21.p149.2
SDIO-UART W8997 Firmware version 16.92.21.p149.2
SDIO-UART IW416 Firmware version 16.92.21.p149.2
SDIO_UART IW610 Firmware version 18.99.5.p51
SDIO_UART IW612 Firmware version 18.99.3.p23.6
SDIO-UART W8801 Firmware version 14.92.36.p197
SDIO-UART W9098 Firmware version 17.92.1.p149.60
PCIE-UART W9098 Firmware version 17.92.1.p149.60

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2025-01-16 11:25:18 +08:00
Sherry Sun
b952ebfcb5 mxm_wifiex: update to mxm6x18505.p12 release
Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p149
PCIE-UART W8997 Firmware version 16.92.21.p149
SDIO-UART W8997 Firmware version 16.92.21.p149
SDIO-UART IW416 Firmware version 16.92.21.p149
SDIO_UART IW610 Firmware version 18.99.5.p44.1
SDIO_UART IW612 Firmware version 18.99.3.p23
SDIO-UART W8801 Firmware version 14.92.36.p196
SDIO-UART W9098 Firmware version 17.92.1.p149.57
PCIE-UART W9098 Firmware version 17.92.1.p149.57

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-12-23 17:35:59 +08:00
Sherry Sun
7a182ab4c4 mxm_wifiex: update to mxm6x18505.p10 release
Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p149
PCIE-UART W8997 Firmware version 16.92.21.p149
SDIO-UART W8997 Firmware version 16.92.21.p149
SDIO-UART IW416 Firmware version 16.92.21.p149
SDIO_UART IW610 Firmware version 18.99.5.p44
SDIO_UART IW612 Firmware version 18.99.3.p23
SDIO-UART W8801 Firmware version 14.92.36.p196
SDIO-UART W9098 Firmware version 17.92.1.p149.57
PCIE-UART W9098 Firmware version 17.92.1.p149.57

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-12-17 11:06:45 +08:00
Sherry Sun
5ad19e194f mxm_wifiex: update to mxm6x18505.p4 release
Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p142.3
PCIE-UART W8997 Firmware version 16.92.21.p137.4
SDIO-UART W8997 Firmware version 16.92.21.p137.4
SDIO-UART IW416 Firmware version 16.92.21.p142.3
SDIO_UART IW610 Firmware version 18.99.5.p39
SDIO_UART IW612 Firmware version 18.99.3.p21.10
SDIO-UART W8801 Firmware version 14.92.36.p195
SDIO-UART W9098 Firmware version 17.92.1.p149.53
PCIE-UART W9098 Firmware version 17.92.1.p149.53

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-11-12 11:21:25 +08:00
Sherry Sun
e4ffd91b62 mxm_wifiex: fix build warnings on L6.12 kernel next tree
When build wifi driver based on L6.12 kernel next tree, will observe the
following build errors. This is caused by the upstream patches
62c16f219a73 ("wifi: cfg80211: move DFS related members to links[] in
wireless_dev") and 81f67d60ebf2 ("wifi: cfg80211: handle DFS per link").
Need to change corresponding API here to avoid the build break.

/mwifiex/mlinux/moal_sta_cfg80211.c:435:34: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, u32,  int)’ {aka ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, unsigned int,  int)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, u32)’ {aka ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, unsigned int)’} [-Werror=incompatible-pointer-types]
  435 |         .start_radar_detection = woal_cfg80211_start_radar_detection,
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mwifiex/mlinux/moal_sta_cfg80211.c:435:34: note: (near initialization for ‘woal_cfg80211_ops.start_radar_detection’)
/mwifiex/mlinux/moal_cfg80211.c: In function ‘woal_cancel_cac’:
/mwifiex/mlinux/moal_cfg80211.c:1096:17: error: too few arguments to function ‘cfg80211_cac_event’
 1096 |                 cfg80211_cac_event(priv->netdev, &priv->phandle->dfs_channel,
      |                 ^~~~~~~~~~~~~~~~~~
In file included from /mwifiex/mlinux/moal_main.h:136,
                 from /mwifiex/mlinux/moal_cfg80211.h:26,
                 from /mwifiex/mlinux/moal_cfg80211.c:23:
./include/net/cfg80211.h:8750:6: note: declared here
 8750 | void cfg80211_cac_event(struct net_device *netdev,
      |      ^~~~~~~~~~~~~~~~~~
/mwifiex/mlinux/moal_shim.c:3701:60: error: ‘struct wireless_dev’ has no member named ‘cac_start_time’
 3701 |                                                 (priv->wdev->cac_start_time +
      |                                                            ^~
/mwifiex/mlinux/moal_shim.c:3704:66: error: ‘struct wireless_dev’ has no member named ‘cac_time_ms’
 3704 |                                                                  ->cac_time_ms));
      |                                                                  ^~

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-10-23 15:50:16 +08:00
Luke Wang
f45013f26a mxm_wifiex: fix build error for udelay
When build on 32-bit platform, error log shows:
ERROR: modpost: "__bad_udelay" [mwifiex/moal.ko] undefined!

32-bit platform udelay has 2000us limition. Split it as workaround.

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
2024-10-23 15:48:35 +08:00
Luke Wang
ac1604083f mxm_wifiex: update to mxm6x18505.p1 release
Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p142
PCIE-UART W8997 Firmware version 16.92.21.p137.3
SDIO-UART W8997 Firmware version 16.92.21.p137.3
SDIO-UART IW416 Firmware version 16.92.21.p142
SDIO_UART IW610 Firmware version 18.99.5.p35
SDIO_UART IW612 Firmware version 18.99.3.p21.4
SDIO-UART W8801 Firmware version 14.92.36.p194
SDIO-UART W9098 Firmware version 17.92.1.p149.50
PCIE-UART W9098 Firmware version 17.92.1.p149.50

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
2024-10-23 15:48:35 +08:00
Luke Wang
e5c9a169d7 mxm_wifiex: update to mxm6x17437.p30 release
Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p137.2
PCIE-UART W8997 Firmware version 16.92.21.p137.2
SDIO-UART W8997 Firmware version 16.92.21.p137.2
SDIO-UART IW416 Firmware version 16.92.21.p137.2
SDIO_UART IW612 Firmware version 18.99.3.p15.8
SDIO-UART W8801 Firmware version 14.92.36.p192
SDIO-UART W9098 Firmware version 17.92.1.p149.155
PCIE-UART W9098 Firmware version 17.92.1.p149.155

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
2024-09-04 14:59:52 +08:00
Luke Wang
de2411c71c avoid WiFi cannot connect to AP after suspend resume
WCSWREL-621:
woal_sdio_suspend() may be called before complete cfg80211_disconnect(),
which causes WiFi cannot connect to AP after suspend resume.
Add delay to wait kernel complete cfg80211_disconnect() as a workaround.

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
2024-08-05 15:26:29 +08:00
Luke Wang
5fe38ed6c6 mxm_wifiex: update to mxm6x17437.p24 release
Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p137
PCIE-UART W8997 Firmware version 16.92.21.p137.1
SDIO-UART W8997 Firmware version 16.92.21.p137.1
SDIO-UART IW416 Firmware version 16.92.21.p137
SDIO_UART IW612 Firmware version 18.99.3.p15
SDIO-UART W8801 Firmware version 14.92.36.p192
SDIO-UART W9098 Firmware version 17.92.1.p149.44
PCIE-UART W9098 Firmware version 17.92.1.p149.44

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
2024-08-05 15:26:12 +08:00
Sherry Sun
88372772ba fix build warnings on L6.9 kernel tree
When build wifi driver based on L6.9 kernel next tree, will observe the
following three different type build warnings. Need to add the code
changes here to avoid the build warnings.

/mwifiex/mlan/mlan_11h.c:1676:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
 1676 | t_u8 static wlan_11h_check_dfs_channel(mlan_adapter *pmadapter)
      | ^~~~
  CC [M]  /mwifiex/mlan/mlan_uap_cmdevent.o
/mwifiex/mlan/mlan_11h.c:1712:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
 1712 | mlan_status static wlan_11h_disable_dfs(mlan_private *priv, t_void *pioctl_buf)
      | ^~~~~~~~~~~

/mwifiex/mlinux/moal_eth_ioctl.c: In function ‘parse_arguments’:
/mwifiex/mlinux/moal_eth_ioctl.c:159:41: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  159 |                                         ;
      |                                         ^

/mwifiex/mlinux/moal_eth_ioctl.c: In function ‘woal_priv_hssetpara.isra’:
/mwifiex/mlinux/moal_eth_ioctl.c:5159:17: warning: ‘snprintf’ argument 6 may overlap destination object ‘respbuf’ [-Wrestrict]
 5159 |                 snprintf(respbuf, CMD_BUF_LEN, "%s%s%s", CMD_NXP,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 5160 |                          PRIV_CMD_HSCFG,
      |                          ~~~~~~~~~~~~~~~
 5161 |                          respbuf + (strlen(CMD_NXP) +
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 5162 |                                     strlen(PRIV_CMD_HSSETPARA)));
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mwifiex/mlinux/moal_eth_ioctl.c:5131:58: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
 5131 | static int woal_priv_hssetpara(moal_private *priv, t_u8 *respbuf,
      |                                                    ~~~~~~^~~~~~~

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-06-03 12:40:39 +08:00
Sherry Sun
49fa879fe0 mxm_wifiex: update to mxm6x17437.p21 release
Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p119.3
PCIE-UART W8997 Firmware version 16.92.21.p119.3
SDIO-UART W8997 Firmware version 16.92.21.p119.3
SDIO-UART IW416 Firmware version 16.92.21.p119.11
SDIO_UART IW612 Firmware version 18.99.3.p10.1
SDIO-UART W8801 Firmware version 14.92.36.p192
SDIO-UART W9098 Firmware version 17.92.1.p149.43
PCIE-UART W9098 Firmware version 17.92.1.p149.43

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-05-28 10:42:32 +08:00
Sherry Sun
33ae3cbc47 mxm_wifiex: fix woal_process_event_tx_status() and woal_uap_wacp_mode() build warnings
When build wifi driver based on L6.9 kernel next tree, will observe the
following build warnings. Need to add static to avoid the build
warnings.

/mwifiex/mlinux/moal_shim.c:2768:8: warning: no previous prototype for ‘woal_process_event_tx_status’ [-Wmissing-prototypes]
 2768 | t_void woal_process_event_tx_status(moal_private *priv,
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mwifiex/mlinux/moal_uap.c:2560:5: warning: no previous prototype for ‘woal_uap_wacp_mode’ [-Wmissing-prototypes]
 2560 | int woal_uap_wacp_mode(struct net_device *dev, struct ifreq *req)
      |     ^~~~~~~~~~~~~~~~~~

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-05-08 14:27:30 +08:00
Sherry Sun
acf8d2a710 Change the folder layout to make it more clear
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-05-08 14:21:28 +08:00