aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/gpio.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/gpio.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index afbf5400a52a..fd0f84ebdb51 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -84,9 +84,14 @@ void ath_init_leds(struct ath_softc *sc)
84static bool ath_is_rfkill_set(struct ath_softc *sc) 84static bool ath_is_rfkill_set(struct ath_softc *sc)
85{ 85{
86 struct ath_hw *ah = sc->sc_ah; 86 struct ath_hw *ah = sc->sc_ah;
87 bool is_blocked;
87 88
88 return ath9k_hw_gpio_get(ah, ah->rfkill_gpio) == 89 ath9k_ps_wakeup(sc);
90 is_blocked = ath9k_hw_gpio_get(ah, ah->rfkill_gpio) ==
89 ah->rfkill_polarity; 91 ah->rfkill_polarity;
92 ath9k_ps_restore(sc);
93
94 return is_blocked;
90} 95}
91 96
92void ath9k_rfkill_poll_state(struct ieee80211_hw *hw) 97void ath9k_rfkill_poll_state(struct ieee80211_hw *hw)