mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
wifi: mac80211: fix link activation settings order
[ Upstream commit01605ad6c3] 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:3d90110292("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
07f9cc229b
commit
49f3a79f03
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* MLO link handling
|
||||
*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*/
|
||||
#include <linux/slab.h>
|
||||
#include <linux/kernel.h>
|
||||
@@ -387,6 +387,7 @@ static int _ieee80211_set_active_links(struct ieee80211_sub_if_data *sdata,
|
||||
IEEE80211_CHANCTX_SHARED);
|
||||
WARN_ON_ONCE(ret);
|
||||
|
||||
ieee80211_mgd_set_link_qos_params(link);
|
||||
ieee80211_link_info_change_notify(sdata, link,
|
||||
BSS_CHANGED_ERP_CTS_PROT |
|
||||
BSS_CHANGED_ERP_PREAMBLE |
|
||||
@@ -401,7 +402,6 @@ static int _ieee80211_set_active_links(struct ieee80211_sub_if_data *sdata,
|
||||
BSS_CHANGED_TWT |
|
||||
BSS_CHANGED_HE_OBSS_PD |
|
||||
BSS_CHANGED_HE_BSS_COLOR);
|
||||
ieee80211_mgd_set_link_qos_params(link);
|
||||
}
|
||||
|
||||
old_active = sdata->vif.active_links;
|
||||
|
||||
Reference in New Issue
Block a user