]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: make ieee80211_chan_bw_change() able to use reserved
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 12:32:05 +0000 (14:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 08:21:56 +0000 (10:21 +0200)
commitb27512368591fc959768df1f7dacf2a96b1bd036
treee162b01b77ff1ed5afe95810074c95a13807e46b
parent7d2bad829c449b8cb172d20cb51d62c586fca94d
wifi: mac80211: make ieee80211_chan_bw_change() able to use reserved

Make ieee80211_chan_bw_change() able to use the reserved chanreq
(really the chandef part of it) for the calculations, so it can
be used _without_ applying the changes first. Remove the comment
that indicates this is required, since it no longer is. However,
this capability only gets used later.

Also, this is not ideal, we really should not different so much
between reserved and non-reserved usage, to simplify. That's a
further cleanup later though.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240612143418.1a08cf83b8cb.Ie567bb272eb25ce487651088f13ad041f549651c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c