Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247521
b: refs/heads/master
c: 2f6fc35
h: refs/heads/master
i:
  247519: bb633c9
v: v3
  • Loading branch information
Rajkumar Manoharan authored and John W. Linville committed May 5, 2011
1 parent ccbc9bf commit 916db60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 890641b2512f491f28e4ef7536dca1ea93dae997
refs/heads/master: 2f6fc351e6e8c1b6a95140e733607e32bc3a4322
6 changes: 5 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2261,6 +2261,7 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
struct ath_softc *sc = hw->priv;
int timeout = 200; /* ms */
int i, j;
bool drain_txq;

mutex_lock(&sc->mutex);
cancel_delayed_work_sync(&sc->tx_complete_work);
Expand All @@ -2286,7 +2287,10 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
}

ath9k_ps_wakeup(sc);
if (!ath_drain_all_txq(sc, false))
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);
ath9k_ps_restore(sc);
ieee80211_wake_queues(hw);
Expand Down

0 comments on commit 916db60

Please sign in to comment.