mac80211: avoid using ext NSS high BW if not supported
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 May 2020 19:34:35 +0000 (21:34 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Sun, 31 May 2020 09:26:50 +0000 (11:26 +0200)
commit2a333a0db24e37daa2e4eb9a542c07deda44ca5a
tree9a7540d90e9ab588e4574b6acf78083a6efdc029
parent607ca9ea3462719e256b60b24286f984e0d48c9b
mac80211: avoid using ext NSS high BW if not supported

If the AP advertises inconsistent data, namely it has CCFS1 or CCFS2,
but doesn't advertise support for 160/80+80 bandwidth or "Extended NSS
BW Support", then we cannot use any MCSes in the the higher bandwidth.
Thus, avoid connecting with higher bandwidth since it's less efficient
that way.

Link: https://lore.kernel.org/r/20200528213443.0e55d40c3ccc.I6fd0b4708ebd087e5e46466c3e91f6efbcbef668@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c
net/mac80211/mlme.c
net/mac80211/scan.c
net/mac80211/spectmgmt.c
net/mac80211/util.c