mac80211: brcm: fix warning on ARCH_BCM2835
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 27 Jan 2024 09:25:08 +0000 (10:25 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 27 Jan 2024 09:30:47 +0000 (10:30 +0100)
Completely disable dump_survey code on ARCH_BCM2835 to fix defined but not
used warning.
https://github.com/openwrt/openwrt/commit/512b762ddbb602b744f0e7a443cf4ac7422155c1?w=1#commitcomment-137899352

Fixes: 512b762ddbb6 ("mac80211: brcm: disable dump_survey on Raspberry Pi")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
package/kernel/mac80211/patches/brcm/865-brcmfmac-disable-dump_survey-on-bcm2835.patch

index e4d9270ce8871abab8ef37fe3c85b1790f037257..bb87c69ff3832ec1f452063b03144de16fd51bf5 100644 (file)
@@ -9,7 +9,23 @@ Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
 
 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
-@@ -8361,8 +8361,10 @@ struct brcmf_cfg80211_info *brcmf_cfg802
+@@ -7987,6 +7987,7 @@ static s32 brcmf_translate_country_code(
+       return 0;
+ }
++#if !defined(CONFIG_ARCH_BCM2835)
+ static int
+ brcmf_parse_dump_obss(char *buf, struct brcmf_dump_survey *survey)
+ {
+@@ -8209,6 +8210,7 @@ exit:
+               brcmf_set_mpc(ifp, 1);
+       return err;
+ }
++#endif /* CONFIG_ARCH_BCM2835 */
+ static void brcmf_cfg80211_reg_notifier(struct wiphy *wiphy,
+                                       struct regulatory_request *req)
+@@ -8361,8 +8363,10 @@ struct brcmf_cfg80211_info *brcmf_cfg802
        if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_WOWL_GTK))
                ops->set_rekey_data = brcmf_cfg80211_set_rekey_data;
  #endif