From dd6932077d34db404ed3d9e83b6f5224d1c0373a Mon Sep 17 00:00:00 2001 From: Amrit Sahai Date: Fri, 7 Jan 2022 13:00:11 +0530 Subject: [PATCH] qcacmn: Add support for retry counters add support to account for msdu retry counters in per pkt Tx completion path Change-Id: Icd9d90a40d0c3f50ffdba7c4e30731eec0e825c0 --- dp/wifi3.0/dp_tx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index 8e0a4da697..9551c152bc 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -3739,9 +3739,14 @@ dp_tx_update_peer_stats(struct dp_tx_desc_s *tx_desc, } if (ts->status != HAL_TX_TQM_RR_FRAME_ACKED) { + DP_STATS_INCC(peer, tx.failed_retry_count, 1, + ts->transmit_cnt > DP_RETRY_COUNT); dp_update_no_ack_stats(tx_desc->nbuf, peer); return; } + DP_STATS_INCC(peer, tx.retry_count, 1, ts->transmit_cnt > 1); + + DP_STATS_INCC(peer, tx.multiple_retry_count, 1, ts->transmit_cnt > 2); DP_STATS_INCC(peer, tx.ofdma, 1, ts->ofdma);