diff options
author | Vivek Natarajan <vnatarajan@atheros.com> | 2010-06-23 02:38:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-14 13:52:44 -0400 |
commit | 982723df56ceb6fb0f1e821e4898e58069a1f163 (patch) | |
tree | 45dc92b0810415743da71269a150dfe4ad1dff62 /drivers/net/wireless/ath/ath9k | |
parent | 815868e7b5c207ba42d5b317ccc51f8112732268 (diff) |
ath9k: Fix the LED behaviour in idle unassociated state.
LED should be ON when the radio is put into FULL SLEEP mode during the idle
unassociated state.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 4c0831ff6e92..56d4a93cd8e5 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -857,9 +857,14 @@ void ath_radio_disable(struct ath_softc *sc, struct ieee80211_hw *hw) | |||
857 | ath9k_ps_wakeup(sc); | 857 | ath9k_ps_wakeup(sc); |
858 | ieee80211_stop_queues(hw); | 858 | ieee80211_stop_queues(hw); |
859 | 859 | ||
860 | /* Disable LED */ | 860 | /* |
861 | ath9k_hw_set_gpio(ah, ah->led_pin, 1); | 861 | * Keep the LED on when the radio is disabled |
862 | ath9k_hw_cfg_gpio_input(ah, ah->led_pin); | 862 | * during idle unassociated state. |
863 | */ | ||
864 | if (!sc->ps_idle) { | ||
865 | ath9k_hw_set_gpio(ah, ah->led_pin, 1); | ||
866 | ath9k_hw_cfg_gpio_input(ah, ah->led_pin); | ||
867 | } | ||
863 | 868 | ||
864 | /* Disable interrupts */ | 869 | /* Disable interrupts */ |
865 | ath9k_hw_set_interrupts(ah, 0); | 870 | ath9k_hw_set_interrupts(ah, 0); |