From 2d3493959f9a89b5e1bd7b7dacd405c855a756f1 Mon Sep 17 00:00:00 2001 From: narayan Date: Wed, 13 May 2020 11:36:45 +0530 Subject: [PATCH] qcacmn: Update correct Rx rate for SU Rx ppdu Currently computation of Rx rate depends on SU MCS and SU NSS for SU PPDU. For SU PPDU, incorrect SU NSS leads to incorrect computation of Rx rate. To fix this, use respective PPDU information(MCS and NSS) and calculate Rx rate based on proper SU NSS. Change-Id: I754a7ecd57ec02d33f211937b7ffd025278d1e05 CRs-Fixed: 2668760 --- dp/wifi3.0/dp_rx_mon_status.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c index 8fdbf2103e47..5346c0b8218f 100644 --- a/dp/wifi3.0/dp_rx_mon_status.c +++ b/dp/wifi3.0/dp_rx_mon_status.c @@ -473,8 +473,11 @@ static inline void dp_rx_rate_stats_update(struct dp_peer *peer, mcs = ppdu_user->mcs; } else { + if (ppdu->u.nss == 0) + nss = 0; + else + nss = ppdu->u.nss - 1; mcs = ppdu->u.mcs; - nss = ppdu->u.nss; } ratekbps = dp_getrateindex(ppdu->u.gi,