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)
commit3660944a37ce73890292571f44f04891834f9044
tree7fba18adb4a7a61431ea97c6805c428ddf78f2be
parent9850742470804b2cc6a6543bd8f5822eeb5fdbc0
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