Преглед изворни кода

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
Hanumantha Reddy Pothula пре 9 година
родитељ
комит
616dfbe6fc
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      core/hdd/src/wlan_hdd_stats.c

+ 4 - 4
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;
 				}
 			}
 		}