diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 9f9ac5b52acb..d0637a65f9a9 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -243,6 +243,18 @@ static struct ath9k_channel *ath_get_curchannel(struct ath_softc *sc, | |||
243 | return channel; | 243 | return channel; |
244 | } | 244 | } |
245 | 245 | ||
246 | static bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode) | ||
247 | { | ||
248 | unsigned long flags; | ||
249 | bool ret; | ||
250 | |||
251 | spin_lock_irqsave(&ah->ah_sc->sc_pm_lock, flags); | ||
252 | ret = ath9k_hw_setpower_nolock(ah, mode); | ||
253 | spin_unlock_irqrestore(&ah->ah_sc->sc_pm_lock, flags); | ||
254 | |||
255 | return ret; | ||
256 | } | ||
257 | |||
246 | void ath9k_ps_wakeup(struct ath_softc *sc) | 258 | void ath9k_ps_wakeup(struct ath_softc *sc) |
247 | { | 259 | { |
248 | unsigned long flags; | 260 | unsigned long flags; |