2
0

941-mwl8k-add-non-DFS-5G-upper-channels.patch 1.6 KB

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