From feedebab05810bfc8beac6e5b435148d52c6b732 Mon Sep 17 00:00:00 2001 From: Sachin Ahuja Date: Tue, 13 Sep 2016 21:54:16 +0530 Subject: 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 --- core/hdd/src/wlan_hdd_stats.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v1.2.3