diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath9k/ath9k.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath9k/ath9k.h b/drivers/net/wireless/ath9k/ath9k.h index 91140b7214b1..0b0f82c83ffc 100644 --- a/drivers/net/wireless/ath9k/ath9k.h +++ b/drivers/net/wireless/ath9k/ath9k.h | |||
@@ -670,8 +670,8 @@ static inline void ath_ahb_exit(void) {}; | |||
670 | static inline void ath9k_ps_wakeup(struct ath_softc *sc) | 670 | static inline void ath9k_ps_wakeup(struct ath_softc *sc) |
671 | { | 671 | { |
672 | if (atomic_inc_return(&sc->ps_usecount) == 1) | 672 | if (atomic_inc_return(&sc->ps_usecount) == 1) |
673 | if (sc->sc_ah->ah_power_mode != ATH9K_PM_AWAKE) { | 673 | if (sc->sc_ah->power_mode != ATH9K_PM_AWAKE) { |
674 | sc->sc_ah->ah_restore_mode = sc->sc_ah->ah_power_mode; | 674 | sc->sc_ah->restore_mode = sc->sc_ah->power_mode; |
675 | ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_AWAKE); | 675 | ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_AWAKE); |
676 | } | 676 | } |
677 | } | 677 | } |
@@ -681,6 +681,6 @@ static inline void ath9k_ps_restore(struct ath_softc *sc) | |||
681 | if (atomic_dec_and_test(&sc->ps_usecount)) | 681 | if (atomic_dec_and_test(&sc->ps_usecount)) |
682 | if (sc->hw->conf.flags & IEEE80211_CONF_PS) | 682 | if (sc->hw->conf.flags & IEEE80211_CONF_PS) |
683 | ath9k_hw_setpower(sc->sc_ah, | 683 | ath9k_hw_setpower(sc->sc_ah, |
684 | sc->sc_ah->ah_restore_mode); | 684 | sc->sc_ah->restore_mode); |
685 | } | 685 | } |
686 | #endif /* ATH9K_H */ | 686 | #endif /* ATH9K_H */ |