Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375499
b: refs/heads/master
c: db17834
h: refs/heads/master
i:
  375497: b32afad
  375495: 1bb9a97
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed May 3, 2013
1 parent 8c0a1b2 commit 2714831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ef69d0394cba8caa9f75d3f2e53429bfb8b3045
refs/heads/master: db178340433f90e09ada35c174dfb2c84c2c71f4
5 changes: 5 additions & 0 deletions trunk/drivers/net/wireless/ath/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2369,6 +2369,9 @@ ath5k_tx_complete_poll_work(struct work_struct *work)
int i;
bool needreset = false;

if (!test_bit(ATH_STAT_STARTED, ah->status))
return;

mutex_lock(&ah->lock);

for (i = 0; i < ARRAY_SIZE(ah->txqs); i++) {
Expand Down Expand Up @@ -2676,6 +2679,7 @@ int ath5k_start(struct ieee80211_hw *hw)
mmiowb();
mutex_unlock(&ah->lock);

set_bit(ATH_STAT_STARTED, ah->status);
ieee80211_queue_delayed_work(ah->hw, &ah->tx_complete_work,
msecs_to_jiffies(ATH5K_TX_COMPLETE_POLL_INT));

Expand Down Expand Up @@ -2737,6 +2741,7 @@ void ath5k_stop(struct ieee80211_hw *hw)

ath5k_stop_tasklets(ah);

clear_bit(ATH_STAT_STARTED, ah->status);
cancel_delayed_work_sync(&ah->tx_complete_work);

if (!ath5k_modparam_no_hw_rfkill_switch)
Expand Down

0 comments on commit 2714831

Please sign in to comment.