ath10k: configure and enable the wakeup capability
authorRyan Hsu <ryanhsu@qti.qualcomm.com>
Thu, 31 Aug 2017 12:36:16 +0000 (15:36 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 31 Aug 2017 18:17:04 +0000 (21:17 +0300)
commit393b706cf20c2b612ca88fb2e48b43e3e376796f
treef7a2d1f99fdd9a53e156a1e11141ae629f653af9
parent32faa3f0ee509176aeac0009e3ee93f9b15f07a5
ath10k: configure and enable the wakeup capability

ACPI will rely on device driver to tell it if the device could support
wakeup function when system in D3 state.

This has caused some platform can't support remote wakeup correctly,
because the ACPI wakeup GPE is not enabled, hence registers the .set_wakeup
callback to handle it if device supports wakeup.

Tested with QCA6174 hw3.0, firmware ('WLAN.RM.4.4.1-00008-QCARMSWP-1')

Signed-off-by: Ryan Hsu <ryanhsu@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/wow.c
drivers/net/wireless/ath/ath10k/wow.h