wlan: report RSSI after querying the firmware
Populate RSSI in the station_info structure after the
Fw reports RSSI, so that we never return a stale value.
CRs-Fixed: 538233
Change-Id: I7dfca4ea3a9ceab072b31051f2f00b00db08f126
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 6cb2baf..3da267a 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -6868,12 +6868,12 @@
return status;
}
- wlan_hdd_get_rssi(pAdapter, &sinfo->signal);
- sinfo->filled |= STATION_INFO_SIGNAL;
-
wlan_hdd_get_station_stats(pAdapter);
rate_flags = pAdapter->hdd_stats.ClassA_stat.tx_rate_flags;
+ wlan_hdd_get_rssi(pAdapter, &sinfo->signal);
+ sinfo->filled |= STATION_INFO_SIGNAL;
+
//convert to the UI units of 100kbps
myRate = pAdapter->hdd_stats.ClassA_stat.tx_rate * 5;