1 --- a/drivers/net/wireless/ath/ath9k/xmit.c
2 +++ b/drivers/net/wireless/ath/ath9k/xmit.c
3 @@ -2111,9 +2111,7 @@ static void ath_tx_complete_poll_work(st
5 ath_dbg(ath9k_hw_common(sc->sc_ah), ATH_DBG_RESET,
6 "tx hung, resetting the chip\n");
9 - ath9k_ps_restore(sc);
12 ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work,
13 --- a/drivers/net/wireless/ath/ath9k/main.c
14 +++ b/drivers/net/wireless/ath/ath9k/main.c
15 @@ -592,19 +592,16 @@ void ath9k_tasklet(unsigned long data)
16 struct ath_softc *sc = (struct ath_softc *)data;
17 struct ath_hw *ah = sc->sc_ah;
18 struct ath_common *common = ath9k_hw_common(ah);
20 u32 status = sc->intrstatus;
23 - ath9k_ps_wakeup(sc);
25 if (status & ATH9K_INT_FATAL) {
27 - ath9k_ps_restore(sc);
31 spin_lock(&sc->sc_pcu_lock);
32 + ath9k_ps_wakeup(sc);
35 * Only run the baseband hang check if beacons stop working in AP or
36 @@ -980,6 +977,7 @@ int ath_reset(struct ath_softc *sc, bool
38 del_timer_sync(&common->ani.timer);
40 + ath9k_ps_wakeup(sc);
41 spin_lock_bh(&sc->sc_pcu_lock);
43 ieee80211_stop_queues(hw);
44 @@ -1026,6 +1024,7 @@ int ath_reset(struct ath_softc *sc, bool
47 ath_start_ani(common);
48 + ath9k_ps_restore(sc);
52 @@ -1748,7 +1747,9 @@ static int ath9k_config(struct ieee80211
54 if (changed & IEEE80211_CONF_CHANGE_POWER) {
55 sc->config.txpowlimit = 2 * conf->power_level;
56 + ath9k_ps_wakeup(sc);
58 + ath9k_ps_restore(sc);