diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/wow.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/wow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/wow.c b/drivers/net/wireless/ath/ath9k/wow.c index 1b3230fa3651..2879887f5691 100644 --- a/drivers/net/wireless/ath/ath9k/wow.c +++ b/drivers/net/wireless/ath/ath9k/wow.c | |||
@@ -198,7 +198,7 @@ int ath9k_suspend(struct ieee80211_hw *hw, | |||
198 | ath_cancel_work(sc); | 198 | ath_cancel_work(sc); |
199 | ath_stop_ani(sc); | 199 | ath_stop_ani(sc); |
200 | 200 | ||
201 | if (test_bit(SC_OP_INVALID, &sc->sc_flags)) { | 201 | if (test_bit(ATH_OP_INVALID, &common->op_flags)) { |
202 | ath_dbg(common, ANY, "Device not present\n"); | 202 | ath_dbg(common, ANY, "Device not present\n"); |
203 | ret = -EINVAL; | 203 | ret = -EINVAL; |
204 | goto fail_wow; | 204 | goto fail_wow; |
@@ -224,7 +224,7 @@ int ath9k_suspend(struct ieee80211_hw *hw, | |||
224 | * STA. | 224 | * STA. |
225 | */ | 225 | */ |
226 | 226 | ||
227 | if (!test_bit(SC_OP_PRIM_STA_VIF, &sc->sc_flags)) { | 227 | if (!test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags)) { |
228 | ath_dbg(common, WOW, "None of the STA vifs are associated\n"); | 228 | ath_dbg(common, WOW, "None of the STA vifs are associated\n"); |
229 | ret = 1; | 229 | ret = 1; |
230 | goto fail_wow; | 230 | goto fail_wow; |