]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: chan: calculate min_def also for client mode
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 Oct 2024 12:00:57 +0000 (15:00 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Oct 2024 14:43:35 +0000 (16:43 +0200)
commitb23af47921a708e0008698eb373118bb5f20334c
tree8adaa1643741853803581e55b46a74c9fcc1b23b
parent41eba07636af6f95a9421af574a5a2fa9f3888ee
wifi: mac80211: chan: calculate min_def also for client mode

In order to deal with (temporary) bandwidth reductions to/from
the AP such as the upcoming RX OMI changes, modify the min_def
calculation to also not take the chanreq width into account in
client mode. This normally changes nothing as the AP bandwidth
will be the same as the channel request's width. In the RX OMI
changes, however, the code will reduce the bandwidth for only
the AP STA, since the OMI is only to that, and TDLS STAs are
unaffected. Using the min_def for this case simplifies RX OMI
a lot.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241007144851.95a39c4f6f45.I2e7517fb1a7221dc6f60b0c752e4882042b4265d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c