ath9k: restore PS mode, before we put the chip into FULL SLEEP state.
authorGabor Juhos <juhosg@openwrt.org>
Wed, 17 Jun 2009 18:53:21 +0000 (20:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Jun 2009 15:50:23 +0000 (11:50 -0400)
We want to put the chip into FULL SLEEP state, when we are disabling the
radio, but the the current code always change it to AWAKE/NETWORK SLEEP.

Changes-licensed-under: ISC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c

index 9f49a3251d4d4055a921bb32e6bc0f522caaf939..66a6c1f5022a90ccd7267b19c49bc959c481d0c8 100644 (file)
@@ -1196,8 +1196,8 @@ void ath_radio_disable(struct ath_softc *sc)
 
        ath9k_hw_phy_disable(ah);
        ath9k_hw_configpcipowersave(ah, 1);
-       ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP);
        ath9k_ps_restore(sc);
+       ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP);
 }
 
 /*******************/