diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index fbb1e01aaecf..05d3f6cccd97 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -2024,7 +2024,7 @@ static void __wlan_hdd_cfg80211_abort_scan(struct wiphy *wiphy, } ret = wlan_hdd_validate_context(hdd_ctx); - if (!ret) + if (ret) return; #ifndef NAPIER_SCAN