aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/debug.c
diff options
context:
space:
mode:
authorBalaji Pothunoori <bpothuno@codeaurora.org>2019-03-12 16:47:50 +0530
committerKalle Valo <kvalo@codeaurora.org>2019-05-07 16:44:13 +0300
commit5c51875c09431af01d3bce189c4c47c72cc533c9 (patch)
tree6b05e99ba633d8ccb041f6e86a6537b03eb484d7 /drivers/net/wireless/ath/ath10k/debug.c
parentath10k: Fix the tx stats bytes & packets parsing (diff)
downloadlinux-dev-5c51875c09431af01d3bce189c4c47c72cc533c9.tar.xz
linux-dev-5c51875c09431af01d3bce189c4c47c72cc533c9.zip
ath10k: rx_duration update for fw_stats debugfs entry
Currently instant rx_duration always fetching as zero in fw_stats debugfs entry if extended peer stats event supports. This patch updates instant rx_duration in fw_stats entry based on extended peer stats and maintaining backward compatibility for 10.2/10.x. Tested HW: QCA9984. Tested FW: 10.4-3.6.0.1-00004. Signed-off-by: Balaji Pothunoori <bpothuno@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c
index f828fd810270..740781fe80f8 100644
--- a/drivers/net/wireless/ath/ath10k/debug.c
+++ b/drivers/net/wireless/ath/ath10k/debug.c
@@ -305,6 +305,9 @@ void ath10k_debug_fw_stats_process(struct ath10k *ar, struct sk_buff *skb)
if (is_end)
ar->debug.fw_stats_done = true;
+ if (stats.extended)
+ ar->debug.fw_stats.extended = true;
+
is_started = !list_empty(&ar->debug.fw_stats.pdevs);
if (is_started && !is_end) {