]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: fix wrong 160/80+80 MHz setting
authorShay Bar <shay.bar@celeno.com>
Mon, 10 Feb 2020 13:07:28 +0000 (15:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:45:12 +0000 (16:45 +0100)
commit159770d4d3bbb6816f4c501bae619001ee29df1a
tree4bc0059acf3b9a4d6bbdfc2b8a58302f9c53b90b
parentd9fe1596f1345d155f936fffaa97bcdca41a6bb8
mac80211: fix wrong 160/80+80 MHz setting

[ Upstream commit 33181ea7f5a62a17fbe55f0f73428ecb5e686be8 ]

Before this patch, STA's would set new width of 160/80+80 MHz based on AP capability only.
This is wrong because STA may not support > 80MHz BW.
Fix is to verify STA has 160/80+80 MHz capability before increasing its width to > 80MHz.

The "support_80_80" and "support_160" setting is based on:
"Table 9-272 — Setting of the Supported Channel Width Set subfield and Extended NSS BW
Support subfield at a STA transmitting the VHT Capabilities Information field"
From "Draft P802.11REVmd_D3.0.pdf"

Signed-off-by: Aviad Brikman <aviad.brikman@celeno.com>
Signed-off-by: Shay Bar <shay.bar@celeno.com>
Link: https://lore.kernel.org/r/20200210130728.23674-1-shay.bar@celeno.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/util.c