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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index 133764069246..fb4f17a5183d 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -201,8 +201,7 @@ static bool ath_is_rfkill_set(struct ath_softc *sc)
201 201
202void ath9k_rfkill_poll_state(struct ieee80211_hw *hw) 202void ath9k_rfkill_poll_state(struct ieee80211_hw *hw)
203{ 203{
204 struct ath_wiphy *aphy = hw->priv; 204 struct ath_softc *sc = hw->priv;
205 struct ath_softc *sc = aphy->sc;
206 bool blocked = !!ath_is_rfkill_set(sc); 205 bool blocked = !!ath_is_rfkill_set(sc);
207 206
208 wiphy_rfkill_set_hw_state(hw->wiphy, blocked); 207 wiphy_rfkill_set_hw_state(hw->wiphy, blocked);