Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247177
b: refs/heads/master
c: 5151390
h: refs/heads/master
i:
  247175: 4604128
v: v3
  • Loading branch information
Senthil Balasubramanian authored and John W. Linville committed Apr 25, 2011
1 parent 8b0b3d1 commit 82b4e6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: d1c038d620c45fbbc65bcadf813a86bca686dd31
refs/heads/master: 515139066928da040d1482f201ef1b769bc29aa0
6 changes: 2 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2211,9 +2211,7 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
int timeout = 200; /* ms */
int i, j;

ath9k_ps_wakeup(sc);
mutex_lock(&sc->mutex);

cancel_delayed_work_sync(&sc->tx_complete_work);

if (drop)
Expand All @@ -2236,15 +2234,15 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
goto out;
}

ath9k_ps_wakeup(sc);
if (!ath_drain_all_txq(sc, false))
ath_reset(sc, false);

ath9k_ps_restore(sc);
ieee80211_wake_queues(hw);

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

static bool ath9k_tx_frames_pending(struct ieee80211_hw *hw)
Expand Down

0 comments on commit 82b4e6b

Please sign in to comment.