mwifiex/mxm_wifiex/wlan_src/mlinux
Sherry Sun ae28818963 mxm_wifiex: fix the net_device::dev_addr build warning
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>
2022-04-24 21:44:04 +08:00
..
mlan.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
mlan_decl.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
mlan_ieee.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
mlan_ioctl.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_cfg80211.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_cfg80211.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_cfg80211_util.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_cfg80211_util.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_debug.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_eth_ioctl.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_eth_ioctl.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_init.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_ioctl.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_main.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_main.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_pcie.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_pcie.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_priv.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_priv.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_proc.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_sdio.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_sdio_mmc.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_shim.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_shim.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_sta_cfg80211.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_sta_cfg80211.h mxm_wifiex: update to mxm5x17241 release 2021-04-26 14:11:28 +08:00
moal_uap.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_uap.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_uap_cfg80211.c mxm_wifiex: fix the net_device::dev_addr build warning 2022-04-24 21:44:04 +08:00
moal_uap_cfg80211.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_uap_priv.c mxm_wifiex: update to mxm5x17283 release 2021-10-14 10:50:37 +08:00
moal_uap_priv.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_uap_wext.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_usb.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_usb.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_wext.c mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00
moal_wext.h mxm_wifiex: update to mxm5x17322 release 2022-04-24 21:43:35 +08:00