ath10k: add peer flush in ath10k_flush for STATION
authorWen Gong <wgong@codeaurora.org>
Mon, 8 Oct 2018 09:02:43 +0000 (17:02 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 13 Oct 2018 17:24:40 +0000 (20:24 +0300)
commit9de4162f099948ad85871b8b2ed61e84f139cb5a
tree024387952d878b6da2ec4ef1ee4fb577593d463d
parent7bfd82bff60ef572b9acef8ca32669ace1f50664
ath10k: add peer flush in ath10k_flush for STATION

In the noisy environment, if there are packets in the queue and can't
send out, the suspend timing will be more than 5 seconds due to the wait,
flush the queue to optimize the suspend timing, and let the upper layer to
retry the packets after resume.

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