Skip to content

Commit

Permalink
mac80211: fix bugs in queue handling functions
Browse files Browse the repository at this point in the history
Commit 55c308c1315bc7267dbb88011c208fd743cdce31
("mac80211: QoS related cleanups") introduced another bug,
the queue handling functions that operate on all queues now
only operated on the first queues, not the A-MPDU queues as
expected. This patch fixes this.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 22, 2008
1 parent 189a2b5 commit c468047
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void ieee80211_start_queues(struct ieee80211_hw *hw)
struct ieee80211_local *local = hw_to_local(hw);
int i;

for (i = 0; i < local->hw.queues; i++)
for (i = 0; i < hw->queues + hw->ampdu_queues; i++)
clear_bit(IEEE80211_LINK_STATE_XOFF, &local->state[i]);
if (!ieee80211_qdisc_installed(local->mdev))
netif_start_queue(local->mdev);
Expand All @@ -366,7 +366,7 @@ void ieee80211_stop_queues(struct ieee80211_hw *hw)
{
int i;

for (i = 0; i < hw->queues; i++)
for (i = 0; i < hw->queues + hw->ampdu_queues; i++)
ieee80211_stop_queue(hw, i);
}
EXPORT_SYMBOL(ieee80211_stop_queues);
Expand All @@ -375,7 +375,7 @@ void ieee80211_wake_queues(struct ieee80211_hw *hw)
{
int i;

for (i = 0; i < hw->queues; i++)
for (i = 0; i < hw->queues + hw->ampdu_queues; i++)
ieee80211_wake_queue(hw, i);
}
EXPORT_SYMBOL(ieee80211_wake_queues);
Expand Down

0 comments on commit c468047

Please sign in to comment.