]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: add waiting htt tx complete before wow enable
authorWen Gong <wgong@codeaurora.org>
Tue, 28 Aug 2018 16:48:42 +0000 (19:48 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 3 Sep 2018 16:57:03 +0000 (19:57 +0300)
commit935ba2bf88c935b433082492cd109dd6ebcbc055
treee66b210659b1148bcb74842eda49e02b076ca744
parentc76b8d8bf368fda085fc86462bd3e8040902d0d9
ath10k: add waiting htt tx complete before wow enable

If there are some tx packets pending in firmware, and then system
enters suspend, firmware will fail for wow enable. This will trigger
mac80211 to stop ath10k and download firmware again, then it is
non-wow suspend.

After add the waiting htt tx complete, then firmware will have some
time window to send or flush the pending tx packets.

Tested with QCA6174 PCI with firmware
WLAN.RM.4.4.1-00109-QCARMSWPZ-1, but this will also affect QCA9377 PCI.
It's not a regression with new firmware releases.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/mac.h
drivers/net/wireless/ath/ath10k/wow.c