From 9f12ca2e76a3b2291d6819f43d3b407de474bb14 Mon Sep 17 00:00:00 2001 From: Vulupala Shashank Reddy Date: Tue, 15 Mar 2022 14:19:17 +0530 Subject: [PATCH] qcacld-3.0: Add roaming in progress check in get sta stats In wlan_hdd_get_sta_stats add hdd_is_roaming_in_progress check. Change-Id: I49500f592cc73ee859f6326dbf8f0e1af968036f CRs-Fixed: 3151142 --- core/hdd/src/wlan_hdd_stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index c7bd740e3dfd..d346b9a47011 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -5685,7 +5685,8 @@ static int wlan_hdd_get_sta_stats(struct wiphy *wiphy, return 0; } - if (sta_ctx->hdd_reassoc_scenario) { + if (sta_ctx->hdd_reassoc_scenario || + hdd_is_roaming_in_progress(hdd_ctx)) { hdd_debug("Roaming is in progress, cannot continue with this request"); /* * supplicant reports very low rssi to upper layer