All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA
@ 2019-02-01  5:36 ` Surabhi Vishnoi
  0 siblings, 0 replies; 8+ messages in thread
From: Surabhi Vishnoi @ 2019-02-01  5:36 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless, Surabhi Vishnoi

Firmware sends the tx_duration for each in HTT_T2H_MSG_TYPE_PEER_STATS
msg. Fill the tx_duration sent by firmware in the tx stats information
per STA.

Tested HW: WCN3990
Tested FW: WLAN.HL.2.0

Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
---
 drivers/net/wireless/ath/ath10k/htt_rx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c
index f42bac2..89d84dc 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -2975,6 +2975,8 @@ static inline s8 ath10k_get_legacy_rate_idx(struct ath10k *ar, u8 rate)
 		STATS_OP_FMT(RETRY).rate_table[0][idx] += pstats->retry_bytes;
 		STATS_OP_FMT(RETRY).rate_table[1][idx] += pstats->retry_pkts;
 	}
+
+	tx_stats->tx_duration += pstats->duration;
 }
 
 static void
@@ -3141,6 +3143,7 @@ static void ath10k_htt_fetch_peer_stats(struct ath10k *ar,
 		p_tx_stats->succ_pkts = __le16_to_cpu(tx_stats->succ_pkts);
 		p_tx_stats->retry_pkts = __le16_to_cpu(tx_stats->retry_pkts);
 		p_tx_stats->failed_pkts = __le16_to_cpu(tx_stats->failed_pkts);
+		p_tx_stats->duration = __le16_to_cpu(tx_stats->tx_duration);
 
 		ath10k_update_per_peer_tx_stats(ar, sta, p_tx_stats);
 	}
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA
@ 2019-02-01  5:36 ` Surabhi Vishnoi
  0 siblings, 0 replies; 8+ messages in thread
From: Surabhi Vishnoi @ 2019-02-01  5:36 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless, Surabhi Vishnoi

Firmware sends the tx_duration for each in HTT_T2H_MSG_TYPE_PEER_STATS
msg. Fill the tx_duration sent by firmware in the tx stats information
per STA.

Tested HW: WCN3990
Tested FW: WLAN.HL.2.0

Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
---
 drivers/net/wireless/ath/ath10k/htt_rx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c
index f42bac2..89d84dc 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -2975,6 +2975,8 @@ static inline s8 ath10k_get_legacy_rate_idx(struct ath10k *ar, u8 rate)
 		STATS_OP_FMT(RETRY).rate_table[0][idx] += pstats->retry_bytes;
 		STATS_OP_FMT(RETRY).rate_table[1][idx] += pstats->retry_pkts;
 	}
+
+	tx_stats->tx_duration += pstats->duration;
 }
 
 static void
@@ -3141,6 +3143,7 @@ static void ath10k_htt_fetch_peer_stats(struct ath10k *ar,
 		p_tx_stats->succ_pkts = __le16_to_cpu(tx_stats->succ_pkts);
 		p_tx_stats->retry_pkts = __le16_to_cpu(tx_stats->retry_pkts);
 		p_tx_stats->failed_pkts = __le16_to_cpu(tx_stats->failed_pkts);
+		p_tx_stats->duration = __le16_to_cpu(tx_stats->tx_duration);
 
 		ath10k_update_per_peer_tx_stats(ar, sta, p_tx_stats);
 	}
-- 
1.9.1


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA
  2019-02-01  5:36 ` Surabhi Vishnoi
@ 2019-02-04 15:33   ` Kalle Valo
  -1 siblings, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-02-04 15:33 UTC (permalink / raw)
  To: Surabhi Vishnoi; +Cc: ath10k, linux-wireless

Surabhi Vishnoi <svishnoi@codeaurora.org> writes:

> Firmware sends the tx_duration for each in HTT_T2H_MSG_TYPE_PEER_STATS
> msg. Fill the tx_duration sent by firmware in the tx stats information
> per STA.
>
> Tested HW: WCN3990
> Tested FW: WLAN.HL.2.0

Same here, please let me know the firmware version so I can add it.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA
@ 2019-02-04 15:33   ` Kalle Valo
  0 siblings, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-02-04 15:33 UTC (permalink / raw)
  To: Surabhi Vishnoi; +Cc: linux-wireless, ath10k

Surabhi Vishnoi <svishnoi@codeaurora.org> writes:

> Firmware sends the tx_duration for each in HTT_T2H_MSG_TYPE_PEER_STATS
> msg. Fill the tx_duration sent by firmware in the tx stats information
> per STA.
>
> Tested HW: WCN3990
> Tested FW: WLAN.HL.2.0

Same here, please let me know the firmware version so I can add it.

-- 
Kalle Valo

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA
       [not found]   ` <ad4c09475713750aa1c6d2db30178de8@codeaurora.org>
