339-v5.1-0007-brcmfmac-support-firmware-reporting-160-MHz-channels.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  1. From 30519cbe339a45bd11a57ca8ece07f4f6a1cda2e Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Mon, 11 Feb 2019 23:04:54 +0100
  4. Subject: [PATCH] brcmfmac: support firmware reporting 160 MHz channels
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. So far 160 MHz channels were treated as 20 MHz ones which was breaking
  9. support for 40/80 MHz due to the brcmf_construct_chaninfo() logic and
  10. its assumptions.
  11. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  12. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  13. ---
  14. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 +++
  15. 1 file changed, 3 insertions(+)
  16. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  17. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  18. @@ -6004,6 +6004,9 @@ static int brcmf_construct_chaninfo(stru
  19. * HT40 upper, HT40 lower, and VHT80.
  20. */
  21. switch (ch.bw) {
  22. + case BRCMU_CHAN_BW_160:
  23. + channel->flags &= ~IEEE80211_CHAN_NO_160MHZ;
  24. + break;
  25. case BRCMU_CHAN_BW_80:
  26. channel->flags &= ~IEEE80211_CHAN_NO_80MHZ;
  27. break;