瀏覽代碼

qcacmn: Fix for TX Unicast Packet Count Statistic

Fix for obtaining the correct value for the total unicast packets
transmitted.

Change-Id: I06071846f1dc3610cb8de1e73d7abcd869f2b172
CRs-Fixed: 2237301
Aditya Sathish 7 年之前
父節點
當前提交
7131fc8147
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      dp/wifi3.0/dp_tx.c

+ 1 - 2
dp/wifi3.0/dp_tx.c

@@ -2542,12 +2542,11 @@ static void dp_tx_update_peer_stats(struct dp_peer *peer,
 
 	if (peer->bss_peer) {
 		DP_STATS_INC_PKT(peer, tx.mcast, 1, length);
-		DP_STATS_INC_PKT(peer, tx.tx_success, 1, length);
 	} else {
 		if (ts->status == HAL_TX_TQM_RR_FRAME_ACKED) {
-			DP_STATS_INC_PKT(peer, tx.ucast, 1, length);
 			DP_STATS_INC_PKT(peer, tx.tx_success, 1, length);
 		}
+		DP_STATS_INC_PKT(peer, tx.ucast, 1, length);
 	}
 
 	DP_STATS_INCC(peer, tx.dropped.age_out, 1,