summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Ahuja <sahuja@codeaurora.org>2016-09-13 21:54:16 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-21 17:04:20 -0700
commitfeedebab05810bfc8beac6e5b435148d52c6b732 (patch)
treee6d90b52ba41c82508fc0adc9dd41e3075319952
parent988fd105c59b9d110fb6fa21bdb0db0bae1d8a05 (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_stats.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c
index 600545f5acbd..1531f1c1b0e9 100644
--- a/core/hdd/src/wlan_hdd_stats.c
+++ b/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;
}