mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
f965f1f2cf
When build wifi driver based on next-20230119 Linux code, will observe the following build errors. /mwifiex/mxm_wifiex/wlan_src/mlinux/moal_eth_ioctl.c: In function ‘woal_priv_get_ap’: /mwifiex/mxm_wifiex/wlan_src/mlinux/moal_eth_ioctl.c:5968:39: error: invalid application of ‘sizeof’ to incomplete type ‘char[]’ 5968 | sizeof(mwr->u.ap_addr.sa_data)); | ^ make[2]: *** [scripts/Makefile.build:252: /work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_eth_ioctl.o] Error 1 make[1]: *** [Makefile:2027: /work/mwifiex/mxm_wifiex/wlan_src] Error 2 make[1]: Leaving directory '/work/linux-nxp-rebase' This is caused by kernel patch b5f0de6df6dc("net: dev: Convert sa_data to flexible array in struct sockaddr"), now anything using sizeof(sa->sa_data) must switch to sizeof(sa->sa_data_min). Signed-off-by: Sherry Sun <sherry.sun@nxp.com> |
||
---|---|---|
.. | ||
mlan | ||
mlinux | ||
script | ||
Makefile | ||
README_MLAN |