@ 2019-02-07  9:10       ` Kalle Valo
  0 siblings, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-02-07  9:10 UTC (permalink / raw)
  To: Surabhi Vishnoi; +Cc: linux-wireless, ath10k

+ lists

Surabhi Vishnoi <svishnoi@codeaurora.org> writes:

> On 2019-02-04 21:03, Kalle Valo wrote:
>> Surabhi Vishnoi <svishnoi@codeaurora.org> writes:
>>
>>> Firmware sends the tx_duration for each in HTT_T2H_MSG_TYPE_PEER_STATS
>>> msg. Fill the tx_duration sent by firmware in the tx stats information
>>> per STA.
>>>
>>> Tested HW: WCN3990
>>> Tested FW: WLAN.HL.2.0
>>
>> Same here, please let me know the firmware version so I can add it.
>
>
> Hi Kalle,
>
> The Fw version tested are:
> Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1,
>            WLAN.HL.2.0-01617-QCAHLSWMTPLZ-1

Thanks. I'll add these.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA
@ 2019-02-07  9:10       ` Kalle Valo
  0 siblings, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-02-07  9:10 UTC (permalink / raw)
  To: Surabhi Vishnoi; +Cc: linux-wireless, ath10k

+ lists

Surabhi Vishnoi <svishnoi@codeaurora.org> writes:

> On 2019-02-04 21:03, Kalle Valo wrote:
>> Surabhi Vishnoi <svishnoi@codeaurora.org> writes:
>>
>>> Firmware sends the tx_duration for each in HTT_T2H_MSG_TYPE_PEER_STATS
>>> msg. Fill the tx_duration sent by firmware in the tx stats information
>>> per STA.
>>>
>>> Tested HW: WCN3990
>>> Tested FW: WLAN.HL.2.0
>>
>> Same here, please let me know the firmware version so I can add it.
>
>
> Hi Kalle,
>
> The Fw version tested are:
> Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1,
>            WLAN.HL.2.0-01617-QCAHLSWMTPLZ-1

Thanks. I'll add these.

-- 
Kalle Valo

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA
  2019-02-01  5:36 ` Surabhi Vishnoi
  (?)
  (?)
@ 2019-02-07 14:58 ` Kalle Valo
  -1 siblings, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-02-07 14:58 UTC (permalink / raw)
  To: Surabhi Vishnoi; +Cc: ath10k, linux-wireless, Surabhi Vishnoi

Surabhi Vishnoi <svishnoi@codeaurora.org> wrote:

> Firmware sends the tx_duration for each in HTT_T2H_MSG_TYPE_PEER_STATS
> msg. Fill the tx_duration sent by firmware in the tx stats information
> per STA.
> 
> Tested HW: WCN3990
> Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1,
>            WLAN.HL.2.0-01617-QCAHLSWMTPLZ-1
> 
> Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

056550291d98 ath10k: fill tx_duration for each peer in Tx stats per STA

-- 
https://patchwork.kernel.org/patch/10791825/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA
  2019-02-01  5:36 ` Surabhi Vishnoi
                   ` (2 preceding siblings ...)
  (?)
@ 2019-02-07 14:58 ` Kalle Valo
  -1 siblings, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-02-07 14:58 UTC (permalink / raw)
  To: Surabhi Vishnoi; +Cc: linux-wireless, ath10k

Surabhi Vishnoi <svishnoi@codeaurora.org> wrote:

> Firmware sends the tx_duration for each in HTT_T2H_MSG_TYPE_PEER_STATS
> msg. Fill the tx_duration sent by firmware in the tx stats information
> per STA.
> 
> Tested HW: WCN3990
> Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1,
>            WLAN.HL.2.0-01617-QCAHLSWMTPLZ-1
> 
> Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

056550291d98 ath10k: fill tx_duration for each peer in Tx stats per STA

-- 
https://patchwork.kernel.org/patch/10791825/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-02-07 14:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-01  5:36 [PATCH] ath10k: Fill tx_duration for each peer in Tx stats per STA Surabhi Vishnoi
2019-02-01  5:36 ` Surabhi Vishnoi
2019-02-04 15:33 ` Kalle Valo
2019-02-04 15:33   ` Kalle Valo
     [not found]   ` <ad4c09475713750aa1c6d2db30178de8@codeaurora.org>
2019-02-07  9:10     ` Kalle Valo
2019-02-07  9:10       ` Kalle Valo
2019-02-07 14:58 ` Kalle Valo
2019-02-07 14:58 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.