mac80211: mwl8k: Expand non-DFS 5G channels
[openwrt/staging/wigyori.git] / package / kernel / mac80211 / patches / 941-mwl8k-add-non-DFS-5G-upper-channels.patch
1 From 4628257bf3006c18e0037459922624f02a138aed Mon Sep 17 00:00:00 2001
2 From: Weixiao Zhang <waveletboy@gmail.com>
3 Date: Thu, 16 Nov 2017 01:59:55 -0600
4 Subject: [PATCH] mwl8k: Expand non-DFS 5G channels
5
6 Add non-DFS 5G upper channels (149-165) besides existed 4 lower channels
7 (36, 40, 44, 48).
8
9 Signed-off-by: Weixiao Zhang <waveletboy@gmail.com>
10 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
11 ---
12 drivers/net/wireless/marvell/mwl8k.c | 7 ++++++-
13 1 file changed, 6 insertions(+), 1 deletion(-)
14
15 --- a/drivers/net/wireless/marvell/mwl8k.c
16 +++ b/drivers/net/wireless/marvell/mwl8k.c
17 @@ -199,7 +199,7 @@ struct mwl8k_priv {
18 struct ieee80211_channel channels_24[14];
19 struct ieee80211_rate rates_24[13];
20 struct ieee80211_supported_band band_50;
21 - struct ieee80211_channel channels_50[4];
22 + struct ieee80211_channel channels_50[9];
23 struct ieee80211_rate rates_50[8];
24 u32 ap_macids_supported;
25 u32 sta_macids_supported;
26 @@ -383,6 +383,11 @@ static const struct ieee80211_channel mw
27 { .band = NL80211_BAND_5GHZ, .center_freq = 5200, .hw_value = 40, },
28 { .band = NL80211_BAND_5GHZ, .center_freq = 5220, .hw_value = 44, },
29 { .band = NL80211_BAND_5GHZ, .center_freq = 5240, .hw_value = 48, },
30 + { .band = NL80211_BAND_5GHZ, .center_freq = 5745, .hw_value = 149, },
31 + { .band = NL80211_BAND_5GHZ, .center_freq = 5765, .hw_value = 153, },
32 + { .band = NL80211_BAND_5GHZ, .center_freq = 5785, .hw_value = 157, },
33 + { .band = NL80211_BAND_5GHZ, .center_freq = 5805, .hw_value = 161, },
34 + { .band = NL80211_BAND_5GHZ, .center_freq = 5825, .hw_value = 165, },
35 };
36
37 static const struct ieee80211_rate mwl8k_rates_50[] = {