wifi: mac80211: optionally pass chandef to ieee80211_sta_cap_rx_bw()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 12:32:03 +0000 (14:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 08:21:52 +0000 (10:21 +0200)
commit25af8ff51d7e027fbdf8ed84e349427311a6da4d
tree83f1d4cd875c1699ef3b59daf75fb672f4766aa5
parentb777bdfc9be8a61ecf3c07962add3b5fc1279e98
wifi: mac80211: optionally pass chandef to ieee80211_sta_cap_rx_bw()

We'll need this function to take a new chandef in
(some) channel switching cases, so prepare for that
by allowing that to be passed and using it if so.
Clean up the code a little bit while at it.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240612143418.772313f08b6a.If9708249e5870671e745d4c2b02e03b25092bea3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/vht.c