diff options
author | Carl Huang <cjhuang@codeaurora.org> | 2020-12-11 20:35:48 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-12-12 07:41:37 +0300 |
commit | 79802b13a492d0fdeb922e98628e5ff1a8b74026 (patch) | |
tree | b15e51f62f391b11ed5403ca2b775efffec2c455 /drivers/net/wireless/ath/ath11k/wow.h | |
parent | 2151ffde188a58d7de8fc92ed5ccf38d73ffdb68 (diff) | |
download | linux-79802b13a492d0fdeb922e98628e5ff1a8b74026.tar.xz |
ath11k: implement WoW enable and wakeup commands
Implement wow enable ane wow wakeup commands which are needed for suspend.
Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
Signed-off-by: Carl Huang <cjhuang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1607708150-21066-9-git-send-email-kvalo@codeaurora.org
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/wow.h')
-rw-r--r-- | drivers/net/wireless/ath/ath11k/wow.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/wow.h b/drivers/net/wireless/ath/ath11k/wow.h new file mode 100644 index 000000000000..dabc4ee63cf6 --- /dev/null +++ b/drivers/net/wireless/ath/ath11k/wow.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: BSD-3-Clause-Clear */ +/* + * Copyright (c) 2020 The Linux Foundation. All rights reserved. + */ + +#define ATH11K_WOW_RETRY_NUM 3 +#define ATH11K_WOW_RETRY_WAIT_MS 200 + +int ath11k_wow_enable(struct ath11k_base *ab); +int ath11k_wow_wakeup(struct ath11k_base *ab); |