From 616dfbe6fc56e6225a128889a918b361919fbf30 Mon Sep 17 00:00:00 2001 From: Hanumantha Reddy Pothula Date: Thu, 1 Oct 2015 14:14:46 +0530 Subject: [PATCH] qcacld-3.0: Update MCS index appropriately qcacld-2.0 to qcacld-3.0 propagation When AP is configured with MCS index less than 4(43Mbps) then Host reports invalid MCS Index to upper-layer, leading to display invalid link speed on GUI. Updating MCS index with valid value and thereby updating correct MCS index to upper-layer Change-Id: Ibd1503be3825c879b7fa52bdfb6ff07423c39023 CRs-Fixed: 855022 --- core/hdd/src/wlan_hdd_stats.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index e335fcaf84d6..47fc6512e338 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -2181,6 +2181,9 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy, supported_mcs_rate[j]. supported_rate [rateFlag]; + maxMCSIdx = + supported_mcs_rate[j]. + beacon_rate_index; break; } } @@ -2188,11 +2191,8 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy, if ((j < MAX_HT_MCS_IDX) && (currentRate > maxRate)) { maxRate = currentRate; - maxSpeedMCS = 1; - maxMCSIdx = - supported_mcs_rate[j]. - beacon_rate_index; } + maxSpeedMCS = 1; } } }