Skip to content

Commit

Permalink
ath9k: restore PS mode, before we put the chip into FULL SLEEP state.
Browse files Browse the repository at this point in the history
We want to put the chip into FULL SLEEP state, when we are disabling the
radio, but the the current code always change it to AWAKE/NETWORK SLEEP.

Changes-licensed-under: ISC
Signed-off-by: Gabor Juhos <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
juhosg authored and linvjw committed Jun 19, 2009
1 parent 58f5fff commit 38ab422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,8 +1196,8 @@ void ath_radio_disable(struct ath_softc *sc)

ath9k_hw_phy_disable(ah);
ath9k_hw_configpcipowersave(ah, 1);
ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP);
ath9k_ps_restore(sc);
ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP);
}

/*******************/
Expand Down

0 comments on commit 38ab422

Please sign in to comment.