Commit 5b999006 authored by Alexander Wetzel's avatar Alexander Wetzel Committed by Johannes Berg
Browse files

wifi: mac80211: Cleanup sta TXQs on flush



Drop the sta TXQs on flush when the drivers is not supporting
flush.

ieee80211_set_disassoc() tries to clean up everything for the sta.
But it ignored queued frames in the sta TX queues when the driver
isn't supporting the flush driver ops.

Signed-off-by: default avatarAlexander Wetzel <Alexander@wetzel-home.de>
Link: https://patch.msgid.link/20250204123129.9162-1-Alexander@wetzel-home.de


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 49f27f29
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@ void __ieee80211_flush_queues(struct ieee80211_local *local,
			      struct ieee80211_sub_if_data *sdata,
			      unsigned int queues, bool drop)
{
	if (!local->ops->flush)
	if (!local->ops->flush && !drop)
		return;

	/*
@@ -714,6 +714,7 @@ void __ieee80211_flush_queues(struct ieee80211_local *local,
		}
	}

	if (local->ops->flush)
		drv_flush(local, sdata, queues, drop);

	ieee80211_wake_queues_by_reason(&local->hw, queues,