qcacld-3.0: Fix rx rate report when throuthput is high

When rx throughput is relatively high, driver will not refill rx
rates info. This has been done in wlan_hdd_get_peer_rx_rate_stats()
so that wlan_hdd_refill_actual_rate() do not need to consider this
condition. Otherwise, we will fail to report rates info to kernel.

Change-Id: Icf677138d7c51b66a0afed87ba4897d6fd5b7d25
CRs-Fixed: 3328555
This commit is contained in:
jinbaoliu
2022-11-04 18:59:16 +08:00
committed by Madan Koyyalamudi
parent 1452f241dc
commit 48a1159e8b

View File

@@ -6035,13 +6035,6 @@ wlan_hdd_refill_actual_rate(struct rate_info *os_rate,
mcs_index = adapter->hdd_stats.class_a_stat.rx_mcs_index; mcs_index = adapter->hdd_stats.class_a_stat.rx_mcs_index;
nss = adapter->hdd_stats.class_a_stat.rx_nss; nss = adapter->hdd_stats.class_a_stat.rx_nss;
/*
* If througput is high, do not get rx rate
* info to avoid the performance penalty
*/
if (cdp_get_bus_lvl_high(soc))
return;
os_rate->nss = nss; os_rate->nss = nss;
if (preamble == DOT11_A || preamble == DOT11_B) { if (preamble == DOT11_A || preamble == DOT11_B) {
os_rate->legacy = rate; os_rate->legacy = rate;