From eaf0a8e1aa8f1154fd846f992471979baabacd44 Mon Sep 17 00:00:00 2001 From: nobelj Date: Mon, 10 Feb 2020 18:24:29 -0800 Subject: [PATCH] qcacmn: update tx rate stats only for transmitted packet Fix issue, update tx rate stats only for transmitted packet Change-Id: Ice13c99bf82380d56759eb180e774ffab21b66b0 --- dp/wifi3.0/dp_htt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index 033883054b10..b935111b6e45 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/dp/wifi3.0/dp_htt.c @@ -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,