mwifiex/mlinux
Sherry Sun e4ffd91b62 mxm_wifiex: fix build warnings on L6.12 kernel next tree
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>
2024-10-23 15:50:16 +08:00
..
mlan.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
mlan_decl.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
mlan_ieee.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
mlan_ioctl.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_cfg80211.c mxm_wifiex: fix build warnings on L6.12 kernel next tree 2024-10-23 15:50:16 +08:00
moal_cfg80211.h mxm_wifiex: fix build warnings on L6.12 kernel next tree 2024-10-23 15:50:16 +08:00
moal_cfg80211_util.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_cfg80211_util.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_debug.c mxm_wifiex: update to mxm6x17437.p30 release 2024-09-04 14:59:52 +08:00
moal_eth_ioctl.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_eth_ioctl.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_init.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_ioctl.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_main.c mxm_wifiex: fix build warnings on L6.12 kernel next tree 2024-10-23 15:50:16 +08:00
moal_main.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_pcie.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_pcie.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_priv.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_priv.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_proc.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_sdio.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_sdio_mmc.c mxm_wifiex: fix build error for udelay 2024-10-23 15:48:35 +08:00
moal_shim.c mxm_wifiex: fix build warnings on L6.12 kernel next tree 2024-10-23 15:50:16 +08:00
moal_shim.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_sta_cfg80211.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_sta_cfg80211.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_uap.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_uap.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_uap_cfg80211.c mxm_wifiex: fix build warnings on L6.12 kernel next tree 2024-10-23 15:50:16 +08:00
moal_uap_cfg80211.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_uap_priv.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_uap_priv.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_uap_wext.c Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00
moal_usb.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_usb.h mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_wext.c mxm_wifiex: update to mxm6x18505.p1 release 2024-10-23 15:48:35 +08:00
moal_wext.h Change the folder layout to make it more clear 2024-05-08 14:21:28 +08:00