qcacmn: update tx rate stats only for transmitted packet

Fix issue, update tx rate stats only for transmitted packet

Change-Id: Ice13c99bf82380d56759eb180e774ffab21b66b0
This commit is contained in:
nobelj
2020-02-10 18:24:29 -08:00
committed by nshrivas
parent ebb5e8667e
commit eaf0a8e1aa

View File

@@ -191,6 +191,9 @@ dp_tx_rate_stats_update(struct dp_peer *peer,
if (!peer || !ppdu)
return;
if (ppdu->completion_status != HTT_PPDU_STATS_USER_STATUS_OK)
return;
ratekbps = dp_getrateindex(ppdu->gi,
ppdu->mcs,
ppdu->nss,