wifi: mac80211: validate assoc response channel config
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jan 2024 18:34:43 +0000 (19:34 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 12:07:37 +0000 (13:07 +0100)
commit6bc574a7cd27ba0c8d77425055a8fd672ec928f2
tree840b17be2c9755420b6046fc57494013a430a3b3
parent761748f001800d925c2ee8b04407e7aee12c3ffb
wifi: mac80211: validate assoc response channel config

Due to the earlier restructuring we now mostly ignore
the channel configuration in the association response,
apart from the HT/VHT checks we had.

Don't do that, but parse it and update, also dropping the
association if the AP changed its mode in the response.

Link: https://msgid.link/20240129194108.b3efa5eae60c.I1b70c9fd56781b22cdfdca55d34d69f7d0733e31@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c