From: Lei Wang <leiwa@codeaurora.org>
To: ath10k@lists.infradead.org
Cc: linux-wireless@vger.kernel.org, Lei Wang <leiwa@codeaurora.org>
Subject: [PATCH v2] ath10k: fix different tx duration output
Date: Wed, 17 Apr 2019 16:17:25 +0800 [thread overview]
Message-ID: <1555489045-18070-1-git-send-email-leiwa@codeaurora.org> (raw)
TX duration output of tx_stats in debugfs and station dump had big
difference because they got tx duration value from different statistic
data. We should use the same statistic data.
Tested: QCA988X with firmware ver 10.2.4-1.0-00043
Signed-off-by: Lei Wang <leiwa@codeaurora.org>
---
drivers/net/wireless/ath/ath10k/mac.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index b73c23d..5414169 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -7977,6 +7977,11 @@ static void ath10k_sta_statistics(struct ieee80211_hw *hw,
sinfo->rx_duration = arsta->rx_duration;
sinfo->filled |= BIT_ULL(NL80211_STA_INFO_RX_DURATION);
+ if (arsta->tx_stats && ath10k_debug_is_extd_tx_stats_enabled(ar)) {
+ sinfo->tx_duration = arsta->tx_stats->tx_duration;
+ sinfo->filled |= 1ULL << NL80211_STA_INFO_TX_DURATION;
+ }
+
if (!arsta->txrate.legacy && !arsta->txrate.nss)
return;
--
1.9.1
next reply other threads:[~2019-04-17 8:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-17 8:17 Lei Wang [this message]
2019-04-17 9:26 ` [PATCH v2] ath10k: fix different tx duration output Toke Høiland-Jørgensen
2019-04-18 7:26 ` leiwa
2019-04-18 8:07 ` Toke Høiland-Jørgensen
2019-05-07 11:14 ` leiwa
2019-05-07 11:43 ` Toke Høiland-Jørgensen
2019-05-07 14:05 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1555489045-18070-1-git-send-email-leiwa@codeaurora.org \
--to=leiwa@codeaurora.org \
--cc=ath10k@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).