wlan: Fix roaming latency caused by cfg80211_get_station
While roaming is going on, Framework initiate
cfg80211_get_station to collect station statistic,
Which in turn block the call or wait for time-out.
This can be overcome by avoiding cfg80211_get_station
if it is triggered in between the Roaming to reduce
the roaming latency.
Change-Id: I897325cab8572fdd330f8a875a29dc49f0a91796
CRs-Fixed: 681718
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 9117dce..b8e0b60 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -11153,6 +11153,13 @@
return 0;
}
+ if (VOS_TRUE == pHddStaCtx->hdd_ReassocScenario)
+ {
+ VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
+ "%s: Roaming in progress, so unable to proceed this request", __func__);
+ return 0;
+ }
+
status = wlan_hdd_validate_context(pHddCtx);
if (0 != status)