Commit d2f5b3a6 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Handle ASPM properly for RFKILL

Radio enable/disable have to handle ASPM state properly.
This patch fixes it.

Signed-off-by: default avatarSujith <>
Signed-off-by: default avatarJohn W. Linville <>
parent a89bff9a
...@@ -1089,10 +1089,10 @@ void ath_radio_enable(struct ath_softc *sc) ...@@ -1089,10 +1089,10 @@ void ath_radio_enable(struct ath_softc *sc)
int r; int r;
ath9k_ps_wakeup(sc); ath9k_ps_wakeup(sc);
spin_lock_bh(&sc->sc_resetlock); ath9k_hw_configpcipowersave(ah, 0);
r = ath9k_hw_reset(ah, ah->curchan, false); r = ath9k_hw_reset(ah, ah->curchan, false);
if (r) { if (r) {
"Unable to reset channel %u (%uMhz) ", "Unable to reset channel %u (%uMhz) ",
...@@ -1154,6 +1154,7 @@ void ath_radio_disable(struct ath_softc *sc) ...@@ -1154,6 +1154,7 @@ void ath_radio_disable(struct ath_softc *sc)
spin_unlock_bh(&sc->sc_resetlock); spin_unlock_bh(&sc->sc_resetlock);
ath9k_hw_phy_disable(ah); ath9k_hw_phy_disable(ah);
ath9k_hw_configpcipowersave(ah, 1);
ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP); ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP);
ath9k_ps_restore(sc); ath9k_ps_restore(sc);
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment