From: Sujith Date: Fri, 9 Oct 2009 04:21:28 +0000 (+0530) Subject: ath9k: Fix TX hang poll routine X-Git-Tag: MMI-PSA29.97-13-9~25754^2~599^2~150 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=332c556633b8c5fb4e890b1783122f2315526590;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: John W. Linville --- 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) if (needreset) { ath_print(ath9k_hw_common(sc->sc_ah), ATH_DBG_RESET, "tx hung, resetting the chip\n"); + ath9k_ps_wakeup(sc); ath_reset(sc, false); + ath9k_ps_restore(sc); } ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work,