Skip to content

wifi: ath10k: Fix WoW wakeups on WCN3990

Michael Auer ath10k linux-wireless lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Patch 2: report the wakeup before completing wow.wakeup_completed, so the system resume cannot finish before the report (found by the sashiko review of v1). Tested again on the OnePlus 6.
- Patch 1: unchanged.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: ath10k: configure the WoW action frame wakeup filterdrivers/net/wireless/ath/ath10k/wmi-ops.h drivers/net/wireless/ath/ath10k/wmi-tlv.c drivers/net/wireless/ath/ath10k/wmi-tlv.h +3 more+133 -20 replies
2/2wifi: ath10k: report WoW wakeups to the PM coredrivers/net/wireless/ath/ath10k/wmi.c+10 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] wifi: ath10k: Fix WoW wakeups on WCN3990

With WoWLAN enabled, WCN3990 firmware wakes the host on action frames right after every WoW entry, so the system hardly stays suspended. And when the firmware does wake the host for a real reason, user space cannot see that it was a network wakeup.

Patch 1 sets the action frame wakeup filter that Qualcomm's own host drivers set. Patch 2 reports WoW wakeups to the PM core.

Both are in daily use on a OnePlus 6 (sdm845) since late September, with an sdm845-mainline 7.1-rc1 based kernel. On ath-next they were only build tested (W=1). I could not test QCA6174 or QCA9377. qcacld-2.0, the vendor driver for QCA6174, sends the same command, so I expect their firmware to know it.

Tool use: the analysis, the code and the commit messages were written with an LLM coding assistant (Claude Code). I reviewed all of it and tested it on my phone as described above.

Changes in v2:
- Patch 2: report the wakeup before completing wow.wakeup_completed, so the system resume cannot finish before the report (found by the sashiko review of v1). Tested again on the OnePlus 6.
- Patch 1: unchanged.

v1: https://lore.kernel.org/linux-wireless/[email protected]/

Michael Auer (2):
wifi: ath10k: configure the WoW action frame wakeup filter
wifi: ath10k: report WoW wakeups to the PM core

 drivers/net/wireless/ath/ath10k/wmi-ops.h | 19 +++++++++
 drivers/net/wireless/ath/ath10k/wmi-tlv.c | 47 +++++++++++++++++++++++
 drivers/net/wireless/ath/ath10k/wmi-tlv.h | 32 +++++++++++++++
 drivers/net/wireless/ath/ath10k/wmi.c     | 17 +++++---
 drivers/net/wireless/ath/ath10k/wmi.h     | 23 +++++++++++
 drivers/net/wireless/ath/ath10k/wow.c     | 10 +++++
 6 files changed, 143 insertions(+), 5 deletions(-)

base-commit: 1983b40acfcb3c3464b291c85977290a785bcfdc

Signature · 1 line
2.43.0