Procházet zdrojové kódy

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 před 7 roky
rodič
revize
7131fc8147
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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,