summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-02-11 23:04:54 +0100
committerSeung-Woo Kim <sw0312.kim@samsung.com>2020-03-27 12:57:31 +0900
commitb24be89f3bf7e4721de4deef8e3c40a4e8aba03d (patch)
treecb2309c5bf3358c0324f93967b436532cafe4784 /drivers
parentbfde5555874e6e548ea322451423757cf05d2052 (diff)
downloadlinux-rpi3-b24be89f3bf7e4721de4deef8e3c40a4e8aba03d.tar.gz
linux-rpi3-b24be89f3bf7e4721de4deef8e3c40a4e8aba03d.tar.bz2
linux-rpi3-b24be89f3bf7e4721de4deef8e3c40a4e8aba03d.zip
brcmfmac: support firmware reporting 160 MHz channels
So far 160 MHz channels were treated as 20 MHz ones which was breaking support for 40/80 MHz due to the brcmf_construct_chaninfo() logic and its assumptions. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> [sw0312.kim: backport mainline commit 30519cbe339a to show more 5G channels properly] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I62ca12dfd97d0cd3233840d5b569e768dc4a1672
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index 82ec8f9875ae..1dd7a1f439f9 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -6002,7 +6002,9 @@ static int brcmf_construct_chaninfo(struct brcmf_cfg80211_info *cfg,
/* assuming the chanspecs order is HT20,
* HT40 upper, HT40 lower, and VHT80.
*/
- if (ch.bw == BRCMU_CHAN_BW_80) {
+ if (ch.bw == BRCMU_CHAN_BW_160)
+ channel->flags &= ~IEEE80211_CHAN_NO_160MHZ;
+ else if (ch.bw == BRCMU_CHAN_BW_80) {
channel->flags &= ~IEEE80211_CHAN_NO_80MHZ;
} else if (ch.bw == BRCMU_CHAN_BW_40) {
brcmf_update_bw40_channel_flag(channel, &ch);