Commit graph

100 commits

Author SHA1 Message Date
yunjie 5f7a9ac065 MA-22254 wifi driver crashed when do CtsJobSchedulerTestCases cts test
on GMS image

Reason: fix the zero length define in mlan_fw.h
Tested: on i.MX 8mm

Change-Id: I9ed9d03d2de6c3aac9d5ff9934af2caed02e1c9b
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2024-03-28 14:44:10 +00:00
Zhipeng Wang 8546cd77cf MA-22242 [Android-14] Fix build error when using bazel to update symbol list
The following build error is encountered when using bazel to update
symbol list:

Makefile:142: /build/make/core/build_id.mk: No such file or directory
make: *** No rule to make target '/build/make/core/build_id.mk'.  Stop.

There is no build_id.mk when using bazel build. the first letter of
BUILD_ID in build/make/core/build_id.mk for Android14 must be U to
represent Android14, so the change has no negative effect on the
branch being used only for Android14.

Change-Id: I6045f7fabe9d6b1767b4c830bf4041a7e70029ae
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2024-03-27 17:24:49 +09:00
yunjie 084db3ce0f MA-21977-2 [Android-14] WCS Q1 release patch integrate
Reason:update WCS Q1 RC3 mxm6x17437.p8 patch Wifi Drvier
Tested:8MQ/8MP/8MM/8QXP

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.3
SDIO_UART IW612 Firmware version 18.99.2.p66.18

Change-Id: I885cc2efef54e9cfac389d60795dd53fed9bf767
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2024-02-23 14:41:28 +00:00
yunjie 36c24633f2 Merge branch 'lf-6.1.55_2.2.0_android-14.0' of ssh://bitbucket.sw.nxp.com/imx/mwifiex into q1_rc2
Change-Id: I0208c67f49701916f1c414b26b74390cc5f0cd62
2024-02-19 20:18:43 +00:00
yunjie e76354d77e MA-22118 [8MQ & 8MP] io_tlb_used issue after apply WCS Q1 patch
Reason:WCSWREL-571 PCIe call moal_map_memory 2 times, Fix the bug in call
wlan_pcie_send_boot_cmd
Tested:on 8MP

Change-Id: Ia856602961fb9d3573059da6dfaf17dcf741873b
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2024-02-19 18:00:58 +00:00
yunjie 21a48c6f51 MA-21977-2 [Android-14] WCS Q1 release patch integrate
Reason:fix kernel 6.6 WiFi hostap crash issue
Tested:imx8mq

Change-Id: I437f8eac7304394a57e3d9635218bda4f5f1f826
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2024-02-05 09:34:37 +00:00
Sherry Sun 064a3b37e9 MA-21977-1 [Android-14] WCS Q1 release patch integrate
Reason:integrate WCS Q1 RC2 patch WiFi driver part
Tested:imx8mq

mxm_wifiex: update to mxm6x17437.p3 release

Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p119.2
PCIE-UART W8997 Firmware version 16.92.21.p119.2
SDIO-UART W8997 Firmware version 16.92.21.p119.2
SDIO-UART IW416 Firmware version 16.92.21.p119.2
SDIO_UART IW612 Firmware version 18.99.2.p66.17
SDIO-UART W8801 Firmware version 14.92.36.p188
SDIO-UART W9098 Firmware version 17.92.1.p149.131
PCIE-UART W9098 Firmware version 17.92.1.p149.131

Change-Id: Iea9c2dce8bff8ab65489a225c1b293f51ed8fd7a
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-01-23 11:46:40 +00:00
Sherry Sun 749db4f4b5 MA-21977 [Android-14] WCS Q1 release patch integrate
Reason:integrate WCS Q1 CF patch WiFi dirver part
Tested:imx8mq

