wifi: mac80211: recalc min chandef for new STA links
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Jun 2023 09:11:20 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:07 +0000 (16:21 +0200)
commitda79a0bc36c595dfb95d81ae36d1cd91b4eb55b2
tree1820c9e58c8ae733c21bcfde26fe88b64671e9e6
parent272240f20df3d575bfde9169b56bccec80b943f2
wifi: mac80211: recalc min chandef for new STA links

[ Upstream commit ba7af2654e3b7b810c750b3c6106f6f20b81cc88 ]

When adding a new link to a station, this needs to cause a
recalculation of the minimum chandef since otherwise we can
have a higher bandwidth station connected on that link than
the link is operating at. Do the appropriate recalc.

Fixes: cb71f1d136a6 ("wifi: mac80211: add sta link addition/removal")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230604120651.377adf3c789a.I91bf28f399e16e6ac1f83bacd1029a698b4e6685@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/sta_info.c