mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 12:44:11 +08:00
brcmfmac: fix reporting support for 160 MHz channels
commit d1fe6ad6f6
upstream.
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 <rafal@milecki.pl>
Cc: stable@vger.kernel.org
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bf02eaf57a
commit
a0b9ddf490
@ -6098,7 +6098,8 @@ static int brcmf_construct_chaninfo(struct brcmf_cfg80211_info *cfg,
|
|||||||
* for subsequent chanspecs.
|
* for subsequent chanspecs.
|
||||||
*/
|
*/
|
||||||
channel->flags = IEEE80211_CHAN_NO_HT40 |
|
channel->flags = IEEE80211_CHAN_NO_HT40 |
|
||||||
IEEE80211_CHAN_NO_80MHZ;
|
IEEE80211_CHAN_NO_80MHZ |
|
||||||
|
IEEE80211_CHAN_NO_160MHZ;
|
||||||
ch.bw = BRCMU_CHAN_BW_20;
|
ch.bw = BRCMU_CHAN_BW_20;
|
||||||
cfg->d11inf.encchspec(&ch);
|
cfg->d11inf.encchspec(&ch);
|
||||||
chaninfo = ch.chspec;
|
chaninfo = ch.chspec;
|
||||||
|
Loading…
Reference in New Issue
Block a user