]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ath9k: Fix TX hang poll routine
authorSujith <Sujith.Manoharan@atheros.com>
Wed, 16 Dec 2009 16:51:41 +0000 (11:51 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:05:18 +0000 (14:05 -0800)
This is a backport of upstream commit: 332c556633b8c5fb4e890b1783122f2315526590

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: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/xmit.c

index 42551a48c8acd92af474073ba43c20b0cd2f329c..972e775b362365581d0479940795788af996123b 100644 (file)
@@ -2065,7 +2065,9 @@ static void ath_tx_complete_poll_work(struct work_struct *work)
 
        if (needreset) {
                DPRINTF(sc, 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,