浏览代码

qcacmn: Fix double increment of tx ifconfig stats

In ifconfig athX stats, tx packets and bytes were getting double
incremented in NSS offload disabled case. It was due to tx.comp_pkt
stats getting updated both in per packet Tx completion path and in 
Tx per ppdu indication from HTT path.
Fix by updating stats only in the Tx. completion path.

Change-Id: Id75d914874480a4e24ccb13223818b67869eb378
Neha Bisht 3 年之前
父节点
当前提交
084e26e4d9
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      dp/wifi3.0/monitor/1.0/dp_mon_1.0.c

+ 0 - 3
dp/wifi3.0/monitor/1.0/dp_mon_1.0.c

@@ -1240,9 +1240,6 @@ dp_tx_stats_update(struct dp_pdev *pdev, struct dp_peer *peer,
 	DP_STATS_INC(peer, tx.transmit_type[ppdu->ppdu_type].mpdu_tried,
 		     mpdu_tried);
 
-	DP_STATS_INC_PKT(peer, tx.comp_pkt,
-			 num_msdu, (ppdu->success_bytes +
-				    ppdu->retry_bytes + ppdu->failed_bytes));
 	DP_STATS_UPD(peer, tx.tx_rate, ppdu->tx_rate);
 	DP_STATS_INC(peer, tx.sgi_count[ppdu->gi], num_msdu);
 	DP_STATS_INC(peer, tx.bw[ppdu->bw], num_msdu);