mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
e4ffd91b62
When build wifi driver based on L6.12 kernel next tree, will observe the following build errors. This is caused by the upstream patches 62c16f219a73 ("wifi: cfg80211: move DFS related members to links[] in wireless_dev") and 81f67d60ebf2 ("wifi: cfg80211: handle DFS per link"). Need to change corresponding API here to avoid the build break. /mwifiex/mlinux/moal_sta_cfg80211.c:435:34: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, u32, int)’ {aka ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, unsigned int, int)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, u32)’ {aka ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, unsigned int)’} [-Werror=incompatible-pointer-types] 435 | .start_radar_detection = woal_cfg80211_start_radar_detection, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /mwifiex/mlinux/moal_sta_cfg80211.c:435:34: note: (near initialization for ‘woal_cfg80211_ops.start_radar_detection’) /mwifiex/mlinux/moal_cfg80211.c: In function ‘woal_cancel_cac’: /mwifiex/mlinux/moal_cfg80211.c:1096:17: error: too few arguments to function ‘cfg80211_cac_event’ 1096 | cfg80211_cac_event(priv->netdev, &priv->phandle->dfs_channel, | ^~~~~~~~~~~~~~~~~~ In file included from /mwifiex/mlinux/moal_main.h:136, from /mwifiex/mlinux/moal_cfg80211.h:26, from /mwifiex/mlinux/moal_cfg80211.c:23: ./include/net/cfg80211.h:8750:6: note: declared here 8750 | void cfg80211_cac_event(struct net_device *netdev, | ^~~~~~~~~~~~~~~~~~ /mwifiex/mlinux/moal_shim.c:3701:60: error: ‘struct wireless_dev’ has no member named ‘cac_start_time’ 3701 | (priv->wdev->cac_start_time + | ^~ /mwifiex/mlinux/moal_shim.c:3704:66: error: ‘struct wireless_dev’ has no member named ‘cac_time_ms’ 3704 | ->cac_time_ms)); | ^~ 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 |