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>
This commit is contained in:
Rafał Miłecki 2019-02-11 23:04:54 +01:00 committed by Kalle Valo
parent f4e183293b
commit 30519cbe33
1 changed files with 3 additions and 0 deletions

View File

@ -6052,6 +6052,9 @@ static int brcmf_construct_chaninfo(struct brcmf_cfg80211_info *cfg,
* HT40 upper, HT40 lower, and VHT80.
*/
switch (ch.bw) {
case BRCMU_CHAN_BW_160:
channel->flags &= ~IEEE80211_CHAN_NO_160MHZ;
break;
case BRCMU_CHAN_BW_80:
channel->flags &= ~IEEE80211_CHAN_NO_80MHZ;
break;