wifi: mac80211: clean up HE 6 GHz and EHT chandef parsing
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jan 2024 18:34:37 +0000 (19:34 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 11:58:29 +0000 (12:58 +0100)
commit2d9698dd32d086e47b8bff3df4322cc017c17b55
treefed44b38dfd74693d7ddb8f3a6bd4500a021d09d
parent310c8387c63830bc375827242e0f9fa689f82e21
wifi: mac80211: clean up HE 6 GHz and EHT chandef parsing

In the code we currently check for support 80+80, 160
and 320 channel widths, but really the way this should
be (and is otherwise) handled is that we compute the
highest channel bandwidth given there, and then cut it
down to what we support. This is also needed for wider
bandwidth OFDMA support.

Change the code to remove this limitation and always
parse the highest possible channel width.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240129194108.d06f85082e29.I47e68ed3d97b0a2f4ee61e5d8abfcefc8a5b9c08@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c
net/mac80211/mlme.c
net/mac80211/spectmgmt.c
net/mac80211/util.c