Commit 609c12a2 authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: mac80211: reset negotiated TTLM on disconnect



The negotiated TTLM data must be reset on disconnect, otherwise
it may end up getting reused on another connection. Fix that.

Fixes: 8f500fbc ("wifi: mac80211: process and save negotiated TID to Link mapping request")
Reviewed-by: default avatarMiriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240506211858.04142e8fe01c.Ia144457e086ebd8ddcfa31bdf5ff210b4b351c22@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0d22026f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3692,6 +3692,7 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
	       sizeof(sdata->u.mgd.ttlm_info));
	wiphy_delayed_work_cancel(sdata->local->hw.wiphy, &ifmgd->ttlm_work);

	memset(&sdata->vif.neg_ttlm, 0, sizeof(sdata->vif.neg_ttlm));
	wiphy_delayed_work_cancel(sdata->local->hw.wiphy,
				  &ifmgd->neg_ttlm_timeout_work);