Skip to content

Commit 59f48fe

Browse files
lucacoelhojmberg-intel
authored andcommitted
mac80211: don't stop all queues when flushing
There is no need to stop all queues when we want to flush specific queues, so stop only the queues that will be flushed. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 8d7b70f commit 59f48fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/mac80211/util.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,12 +551,12 @@ void ieee80211_flush_queues(struct ieee80211_local *local,
551551
queues = BIT(local->hw.queues) - 1;
552552
}
553553

554-
ieee80211_stop_queues_by_reason(&local->hw, IEEE80211_MAX_QUEUE_MAP,
554+
ieee80211_stop_queues_by_reason(&local->hw, queues,
555555
IEEE80211_QUEUE_STOP_REASON_FLUSH);
556556

557557
drv_flush(local, sdata, queues, false);
558558

559-
ieee80211_wake_queues_by_reason(&local->hw, IEEE80211_MAX_QUEUE_MAP,
559+
ieee80211_wake_queues_by_reason(&local->hw, queues,
560560
IEEE80211_QUEUE_STOP_REASON_FLUSH);
561561
}
562562

0 commit comments

Comments
 (0)