Skip to content

Commit d1fe6ad

Browse files
Rafał MiłeckiKalle Valo
authored andcommitted
brcmfmac: fix reporting support for 160 MHz channels
Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless firmware reports it for a given channel later. This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface. Signed-off-by: Rafał Miłecki <[email protected]> Cc: [email protected] Signed-off-by: Kalle Valo <[email protected]>
1 parent d987f78 commit d1fe6ad

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/wireless/broadcom/brcm80211/brcmfmac

1 file changed

+2
-1
lines changed

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6005,7 +6005,8 @@ static int brcmf_construct_chaninfo(struct brcmf_cfg80211_info *cfg,
60056005
* for subsequent chanspecs.
60066006
*/
60076007
channel->flags = IEEE80211_CHAN_NO_HT40 |
6008-
IEEE80211_CHAN_NO_80MHZ;
6008+
IEEE80211_CHAN_NO_80MHZ |
6009+
IEEE80211_CHAN_NO_160MHZ;
60096010
ch.bw = BRCMU_CHAN_BW_20;
60106011
cfg->d11inf.encchspec(&ch);
60116012
chaninfo = ch.chspec;

0 commit comments

Comments
 (0)