Commit 410b4e27 authored by Sujith Manoharan's avatar Sujith Manoharan Committed by Kalle Valo

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: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 13084c2d
...@@ -212,12 +212,6 @@ int ath9k_suspend(struct ieee80211_hw *hw, ...@@ -212,12 +212,6 @@ int ath9k_suspend(struct ieee80211_hw *hw,
ath_cancel_work(sc); ath_cancel_work(sc);
ath_stop_ani(sc); ath_stop_ani(sc);
if (!device_can_wakeup(sc->dev)) {
ath_dbg(common, WOW, "device_can_wakeup failed, WoW is not enabled\n");
ret = 1;
goto fail_wow;
}
/* /*
* none of the sta vifs are associated * none of the sta vifs are associated
* and we are not currently handling multivif * and we are not currently handling multivif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment