aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2015-01-30 08:35:23 -0500
committerKalle Valo <kvalo@codeaurora.org>2015-02-03 08:30:58 -0500
commit410b4e27992b7bc3ed8064dc9383eb66c1fee04d (patch)
tree83f830a825f6f99e009741f35491dcebb15d61bf /drivers/net/wireless
parent13084c2d18bfee72594ba3a969dfdd972544e644 (diff)
ath9k: Remove redundant device_can_wakeup() check
WOW capability is registered with mac80211 only when the device has the ability to wakeup, so there is no need to check in the suspend() routine. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/wow.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/wow.c b/drivers/net/wireless/ath/ath9k/wow.c
index 1d5cd88783bd..272c05c5c24e 100644
--- a/drivers/net/wireless/ath/ath9k/wow.c
+++ b/drivers/net/wireless/ath/ath9k/wow.c
@@ -212,12 +212,6 @@ int ath9k_suspend(struct ieee80211_hw *hw,
212 ath_cancel_work(sc); 212 ath_cancel_work(sc);
213 ath_stop_ani(sc); 213 ath_stop_ani(sc);
214 214
215 if (!device_can_wakeup(sc->dev)) {
216 ath_dbg(common, WOW, "device_can_wakeup failed, WoW is not enabled\n");
217 ret = 1;
218 goto fail_wow;
219 }
220
221 /* 215 /*
222 * none of the sta vifs are associated 216 * none of the sta vifs are associated
223 * and we are not currently handling multivif 217 * and we are not currently handling multivif