wlan:Incorrect 11n link rate displayed on GUI
Incorrect link rate is displayed on GUI when STA
associates to a 11n supported AP.As a part of this
change getting MCS Rate set only when when rssi is
good or if we are always reporting max speed.
Change-Id: I1cd67fd84c88dc67ef17ff3c0f97cf4b202f9a6d
CRs-fixed: 602300
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index a148e15..6072e3a 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -7088,10 +7088,9 @@
maxRate = (currentRate > maxRate)?currentRate:maxRate;
}
/* Get MCS Rate Set --
- only if we are connected at MCS rates (or)
- if we are always reporting max speed (or)
+ Only if we are always reporting max speed (or)
if we have good rssi */
- if (((0 == rssidx) && !(rate_flags & eHAL_TX_RATE_LEGACY)) ||
+ if ((0 == rssidx) ||
(eHDD_LINK_SPEED_REPORT_MAX == pCfg->reportMaxLinkSpeed))
{
if (0 != ccmCfgGetStr(WLAN_HDD_GET_HAL_CTX(pAdapter), WNI_CFG_CURRENT_MCS_SET,