dbe45642f33d4fa8714cafc847548c3fd20e33da
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 353-0002-brcmfmac-don-t-preset-all-channels-as-disabled.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Sat, 7 Jan 2017 21:36:04 +0100
3 Subject: [PATCH] brcmfmac: don't preset all channels as disabled
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 During init we take care of regulatory stuff by disabling all
9 unavailable channels (see brcmf_construct_chaninfo) so this predisabling
10 them is not really required (and this patch won't change any behavior).
11 It will on the other hand allow more detailed runtime control over
12 channels which is the main reason for this change.
13
14 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
15 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
16 ---
17
18 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
19 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
20 @@ -147,7 +147,6 @@ static struct ieee80211_rate __wl_rates[
21 .band = NL80211_BAND_2GHZ, \
22 .center_freq = (_freq), \
23 .hw_value = (_channel), \
24 - .flags = IEEE80211_CHAN_DISABLED, \
25 .max_antenna_gain = 0, \
26 .max_power = 30, \
27 }
28 @@ -156,7 +155,6 @@ static struct ieee80211_rate __wl_rates[
29 .band = NL80211_BAND_5GHZ, \
30 .center_freq = 5000 + (5 * (_channel)), \
31 .hw_value = (_channel), \
32 - .flags = IEEE80211_CHAN_DISABLED, \
33 .max_antenna_gain = 0, \
34 .max_power = 30, \
35 }