diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index f69cc003cb44..552673ebd51b 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -12897,6 +12897,11 @@ static int __wlan_hdd_cfg80211_disconnect(struct wiphy *wiphy, status = wlan_hdd_validate_context(pHddCtx); + if (hdd_is_roaming_in_progress()) { + hdd_err("Roaming In Progress. Ignore!!!"); + return -EAGAIN; + } + if (0 != status) return status; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 1e4b63c9fbdb..2d352a7c1e0b 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -595,11 +595,6 @@ int wlan_hdd_validate_context(hdd_context_t *hdd_ctx) return -EAGAIN; } - if (hdd_is_roaming_in_progress()) { - hdd_err("Roaming In Progress. Ignore!!!"); - return -EAGAIN; - } - return 0; }