OSDN Git Service

ath10k: fix retry packets update in station dump
authorVenkateswara Naralasetty <vnaralas@codeaurora.org>
Mon, 15 Jun 2020 17:29:01 +0000 (20:29 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 16 Jun 2020 08:14:26 +0000 (11:14 +0300)
commit67b927f9820847d30e97510b2f00cd142b9559b6
tree53dfc4c613d1102e43455da63ca8fa7809247995
parent8f9ed93d09a97444733d492a3bbf66bcb786a777
ath10k: fix retry packets update in station dump

When tx status enabled, retry count is updated from tx completion status.
which is not working as expected due to firmware limitation where
firmware can not provide per MSDU rate statistics from tx completion
status. Due to this tx retry count is always 0 in station dump.

Fix this issue by updating the retry packet count from per peer
statistics. This patch will not break on SDIO devices since, this retry
count is already updating from peer statistics for SDIO devices.

Tested-on: QCA9984 PCI 10.4-3.6-00104
Tested-on: QCA9882 PCI 10.2.4-1.0-00047

Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1591856446-26977-1-git-send-email-vnaralas@codeaurora.org
drivers/net/wireless/ath/ath10k/htt_rx.c
drivers/net/wireless/ath/ath10k/mac.c