]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: mac80211: fix link activation settings order
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Jun 2023 13:35:59 +0000 (16:35 +0300)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:10 +0000 (17:19 +0200)
commit2605a5ecf87d3d3a6600e0edb48d7814c61f2a8e
tree5aea8346450aa4984494ef34b0f8148ee16d379e
parent0231953945c4d25ccf76041a2fef13158d638c8b
wifi: mac80211: fix link activation settings order

BugLink: https://bugs.launchpad.net/bugs/2033931
[ Upstream commit 01605ad6c3e8608d7e147c9b75d67eb8a3d27d88 ]

In the normal MLME code we always call
ieee80211_mgd_set_link_qos_params() before
ieee80211_link_info_change_notify() and some drivers,
notably iwlwifi, rely on that as they don't do anything
(but store the data) in their conf_tx.

Fix the order here to be the same as in the normal code
paths, so this isn't broken.

Fixes: 3d9011029227 ("wifi: mac80211: implement link switching")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230608163202.a2a86bba2f80.Iac97e04827966d22161e63bb6e201b4061e9651b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/mac80211/link.c