mxm_wifiex: update to mxm6x17437 release

Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p119
PCIE-UART W8997 Firmware version 16.92.21.p119
SDIO-UART W8997 Firmware version 16.92.21.p119
SDIO-UART IW416 Firmware version 16.92.21.p119
SDIO_UART IW612 Firmware version 18.99.2.p66.12
SDIO-UART W8801 Firmware version 14.92.36.p188
SDIO-UART W9098 Firmware version 17.92.1.p149.128
PCIE-UART W9098 Firmware version 17.92.1.p149.128

Change-Id: I4f3e5ff6a2f901807562d38c67044fb0e026e77c
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2024-01-15 10:20:39 +00:00
yunjie 91f6b99cf0 MA-21718-1 Q4 WCS patch integrate on Android-14
Reason:integrate Q4 RC2 WCS patch WiFi driver part on Android-14
Tested:i.MX 8MQ

mxm_wifiex: update to mxm6x17423.p6 release

SDIO_WLAN_UART_BT_IW612_18.99.2.p66.10_18.99.2.p66.10
PCIE_WLAN_UART_BT_9098_17.92.1.p136.132_17.92.1.p136.132
SDIO_WLAN_UART_BT_9098_17.92.1.p136.132_17.92.1.p136.132

Change-Id: I60189581750ec7ecea15aa639a08183c18453751
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-11-14 17:52:09 +00:00
Sherry Sun 44ed1ebb6a mxm_wifiex: fix L6.1.55 kernel build break
When build wifi driver based on L6.1.55 kernel, will observe the
following build error.

| mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c:10345:36: error: 'REGULATORY_IGNORE_STALE_KICKOFF' undeclared (first use in this function)
| 10345 |         wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
|       |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This error caused by kernel patch e8c2af660ba0("wifi: cfg80211: fix
regulatory disconnect with OCB/NAN") remove the
REGULATORY_IGNORE_STALE_KICKOFF flag.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2023-10-18 23:45:38 +09:00
Sherry Sun 1cda5f90c7 MA-21718 Q4 WCS patch integrate on Android-14
Reason:integrate Q4 WCS patch WiFi drvier part on Android-14
Tested:i.MX 8MQ

mxm_wifiex: update to mxm6x17423.p1 release

Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p99.2
PCIE-UART W8997 Firmware version 16.92.21.p84.4
SDIO-UART W8997 Firmware version 16.92.21.p84.4
SDIO-UART IW416 Firmware version 16.92.21.p84.128
SDIO_UART IW612 Firmware version 18.99.2.p66
SDIO-UART W8801 Firmware version 14.92.36.p186
SDIO-UART W9098 Firmware version 17.92.1.p136.131
PCIE-UART W9098 Firmware version 17.92.1.p136.131

Change-Id: I6deaa6a83c769f1ba148f373a158e754f80291fe
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2023-10-18 17:30:44 +00:00
yunjie 33e644c3e1 MA-21620 Wi-Fi: WiFi doesn't work if connected multi BT devices
Reason:merge WCS Q3RC2 17408.p4 patch to fix MA-21620
Tested:on 2 8MQ WEVK board, issue not reproduced over16 hours

Change-Id: I1030503d90dac9fb9e91597f4f4fe81b1271f874
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-10-10 10:48:05 +00:00
yunjie e6e7751008 MA-21616 [Android_8MP_EVK] WiFi: Device reboot when accessing webpage
Reason: this issue same as WCSWREL-468,which WCS has provide the p3
patch to fix this issue
Test: i.MX 8MP

Change-Id: I07327ba3f784e7c842c477e883f985a8ebbf1e26
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-09-07 08:42:55 +00:00
Sherry Sun 5de735a978 MA-21514-1 WCS Q3 2023 WiFi/BT release patch integrate
Reason: integrate WCS 2023 Q3 RC2 release WiFi drvier
Test: i.MX Mek8QXP

mxm_wifiex: update to mxm6x17408.p2 release

Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p99.2
PCIE-UART W8997 Firmware version 16.92.21.p84.4
SDIO-UART W8997 Firmware version 16.92.21.p84.4
SDIO-UART IW416 Firmware version 16.92.21.p84.3
SDIO_UART IW612 Firmware version 18.99.2.p19.15
SDIO-UART W8801 Firmware version 14.92.36.p182
SDIO-UART W9098 Firmware version 17.92.1.p136.131
PCIE-UART W9098 Firmware version 17.92.1.p136.131

Change-Id: I724de2eb09aae0288907426c46a0b6503fcd6c8d
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2023-09-06 15:42:25 +00:00
Sherry Sun cb6c58e463 MA-21514 WCS Q3 2023 WiFi/BT release patch integrate
Reason: integrate WCS 2023 Q3 CF release WiFi drvier
Test: i.MX 8M Mini

mxm_wifiex: update to mxm6x17408 release

Corresponding firmware version:
SDIO-UART W8987 Firmware version 16.92.21.p99
PCIE-UART W8997 Firmware version 16.92.21.p84.4
SDIO-UART W8997 Firmware version 16.92.21.p84.4
SDIO-UART IW416 Firmware version 16.92.21.p84.3
SDIO_UART IW612 Firmware version 18.99.2.p19.6
SDIO-UART W8801 Firmware version 14.92.36.p182
SDIO-UART W9098 Firmware version 17.92.1.p136.128
PCIE-UART W9098 Firmware version 17.92.1.p136.129

Change-Id: Ie1295b4d5e6014b82316fa349ff995a05473052b
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2023-07-26 17:13:55 +00:00
yunjie 000443c54d MA-21223-1 integrate WCS Q2 release code
Reason: integrate WCS Q2 RC2 release Wlan Driver
Test: on i.MX8M Mini

Change-Id: I26708abf7a7be223a7bd2070c6efd2a17c1be745
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-06-08 17:32:31 +00:00
Zhipeng Wang 4304ad6450 MA-20666-1 Kleaf: Add wlan as an external module.
Test: tools/bazel run --lto=thin  //common:imx_abi_update_symbol_list

Change-Id: I3ed918514ee08dbd376b9a737b47a21badceed77
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-05-08 12:04:57 +00:00
yunjie f84ecea53f MA-21171-1 mxm_wifiex: Fix kernel update build errors
this is to fix the build error after integrate Q2 CF patch

After kernel merge aosp/android14-6.1, the following error is
encountered:

nxp-mwifiex/mxm_wifiex/wlan_src/mlinux/moal_cfg80211.c:5006:54: error:
too few arguments to function call, expected 4, have 3
cfg80211_ch_switch_notify(priv->netdev, &chandef, 0);

This is caused by kernel patch 541c3b73ddf0("UPSTREAM:
wifi: cfg80211: include puncturing bitmap in channel
switch events"), now cfg80211_ch_switch_notify() needs
four parameters.

Change-Id: I55ec827d696562d644f99adebc6b92b103be06ca
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-05-06 14:44:31 +00:00
Sherry Sun 5778995884 mxm_wifiex: fix mxm5x17391 release build error and warnings
Rename README_MLAN to README in Makefile, otherwise it will build break
becasue cannot find README_MLAN any more.

Also, fix the following build warnings on ARM32 and ARM64 platforms.
In file included from ./include/linux/kernel.h:29,
                 from /work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_main.h:37,
                 from /work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.h:26,
                 from /work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.c:23:
/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.c: In function ‘woal_cfg80211_subcmd_rtt_range_request’:
./include/linux/kern_levels.h:5:25: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘unsigned int’ [-Wformat=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
./include/linux/printk.h:429:25: note: in definition of macro ‘printk_index_wrap’
  429 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_main.h:3167:25: note: in expansion of macro ‘printk’
 3167 |                         printk(KERN_ERR msg);                                  \
      |                         ^~~~~~
./include/linux/kern_levels.h:11:25: note: in expansion of macro ‘KERN_SOH’
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_main.h:3167:32: note: in expansion of macro ‘KERN_ERR’
 3167 |                         printk(KERN_ERR msg);                                  \
      |                                ^~~~~~~~
/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_main.h:3186:31: note: in expansion of macro ‘PRINTM_MERROR’
 3186 | #define PRINTM(level, msg...) PRINTM_##level(level, msg)
      |                               ^~~~~~~
/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.c:4351:17: note: in expansion of macro ‘PRINTM’
 4351 |                 PRINTM(MERROR, "%s: invalid %d(total) != %d(num) * %lu(each)\n",
      |                 ^~~~~~

/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_init.c: In function ‘parse_line_read_card_info’:
/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_init.c:556:37: warning: the comparison will always evaluate as ‘true’ for the pointer operand in ‘p + 1’ must not be NULL [-Waddress]
  556 |         if ((p != NULL) && ((p + 1) != NULL)) {
      |                                     ^~

Change-Id: Ied97151cf845d19ce913200e954a29e5ea809270
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2023-05-06 14:44:31 +00:00
yunjie 9fdb8ae8f0 MA-21223 integrate WCS Q2 CF release code
Author: Sherry Sun <sherry.sun@nxp.com>
Date:   Tue Apr 18 12:54:05 2023 +0800

    mxm_wifiex: update to mxm5x17391 release

    Corresponding firmware version:
    SDIO-UART W8987 Firmware version 16.92.21.p76.5
    PCIE-UART W8997 Firmware version 16.92.21.p84
    SDIO-UART W8997 Firmware version 16.92.21.p84
    SDIO-UART IW416 Firmware version 16.92.21.p84.1
    SDIO_UART IW612 Firmware version 18.99.1.p154.40
    SDIO-UART W8801 Firmware version 14.92.36.p180
    SDIO-UART W9098 Firmware version 17.92.1.p136.24
    PCIE-UART W9098 Firmware version 17.92.1.p136.24

    Signed-off-by: Sherry Sun <sherry.sun@nxp.com>

Change-Id: I81ab2949dc38726f74b9813fa915fc0b4ac481b3
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-05-06 14:44:11 +00:00
Zhipeng Wang 781effe72a MA-21171 mxm_wifiex: Fix kernel update build errors
After kernel merge aosp/android14-6.1, the following error is encountered:

nxp-mwifiex/mxm_wifiex/wlan_src/mlinux/moal_cfg80211.c:5006:54: error: too few arguments to function call, expected 4, have 3
cfg80211_ch_switch_notify(priv->netdev, &chandef, 0);

This is caused by kernel patch 541c3b73ddf0("UPSTREAM:
wifi: cfg80211: include puncturing bitmap in channel
switch events"), now cfg80211_ch_switch_notify() needs
four parameters.

Change-Id: I343a89b8466971f486f0ce8937c1612dec5618fa
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-04-07 10:29:18 +00:00
Sherry Sun 952cbd9afd mxm_wifiex: fix next-20230224 Linux Factory rebase build errors
When build wifi driver based on next-20230224 Linux code, will observe
the following build errors.

/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_shim.c: In function ‘moal_recv_event’:
/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_shim.c:3475:25: error: too few arguments to function ‘cfg80211_ch_switch_notify’
 3475 |                         cfg80211_ch_switch_notify(priv->netdev, &priv->chan, 0);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_main.h:123,
                 from /work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_shim.c:28:
./include/net/cfg80211.h:8375:6: note: declared here
 8375 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:252: /work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_shim.o] Error 1
make[1]: *** [Makefile:2028: /work/mwifiex/mxm_wifiex/wlan_src] Error 2
make[1]: Leaving directory '/work/linux-nxp-rebase'

This is caused by kernel patch b345f0637c00("wifi: cfg80211: include
puncturing bitmap in channel switch events"), now
cfg80211_ch_switch_notify() needs four parameters.

Note: The patch was introduced in L6.2 kernel next tree, but in L6.3
kernel linus tree, so maybe you need to change the kernel version to
L6.3 after we rebase the linux-nxp-rebase to L6.3.

Change-Id: Ibc0ab23dc43cf491d3e418436d126df5a624e3d4
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2023-04-07 10:29:10 +00:00
Zhipeng Wang b23acc414c MA-20998 mxm_wifiex: Add compiler flag to suppress implicit fallthrough warnings
This patch adds the compiler flag "-Wno-implicit-fallthrough"
to suppress implicit fallthrough warnings in mxm_wifiex for
Android kernel builds.

Change-Id: I517f1901a0dd18ed0dd6994ff8cbfa27b15e7a42
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-30 18:44:11 +00:00
Zhipeng Wang 1d96ff12f2 MA-20998-9 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix below build error:

mxm_wifiex/wlan_src/mlinux/moal_ioctl.c:4341:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        default:
        ^

Change-Id: Ia7be7a9996a5d38aedaa89f9020a76024f3b42d2
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang b4a6d35c78 MA-20998-8 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix build error like below:

mxm_wifiex/wlan_src/mlinux/moal_eth_ioctl.c:9706:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        case 1: /* Check type range */

Change-Id: Ib028e4ea505d3c22b4037147bf32f0695f953b25
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang 5d6a2cc546 MA-20998-7 mxm_wifiex: Fix ISO C99 and later do not support implicit function declarations error
Fix below build error:

mxm_wifiex/wlan_src/mlinux/moal_cfg80211.c:2910:12: error: call to undeclared function 'prandom_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        *cookie = prandom_u32() | 1;
                  ^

Change-Id: I7a314afe981b1919e4faeb946ed5fbc439496884
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang a7f96835dc MA-20998-6 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix below build error:

mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1385:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        case PCIE_INT_MODE_MSI:
        ^
mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1402:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        case PCIE_INT_MODE_LEGACY:
        ^

Change-Id: I1322a4f2f128b39b4ac7e01ede5c0145905f2f8f
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang c847fbe032 MA-20998-5 mxm_wifiex: Fix ISO C99 and later do not support implicit function declarations error
Fix below build error:

nxp-mwifiex/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c:6226:17: error: call to undeclared function 'prandom_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        *cookie = (u64)prandom_u32() | 1;
                       ^

Change-Id: Ica0ef0268f2c24fb12906bde96aabb0753b0c855
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang e1b6635d62 MA-20998-4 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix build error like below:

mxm_wifiex/wlan_src/mlinux/moal_priv.c:289:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        case 1: /* Check type range */
        ^

Change-Id: If9a5ee43554b57f659c32ca29ee0813364ddf94c
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang 8a2d3d5f7f MA-20998-3 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix build error like below:

mxm_wifiex/wlan_src/mlan/mlan_11h.c:4063:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        case RDH_STOP_TRAFFIC:
	^^

Change-Id: I7d94a25212af008f5d6ebb0752fd3eca367c9127
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang cbd4075ca1 MA-20998-2 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix below build error:

mxm_wifiex/wlan_src/mlan/mlan_sta_cmd.c:3584:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        default:
        ^

Change-Id: I0ea57a2207c09e5b09c206bba4d3c0a97f9f629a
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang 002406b866 MA-20998-1 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix build error like below:

mxm_wifiex/wlan_src/mlan/mlan_11ac.c:73:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
                case 52:
                ^

Change-Id: I837733df847bbf4898695ed9d2f2e5ff95d4fd37
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
Zhipeng Wang ecebb751f7 MA-20998 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix below build error:

mxm_wifiex/wlan_src/mlan/mlan_11n_aggr.c:413:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
                case MLAN_STATUS_SUCCESS:
                ^

Change-Id: I9c6f7552f66e77e48066d89629b2a4912ec69c2a
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2023-03-29 18:37:24 +00:00
yunjie e53ca7fd5f MA-21130 [All platform] remove the WiFi debug code malnutl
Reason:mlanutl is just for debugging, custom did not need it
Tested:i.MX93

Change-Id: Ia4cd1f37af932b0dae01e2ca9995ee62b37cdaae
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-03-13 17:31:58 +00:00
yunjie 7baf4ff40d MA-21101 [i.MX 93_EVK] enable SDIO-UART IW612 module for WiFi and BT
Reason: enable WiFi on i.MX93 with IW612 SDIO module
Tested: i.MX93

Change-Id: Ifef37f50db08d343c74e559a10a7c4b91f109f1d
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-03-06 10:46:25 +00:00
Sherry Sun d212de6a8a MA-20988 sync WCS Q1 release patch to Android13.0
Reason:sync WCS Q1 RC2 release patch MM5X16368.p2 to Android13.0 also
fix WCSWREL-418
Test:i.MX 8MM/ i.MX 8QXP

mxm_wifiex: move SCR.txt to root folder and rename LICENSE file

SCR.txt and LICENSE files should be in root folder, also need to rename
the gpl-2.0.txt file to work better with GitHub.

Change-Id: I8f912fae7d291022389bcbafb558050c4b95835e
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2023-02-09 14:48:43 +00:00
Sherry Sun be8812297a mxm_wifiex: update to mxm5x17368.p2 release
Driver Bug Fixes:
-----------------
1. WSW-23826: DUT is not waking up on Boadcast Event
2. WSW-22873: Random Kernel crash is seen in STAUT RSNE bounds verification using WPA2-Enterprise test
3. WCSWREL-400: Fixed kernel panic during FW reload
4. WSFD-599: Support trigger frame generating in RF test mode
5. WSW-23330: Auto Go can't bring up after auto Fw reload
6. WSW-23920: DUT fails to send NA packet in response NS packet during ipv6 NSoffload when host sleep is enabled
7. WSW-23938: Wi-Fi stuck after cmd53 read error=-84
8. WSW-22765: Fixed the issue of WPA2-Enterprise STA test fails
9. WSW-24932: Random Wifi hang Issue with error wakeup card timeout is observed during coex scenario

Change-Id: Ie971ad8c18a6b430535d0c6e8dbc6d6ce3daf87d
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2023-02-03 14:57:17 +00:00
Sherry Sun 038b0cfd14 MA-20988 sync WCS Q1 release patch to Android13.0
Reason: sync WCS Q1 patch code from Branch lf-6.1.1_1.0.0
Test: i.MX8M Nano

mxm_wifiex: update to mxm5x17368 release

Driver Bug Fixes:
-----------------
1. WCSWREL-357: WiFi crash when enable Android Global CFI configuration
2. WSW-23818: DUT setup DFS channel failed
3. WSW-20079: Tx RvR and TP Improvement
4. WSW-23330: Fix P2P-GO start failure post auto recovery
5. WSW-22914: Fixed WiFiHAL can't print hotfix release version

Change-Id: I38366a094f9593a0ac087611dc882c1b03b7140d
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2023-01-06 16:02:55 +00:00
yunjie 61277b67f5 MA-20890 WCS MM5X17366 - Q4-2022 RC2 patch integrate
Reason: integrate WCS MM5X17366p5 wlan driver code
Test: i.MX8M mini

Change-Id: Ib3f9562a0eb4adddf8939a014d85c85feae2b9ab
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2022-11-15 20:54:20 +00:00
yunjie b75d3eed93 MA-20857 WCS MM5X17366 - Q4-2022 RC1 patch integrate
Reason: WiFi driver integrate
Test: on i.MX8MQ with 9098 module

Change-Id: I85fd1d140e529fe055209f1aca24b57f494a1d02
Signed-off-by: yunjie <yunjie.jia@nxp.com>
2022-10-31 18:11:25 +00:00
yunjie ecb4c6f27f MA-20803 WiFi Q4 release merge
Reoson: integrate WiFi code and fix build error
Test: i.MX 8M mini

Change-Id: I88f6deadc6638a99627f31741da0be7167827c76
2022-10-21 10:38:19 +00:00
Sherry Sun 5a38226a47 mxm_wifiex: update to mxm5x17362 release
Driver Bug Fixes:
-----------------
1. WSW-19892: Driver compilation errors on older kernel version
2. WSW-19638: Enable RF Test Mode support for 9098 PCIE and SDIO
3. WCSWREL-370: oob irq request fail on i.MX93 9x9 qsb board
4. WSW-21756: WLAN Driver hang observed during WiFi connect/disconnect
5. WCSWREL-362: merge the L6.0.0 build errors fix patches
6. WSW-22054: STA CSA event is not propagated to cfg80211
7. WSW-21873: STA does not send probes after switching from DFS channel
8. WSW-21530: UDP Tx not able to send ARP when high bandwidth is used
9. WSW-21541: WFA Pre-Cert Channel switch test is failing
10. WSW-21072: AP stops sending CTS-to-Self in mcast Tx after issue mc_aggr_cfg

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2022-10-10 15:32:56 +08:00
Sherry Sun 65ddf89682 mxm_wifiex: fix the build errors with the API changes on next-20220930 kernel tag
b48b89f9c189 ("net: drop the weight argument from netif_napi_add") patch
in upstream kernel change the netif_napi_add API, so corresponding
functions used in wifi driver also need to be changed to avoid build
break. Now this API change is based on the next-20220930 kernel tag.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2022-10-10 15:25:57 +08:00
Sherry Sun d88bd98445 mxm_wifiex: fix the build errors with the API changes on next-20220912 kernel tag
Kernel cfg80211 add link_id parameter to various key operations for
MLO, for more details, please check the following link:
https://lore.kernel.org/all/20220730052643.1959111-4-quic_vjakkam@quicinc.com/

As these API changes on next-20220912 kernel tag, corresponding
functions also need to be changed to avoid build break.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2022-09-26 12:03:35 +08:00
Sherry Sun fb098b07fc mxm_wifiex: fix oob irq request fail on i.MX93 9x9 qsb board
i.MX93 9x9 qsb board connect the out-of-band WoWLAN irq pin(M.2 pin21
SDIO_WAKE) to I2C IO expander pcal6524 instead of i.MX GPIO, pcal6524
IRQ handlers need to be threaded, and the IRQ trigger type depends on
the devicetree setting. Also the IRQF_ONESHOT flag need to be set for
threaded IRQ.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
2022-09-14 18:26:15 +08:00
Sherry Sun a036032a76 mxm_wifiex: update to mxm5x17344.p3 release
Driver Bug Fixes:
-----------------
1. LF-6972: Updated the License to GPL-2.0
2. Incremented the driver version

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2022-08-31 13:08:31 +08:00
Sherry Sun 3bcb60dc2b mxm_wifiex: update to mxm5x17344.p2 release
Driver Bug Fixes:
-----------------
1. WSW-21217: Wifi driver crash at woal_ring_poll_worker during PDn recovery test
2. WSW-21020: Enable host_mlme by default
3. WSW-20532: Resolved CSA IE not present in beacon when injecting chirp type radar
4. WSW-21085: Link measurement bit not set in RRM Cap IE
5. WSW-17940: Kernel crash is seen randomly during STA/P2P testing
6. WSW-19320: Testcases from VtsHalWifiV1_3TargetTest suite are failing
7. WSW-21164: Fix driver crash issue caused by null ring buffer of wifi logger
8. WSW-19335: RSN Extension IE is not included in Assoc req when AP side does not connect via WPA3 R3

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2022-08-31 13:08:26 +08:00
Sherry Sun 9a15e44e49 mxm_wifiex: fix the build errors with the API changes on next-20220719 kernel tag
There are many cfg80211 common api and struct changes on next-20220719
kernel tag, which is based on v5.19-rc7 Linus tree tag with the for-next
branch patches on each kernel IP repo, target for v6.0 kernel version.
So need to change the local wifi driver accordingly to avoid the build
errors.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
2022-08-22 16:10:44 +08:00
Sherry Sun 30f40263eb mwifiex: update SCR.txt file
Remove Package Category from the local SCR file.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2022-08-12 09:28:52 +08:00
Sherry Sun 880a3f5b7b mwifiex: add SCR.txt for mwifiex repo
Add the SCR.txt for mwifiex repo.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
2022-08-10 10:39:39 +08:00