浏览代码

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
narayan 5 年之前
父节点
当前提交
2d3493959f
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      dp/wifi3.0/dp_rx_mon_status.c

+ 4 - 1
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,