diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index fce9d96d26b0..ff7a538e5c3c 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -1222,6 +1222,7 @@ __wlan_hdd_cfg80211_ll_stats_get(struct wiphy *wiphy, tSirLLStatsGetReq LinkLayerStatsGetReq; struct net_device *dev = wdev->netdev; hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev); + hdd_station_ctx_t *hddstactx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter); int status; ENTER_DEV(dev); @@ -1241,6 +1242,11 @@ __wlan_hdd_cfg80211_ll_stats_get(struct wiphy *wiphy, return -EINVAL; } + if (hddstactx->hdd_ReassocScenario) { + hdd_err("Roaming in progress, so unable to proceed this request"); + return -EBUSY; + } + if (nla_parse(tb_vendor, QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX, (struct nlattr *)data, data_len, qca_wlan_vendor_ll_get_policy)) {