ath11k: enable PN offload
authorManikanta Pubbisetty <mpubbise@codeaurora.org>
Mon, 16 Mar 2020 05:37:22 +0000 (07:37 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 17 Mar 2020 06:35:42 +0000 (08:35 +0200)
commit1441b2f205a7c78dc2da11b830751b26cb55ae51
treed4647efb5181da26204b78566a596f25bd2aaa16
parent243874c64c8137bc90455200a7735da72836ecab
ath11k: enable PN offload

Enabling PN checking in the hardware; hardware checks
the PN of the received packets and reports the errors
to the host for further handling; default action is to
drop such packets. TSC (TKIP sequence counter)
validation is also offloaded.

Hardware validates PN/TSC only for unicast packets;
for group addressed packets, PN validation is done
in mac80211.

PN errors are reported to the driver via WBM RX release
ring and can be dumped by using the following command.

"cat /sys/kernel/debug/ath11k/soc_rx_stats | grep -i pn"

Sample Output:
PN check fail: 210

Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/dp.c
drivers/net/wireless/ath/ath11k/dp_rx.c
drivers/net/wireless/ath/ath11k/dp_rx.h
drivers/net/wireless/ath/ath11k/hal.h
drivers/net/wireless/ath/ath11k/hal_rx.c
drivers/net/wireless/ath/ath11k/mac.c