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
This commit is contained in:

committed by
Madan Koyyalamudi

parent
a4ba2f1844
commit
084e26e4d9
@@ -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);
|
||||
|
Reference in New Issue
Block a user