diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-10-09 00:21:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:47:55 -0400 |
commit | 332c556633b8c5fb4e890b1783122f2315526590 (patch) | |
tree | 19262a569e94c8fe2cee5b05972241ba838a7d6b /drivers/net/wireless/ath/ath9k/xmit.c | |
parent | c0bbd57679efc2350703a1c0f3fc624cbcaba55f (diff) |
ath9k: Fix TX hang poll routine
When TX is hung, the chip is reset. Ensure that
the chip is awake by using the PS wrappers.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index a8620b1d091b..2a4efcbced60 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -2079,7 +2079,9 @@ static void ath_tx_complete_poll_work(struct work_struct *work) | |||
2079 | if (needreset) { | 2079 | if (needreset) { |
2080 | ath_print(ath9k_hw_common(sc->sc_ah), ATH_DBG_RESET, | 2080 | ath_print(ath9k_hw_common(sc->sc_ah), ATH_DBG_RESET, |
2081 | "tx hung, resetting the chip\n"); | 2081 | "tx hung, resetting the chip\n"); |
2082 | ath9k_ps_wakeup(sc); | ||
2082 | ath_reset(sc, false); | 2083 | ath_reset(sc, false); |
2084 | ath9k_ps_restore(sc); | ||
2083 | } | 2085 | } |
2084 | 2086 | ||
2085 | ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, | 2087 | ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, |