ath9k: Check WOW triggers properly
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Fri, 30 Jan 2015 13:35:27 +0000 (19:05 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Feb 2015 13:31:04 +0000 (15:31 +0200)
commit249943a2215c4d03c5dacf549b4ef9bf8439f17b
treecefd3cf181f81c0f8a8d10545230f7031c027abf
parent661d25815ea533d06c7535ddd1c4810fa7ab9e22
ath9k: Check WOW triggers properly

This patch makes sure that valid WOW triggers
are present before trying to suspend the device.
Also, introduce and use ATH_OP_WOW_ENABLED to
bypass PCI suspend and clear it in resume().

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/ath9k/pci.c
drivers/net/wireless/ath/ath9k/wow.c