mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
wifi: mac80211: fix ML reconf reset in disconnect
If disconnecting while ML reconfiguration is in progress, the data isn't freed because the reset call is too late, after the vif already switches to non-MLD. Move the call to fix that. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250308225541.abaea69cde42.I7e6b35731ded94fc2d68a2d4ecf81873712c268e@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
2160998ded
commit
82306ea157
|
|
@ -4152,16 +4152,16 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
|
|||
wiphy_work_cancel(sdata->local->hw.wiphy,
|
||||
&ifmgd->teardown_ttlm_work);
|
||||
|
||||
ieee80211_vif_set_links(sdata, 0, 0);
|
||||
|
||||
ifmgd->mcast_seq_last = IEEE80211_SN_MODULO;
|
||||
|
||||
/* if disconnection happens in the middle of the ML reconfiguration
|
||||
* flow, cfg80211 must called to release the BSS references obtained
|
||||
* when the flow started.
|
||||
*/
|
||||
ieee80211_ml_reconf_reset(sdata);
|
||||
|
||||
ieee80211_vif_set_links(sdata, 0, 0);
|
||||
|
||||
ifmgd->mcast_seq_last = IEEE80211_SN_MODULO;
|
||||
|
||||
ifmgd->epcs.enabled = false;
|
||||
ifmgd->epcs.dialog_token = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user