wifi: mac80211: obtain AP HT/VHT data for assoc request
authorJohannes Berg <johannes.berg@intel.com>
Wed, 28 Feb 2024 08:40:52 +0000 (09:40 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 4 Mar 2024 13:31:03 +0000 (14:31 +0100)
commit7d8b02592d528b073805af752458a589862b5eb0
tree471b864e310d26c182808f22bdd5d4ead40f54a4
parentbf7bc8c5974b78a09f266be3a5a84ed3865f30a6
wifi: mac80211: obtain AP HT/VHT data for assoc request

In the association request, we make some parameters depend on the
AP's HT/VHT information. This was broken by my code because it no
longer filled that information, making it all zero.

For HT that meant we wouldn't reduce our capabilities to 20 MHz if
needed, and for VHT we lost beamforming capabilities.

Fix this. It seems like it may even have been broken for all but
the assoc link before.

Fixes: 310c8387c638 ("wifi: mac80211: clean up connection process")
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240228094207.7dc812c2060a.Ibd591f9c214b4e166cf7171db3cf63bda8e3c9fd@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c