Преглед изворни кода

qcacmn: Add support for retry counters

add support to account for msdu retry counters in per pkt
Tx completion path

Change-Id: Icd9d90a40d0c3f50ffdba7c4e30731eec0e825c0
Amrit Sahai пре 3 година
родитељ
комит
dd6932077d
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      dp/wifi3.0/dp_tx.c

+ 5 - 0
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);