mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2024-11-14 19:15:35 +00:00
ae28818963
When build the mxm17322 wifi release based on the latest kernel(L5.17), will observe the following build warning. Need to use eth_hw_addr_set function instead of writing the address directly to net_device::dev_addr. Make sure we don't cast off const qualifier from dev->dev_addr. /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_uap_cfg80211.c: In function ‘woal_cfg80211_add_mon_if’: /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_uap_cfg80211.c:1485:44: warning: passing argument 2 of ‘moal_memcpy_ext’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1485 | moal_memcpy_ext(priv->phandle, ndev->dev_addr, ndev->perm_addr, | ~~~~^~~~~~~~~~ In file included from /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_main.h:119, from /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_cfg80211.h:26, from /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_uap_cfg80211.c:23: /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_shim.h:82:48: note: expected ‘t_void *’ {aka ‘void *’} but argument is of type ‘const unsigned char *’ 82 | t_void *moal_memcpy_ext(t_void *pmoal, t_void *pdest, const t_void *psrc, | ~~~~~~~~^~~~~ Signed-off-by: Sherry Sun <sherry.sun@nxp.com> |
||
---|---|---|
.. | ||
mlan.h | ||
mlan_decl.h | ||
mlan_ieee.h | ||
mlan_ioctl.h | ||
moal_cfg80211.c | ||
moal_cfg80211.h | ||
moal_cfg80211_util.c | ||
moal_cfg80211_util.h | ||
moal_debug.c | ||
moal_eth_ioctl.c | ||
moal_eth_ioctl.h | ||
moal_init.c | ||
moal_ioctl.c | ||
moal_main.c | ||
moal_main.h | ||
moal_pcie.c | ||
moal_pcie.h | ||
moal_priv.c | ||
moal_priv.h | ||
moal_proc.c | ||
moal_sdio.h | ||
moal_sdio_mmc.c | ||
moal_shim.c | ||
moal_shim.h | ||
moal_sta_cfg80211.c | ||
moal_sta_cfg80211.h | ||
moal_uap.c | ||
moal_uap.h | ||
moal_uap_cfg80211.c | ||
moal_uap_cfg80211.h | ||
moal_uap_priv.c | ||
moal_uap_priv.h | ||
moal_uap_wext.c | ||
moal_usb.c | ||
moal_usb.h | ||
moal_wext.c | ||
moal_wext.h |