Return-path: Received: from mail.atheros.com ([12.36.123.2]:13798 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbZJIEUi (ORCPT ); Fri, 9 Oct 2009 00:20:38 -0400 Received: from mail.atheros.com ([10.10.20.107]) by sidewinder.atheros.com for ; Thu, 08 Oct 2009 21:20:42 -0700 From: Sujith MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <19150.47688.575023.623047@gargle.gargle.HOWL> Date: Fri, 9 Oct 2009 09:51:28 +0530 To: CC: Subject: [PATCH] ath9k: Fix TX hang poll routine Sender: linux-wireless-owner@vger.kernel.org List-ID: When TX is hung, the chip is reset. Ensure that the chip is awake by using the PS wrappers. Signed-off-by: Sujith --- 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 a8620b1..2a4efcb 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, -- 1.6.4.4