Update copyright date and correct path description due to folder layout
changes.
Change-Id: I414de89988d2d03d9a07fd1e5ed5fcd96eeab721
Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
Reason:for WCS's request and Marketing's suggestion, move wifi driver to
root path
Tested:on i.MX 8MQ
Change the folder layout to make it more clear
Change-Id: Idf5663adccc1dfe90d5b62e5ee31187bcae37dec
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>