* [PATCH] ath11k: update tx duration in station info
@ 2019-10-31 5:22 Venkateswara Naralasetty
2019-11-11 14:08 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Venkateswara Naralasetty @ 2019-10-31 5:22 UTC (permalink / raw)
To: ath11k; +Cc: Venkateswara Naralasetty
Update tx duration in station info form PPDU stats so that
users can dump tx duration of the station.
Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/core.h | 1 +
drivers/net/wireless/ath/ath11k/dp_rx.c | 1 +
drivers/net/wireless/ath/ath11k/mac.c | 3 +++
3 files changed, 5 insertions(+)
diff --git a/drivers/net/wireless/ath/ath11k/core.h b/drivers/net/wireless/ath/ath11k/core.h
index 95447d1..8ed034d 100644
--- a/drivers/net/wireless/ath/ath11k/core.h
+++ b/drivers/net/wireless/ath/ath11k/core.h
@@ -335,6 +335,7 @@ struct ath11k_sta {
struct rate_info txrate;
struct rate_info last_txrate;
u64 rx_duration;
+ u64 tx_duration;
u8 rssi_comb;
struct ath11k_htt_tx_stats *tx_stats;
struct ath11k_rx_peer_stats *rx_stats;
diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c
index 9491a47..e1e805c 100644
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -1159,6 +1159,7 @@ ath11k_update_per_peer_tx_stats(struct ath11k *ar,
arsta->txrate.nss = nss;
arsta->txrate.bw = ath11k_bw_to_mac80211_bw(bw);
arsta->tx_info.status.rates[0].flags |= ath11k_bw_to_mac80211_bwflags(bw);
+ arsta->tx_duration += tx_duration;
memcpy(&arsta->last_txrate, &arsta->txrate, sizeof(struct rate_info));
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index cb025a4..c49c2cf 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -4962,6 +4962,9 @@ static void ath11k_mac_op_sta_statistics(struct ieee80211_hw *hw,
sinfo->rx_duration = arsta->rx_duration;
sinfo->filled |= BIT_ULL(NL80211_STA_INFO_RX_DURATION);
+ sinfo->tx_duration = arsta->tx_duration;
+ sinfo->filled |= BIT_ULL(NL80211_STA_INFO_TX_DURATION);
+
if (!arsta->txrate.legacy && !arsta->txrate.nss)
return;
--
2.7.4
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath11k: update tx duration in station info
2019-10-31 5:22 [PATCH] ath11k: update tx duration in station info Venkateswara Naralasetty
@ 2019-11-11 14:08 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-11-11 14:08 UTC (permalink / raw)
To: Venkateswara Naralasetty; +Cc: ath11k
Venkateswara Naralasetty <vnaralas@codeaurora.org> wrote:
> Update tx duration in station info form PPDU stats so that
> users can dump tx duration of the station.
>
> Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org>
Failed to apply, please rebase.
error: patch failed: drivers/net/wireless/ath/ath11k/dp_rx.c:1159
error: drivers/net/wireless/ath/ath11k/dp_rx.c: patch does not apply
stg import: Diff does not apply cleanly
Patch set to Changes Requested.
--
https://patchwork.kernel.org/patch/11220621/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-11 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-31 5:22 [PATCH] ath11k: update tx duration in station info Venkateswara Naralasetty
2019-11-11 14:08 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox