qcacmn: Handle AP and STA Tx stats separately
AP and STA stats need to be handled separately. Change-Id: I105856d6d4ee39a116966eb3ff47775b54f08ef4
This commit is contained in:

committed by
nshrivas

parent
512104fbe5
commit
8c880d3fd2
@@ -3090,12 +3090,7 @@ void dp_tx_comp_process_tx_status(struct dp_tx_desc_s *tx_desc,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (qdf_likely(!peer->bss_peer)) {
|
||||
DP_STATS_INC_PKT(peer, tx.ucast, 1, length);
|
||||
|
||||
if (ts->status == HAL_TX_TQM_RR_FRAME_ACKED)
|
||||
DP_STATS_INC_PKT(peer, tx.tx_success, 1, length);
|
||||
} else {
|
||||
if (qdf_unlikely(peer->bss_peer && vdev->opmode == wlan_op_mode_ap)) {
|
||||
if (ts->status != HAL_TX_TQM_RR_REM_CMD_REM) {
|
||||
DP_STATS_INC_PKT(peer, tx.mcast, 1, length);
|
||||
|
||||
@@ -3105,6 +3100,10 @@ void dp_tx_comp_process_tx_status(struct dp_tx_desc_s *tx_desc,
|
||||
DP_STATS_INC_PKT(peer, tx.bcast, 1, length);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
DP_STATS_INC_PKT(peer, tx.ucast, 1, length);
|
||||
if (ts->status == HAL_TX_TQM_RR_FRAME_ACKED)
|
||||
DP_STATS_INC_PKT(peer, tx.tx_success, 1, length);
|
||||
}
|
||||
|
||||
dp_tx_update_peer_stats(tx_desc, ts, peer, ring_id);
|
||||
|
Reference in New Issue
Block a user