return -EIO;
}
- if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) {
+ if (!ath9k_hw_setpower_nolock(ah, ATH9K_PM_AWAKE)) {
DPRINTF(ah, ATH_DBG_FATAL, "Couldn't wakeup chip\n");
return -EIO;
}
ath9k_hw_ani_disable(ah);
ath9k_hw_rf_free(ah);
- ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP);
+ ath9k_hw_setpower_nolock(ah, ATH9K_PM_FULL_SLEEP);
kfree(ah);
ah = NULL;
}
} else if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_WARM))
return false;
- if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
+ if (!ath9k_hw_setpower_nolock(ah, ATH9K_PM_AWAKE))
return false;
ah->chip_fullsleep = false;
ah->txchainmask = sc->tx_chainmask;
ah->rxchainmask = sc->rx_chainmask;
- if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
+ if (!ath9k_hw_setpower_nolock(ah, ATH9K_PM_AWAKE))
return -EIO;
if (curchan && !ah->chip_fullsleep)
bool ath9k_hw_disable(struct ath_hw *ah)
{
- if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
+ if (!ath9k_hw_setpower_nolock(ah, ATH9K_PM_AWAKE))
return false;
return ath9k_hw_set_reset_reg(ah, ATH9K_RESET_COLD);