mac80211: use wiphy_read_of_freq_limits in brcmfmac
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 844-brcmfmac-use-wiphy_read_of_freq_limits.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Subject: [PATCH] brcmfmac: use wiphy_read_of_freq_limits
3 MIME-Version: 1.0
4 Content-Type: text/plain; charset=UTF-8
5 Content-Transfer-Encoding: 8bit
6
7 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 ---
9
10 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
11 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
12 @@ -5974,6 +5974,9 @@ static int brcmf_construct_chaninfo(stru
13 continue;
14 }
15
16 + if (channel->orig_flags & IEEE80211_CHAN_DISABLED)
17 + continue;
18 +
19 /* assuming the chanspecs order is HT20,
20 * HT40 upper, HT40 lower, and VHT80.
21 */
22 @@ -6564,6 +6567,9 @@ static int brcmf_setup_wiphy(struct wiph
23 wiphy->bands[NL80211_BAND_5GHZ] = band;
24 }
25 }
26 +
27 + wiphy_read_of_freq_limits(wiphy);
28 +
29 return 0;
30 }
31