Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315215
b: refs/heads/master
c: a6f38ac
h: refs/heads/master
i:
  315213: af0b07d
  315211: e911a23
  315207: 467b994
  315199: 93800e7
v: v3
  • Loading branch information
Johannes Berg committed Jul 6, 2012
1 parent acf5d4e commit 2d62f16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c62094889f7bb0b3343d5404c9d139d2fb1712bb
refs/heads/master: a6f38ac3cc853189705006cc1e0f17ce8467a1df
12 changes: 10 additions & 2 deletions trunk/net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ EXPORT_SYMBOL(ieee80211_ctstoself_duration);
void ieee80211_propagate_queue_wake(struct ieee80211_local *local, int queue)
{
struct ieee80211_sub_if_data *sdata;
int n_acs = IEEE80211_NUM_ACS;

if (local->hw.queues < IEEE80211_NUM_ACS)
n_acs = 1;

list_for_each_entry_rcu(sdata, &local->interfaces, list) {
int ac;
Expand All @@ -279,7 +283,7 @@ void ieee80211_propagate_queue_wake(struct ieee80211_local *local, int queue)
local->queue_stop_reasons[sdata->vif.cab_queue] != 0)
continue;

for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
for (ac = 0; ac < n_acs; ac++) {
int ac_queue = sdata->vif.hw_queue[ac];

if (ac_queue == queue ||
Expand Down Expand Up @@ -341,6 +345,7 @@ static void __ieee80211_stop_queue(struct ieee80211_hw *hw, int queue,
{
struct ieee80211_local *local = hw_to_local(hw);
struct ieee80211_sub_if_data *sdata;
int n_acs = IEEE80211_NUM_ACS;

trace_stop_queue(local, queue, reason);

Expand All @@ -352,11 +357,14 @@ static void __ieee80211_stop_queue(struct ieee80211_hw *hw, int queue,

__set_bit(reason, &local->queue_stop_reasons[queue]);

if (local->hw.queues < IEEE80211_NUM_ACS)
n_acs = 1;

rcu_read_lock();
list_for_each_entry_rcu(sdata, &local->interfaces, list) {
int ac;

for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
for (ac = 0; ac < n_acs; ac++) {
if (sdata->vif.hw_queue[ac] == queue ||
sdata->vif.cab_queue == queue)
netif_stop_subqueue(sdata->dev, ac);
Expand Down

0 comments on commit 2d62f16

Please sign in to comment.