]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: correcty limit wider BW TDLS STAs
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 12:35:57 +0000 (14:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 08:22:06 +0000 (10:22 +0200)
commit0b2d9d9aec2be212a28b7d14b5462c56d9adc3a3
tree73085d3d132ee2928d2f8d7426d245b95f5c2894
parentd42fcaece03654a4b21d2da88d68ed913e0b6c46
wifi: mac80211: correcty limit wider BW TDLS STAs

When updating a channel context, the code can apply wider
bandwidth TDLS STA channel definitions to each and every
channel context used by the device, an approach that will
surely lead to problems if there is ever more than one.

Restrict the wider BW TDLS STA consideration to only TDLS
STAs that are actually related to links using the channel
context being updated.

Fixes: 0fabfaafec3a ("mac80211: upgrade BW of TDLS peers when possible")
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240612143707.1ad989acecde.I5c75c94d95c3f4ea84f8ff4253189f4b13bad5c3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c