]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: disallow band-switch during CSA
authorJohannes Berg <johannes.berg@intel.com>
Sun, 29 Nov 2020 15:30:54 +0000 (17:30 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Dec 2020 11:59:10 +0000 (12:59 +0100)
commit0b79c37a7787c03317c8f63285e49ad08b5f3abe
tree7fba18adb4a7a61431ea97c6805c428ddf78f2be
parent8ce378cf6095def53263d606d4a2beb7924de7ef
mac80211: disallow band-switch during CSA

If the AP advertises a band switch during CSA, we will not have
the right information to continue working with it, since it will
likely (have to) change its capabilities and we don't track any
capability changes at all. Additionally, we store e.g. supported
rates per band, and that information would become invalid.

Since this is a fringe scenario, just disconnect explicitly.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201129172929.0e2327107c06.I461adb07704e056b054a4a7c29b80c95a9f56637@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c