Browse Source

qcacld-3.0: Return the cached rssi in get_station during roaming

qcacld-2.0 to qcacld-3.0 propagation

Currently, if get_station is called during roaming, host does
not send the correct rssi.Because of this, supplicant reports
very low rssi to upper layer and handover happens to cellular.
To mitigate this issue, send the cached rssi when get_station
is queried during roaming.

Change-Id: Icceb5839503ccd99e7aef535ee438d072d3a8823
CRs-Fixed: 1055388
Sachin Ahuja 8 years ago
parent
commit
feedebab05
1 changed files with 6 additions and 0 deletions
  1. 6 0
      core/hdd/src/wlan_hdd_stats.c

+ 6 - 0
core/hdd/src/wlan_hdd_stats.c

@@ -1674,6 +1674,12 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
 
 	if (true == pHddStaCtx->hdd_ReassocScenario) {
 		hdd_notice("Roaming is in progress, cannot continue with this request");
+		/*
+		 * supplicant reports very low rssi to upper layer
+		 * and handover happens to cellular.
+		 * send the cached rssi when get_station
+		 */
+		sinfo->signal = pAdapter->rssi;
 		return 0;
 	}