Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sujith Manoharan and committed by
Kalle Valo
410b4e27 13084c2d

-6
-6
drivers/net/wireless/ath/ath9k/wow.c
··· 212 212 ath_cancel_work(sc); 213 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 216 * none of the sta vifs are associated 223 217 * and we are not currently handling multivif