ath10k: rx_duration update for fw_stats debugfs entry
authorBalaji Pothunoori <bpothuno@codeaurora.org>
Tue, 12 Mar 2019 11:17:50 +0000 (16:47 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 May 2019 13:44:13 +0000 (16:44 +0300)
commit5c51875c09431af01d3bce189c4c47c72cc533c9
tree6b05e99ba633d8ccb041f6e86a6537b03eb484d7
parent9e0b341a3d664eb95df2f56d180ee9d96786f860
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>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/wmi.c