OSDN Git Service

ath10k: add PN replay protection for high latency devices
authorWen Gong <wgong@codeaurora.org>
Fri, 26 Apr 2019 06:41:09 +0000 (09:41 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 29 Apr 2019 14:37:34 +0000 (17:37 +0300)
commit130c77495708c61f0aa839e436a8a3a973824b19
treec06ca5a41c881e133e9e64ca834340be368994e2
parent28ce53b6cfda35d25ca3bbf2665e84be38a5f9dd
ath10k: add PN replay protection for high latency devices

On high latency devices (SDIO, USB) ath10k did not do PN replay check, a data
frame with an invalid PN number was not discard as it should have been. So this
patch implements PN replay in ath10k. PN replay check for fragmented frames is
implemented in followup patch.

With low latency devices (PCI, AHB) hardware can store the data
frames's content to host memory directly and the firmware can fully reorder
data frames, and do PN replay check at the same time. But for high latency
devices all data frames will be received and stored in firmware's memory and it
is hard to do full reorder because of the memory size limitations in the
firmware. This is why the PN replay protections needs to be implemented in host
driver.

Tested on QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00007-QCARMSWP-1.

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