qcacmn: Fix tx retries and tx failed stats
Update tx retries count even when ACK_BA_STATUS tlv is not received CRs-Fixed: 2533830 Change-Id: I99ea57852ae45a349ee088a13d35f62ef6091971
This commit is contained in:
@@ -268,9 +268,6 @@ dp_tx_stats_update(struct dp_pdev *pdev, struct dp_peer *peer,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (ppdu->completion_status != HTT_PPDU_STATS_USER_STATUS_OK) {
|
if (ppdu->completion_status != HTT_PPDU_STATS_USER_STATUS_OK) {
|
||||||
DP_STATS_INC(peer, tx.retries,
|
|
||||||
(ppdu->long_retries + ppdu->short_retries));
|
|
||||||
DP_STATS_INC(peer, tx.tx_failed, ppdu->failed_msdus);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2945,8 +2942,18 @@ dp_ppdu_desc_user_stats_update(struct dp_pdev *pdev,
|
|||||||
|
|
||||||
ppdu_desc->user[i].cookie = (void *)peer->wlanstats_ctx;
|
ppdu_desc->user[i].cookie = (void *)peer->wlanstats_ctx;
|
||||||
if (ppdu_desc->user[i].completion_status !=
|
if (ppdu_desc->user[i].completion_status !=
|
||||||
HTT_PPDU_STATS_USER_STATUS_OK)
|
HTT_PPDU_STATS_USER_STATUS_OK) {
|
||||||
tlv_bitmap_expected = tlv_bitmap_expected & 0xFF;
|
tlv_bitmap_expected = tlv_bitmap_expected & 0xFF;
|
||||||
|
if ((ppdu_desc->user[i].tid < CDP_DATA_TID_MAX ||
|
||||||
|
(ppdu_desc->user[i].tid == CDP_DATA_NON_QOS_TID)) &&
|
||||||
|
(ppdu_desc->frame_type == CDP_PPDU_FTYPE_DATA)) {
|
||||||
|
DP_STATS_INC(peer, tx.retries,
|
||||||
|
(ppdu_desc->user[i].long_retries +
|
||||||
|
ppdu_desc->user[i].short_retries));
|
||||||
|
DP_STATS_INC(peer, tx.tx_failed,
|
||||||
|
ppdu_desc->user[i].failed_msdus);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* different frame like DATA, BAR or CTRL has different
|
* different frame like DATA, BAR or CTRL has different
|
||||||
@@ -2970,6 +2977,7 @@ dp_ppdu_desc_user_stats_update(struct dp_pdev *pdev,
|
|||||||
* Update tx stats for data frames having Qos as well as
|
* Update tx stats for data frames having Qos as well as
|
||||||
* non-Qos data tid
|
* non-Qos data tid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((ppdu_desc->user[i].tid < CDP_DATA_TID_MAX ||
|
if ((ppdu_desc->user[i].tid < CDP_DATA_TID_MAX ||
|
||||||
(ppdu_desc->user[i].tid == CDP_DATA_NON_QOS_TID)) &&
|
(ppdu_desc->user[i].tid == CDP_DATA_NON_QOS_TID)) &&
|
||||||
(ppdu_desc->frame_type != CDP_PPDU_FTYPE_CTRL)) {
|
(ppdu_desc->frame_type != CDP_PPDU_FTYPE_CTRL)) {
|
||||||
|
Reference in New Issue
Block a user