Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278629
b: refs/heads/master
c: 9df0d6a
h: refs/heads/master
i:
  278627: 2a8230d
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Dec 7, 2011
1 parent e8418c5 commit e1b6613
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 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: c0c1174144dd619456be5930d733028a055ef425
refs/heads/master: 9df0d6a20a4e6d15684cc8f2e3f0155be0801592
24 changes: 11 additions & 13 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2275,9 +2275,6 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
return;
}

if (drop)
timeout = 1;

for (j = 0; j < timeout; j++) {
bool npend = false;

Expand All @@ -2295,21 +2292,22 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
}

if (!npend)
goto out;
break;
}

ath9k_ps_wakeup(sc);
spin_lock_bh(&sc->sc_pcu_lock);
drain_txq = ath_drain_all_txq(sc, false);
spin_unlock_bh(&sc->sc_pcu_lock);
if (drop) {
ath9k_ps_wakeup(sc);
spin_lock_bh(&sc->sc_pcu_lock);
drain_txq = ath_drain_all_txq(sc, false);
spin_unlock_bh(&sc->sc_pcu_lock);

if (!drain_txq)
ath_reset(sc, false);
if (!drain_txq)
ath_reset(sc, false);

ath9k_ps_restore(sc);
ieee80211_wake_queues(hw);
ath9k_ps_restore(sc);
ieee80211_wake_queues(hw);
}

out:
ieee80211_queue_delayed_work(hw, &sc->tx_complete_work, 0);
mutex_unlock(&sc->mutex);
}
Expand Down

0 comments on commit e1b6613

Please sign in to comment.