|
@@ -243,6 +243,18 @@ static struct ath9k_channel *ath_get_curchannel(struct ath_softc *sc,
|
|
|
return channel;
|
|
|
}
|
|
|
|
|
|
+static bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode)
|
|
|
+{
|
|
|
+ unsigned long flags;
|
|
|
+ bool ret;
|
|
|
+
|
|
|
+ spin_lock_irqsave(&ah->ah_sc->sc_pm_lock, flags);
|
|
|
+ ret = ath9k_hw_setpower_nolock(ah, mode);
|
|
|
+ spin_unlock_irqrestore(&ah->ah_sc->sc_pm_lock, flags);
|
|
|
+
|
|
|
+ return ret;
|
|
|
+}
|
|
|
+
|
|
|
void ath9k_ps_wakeup(struct ath_softc *sc)
|
|
|
{
|
|
|
unsigned long flags;
|