Merge "qcacld-3.0: Fix the incorrect error check in scan function" into wlan-cld3.driver.lnx.2.0-dev
diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c
index fbb1e01..05d3f6c 100644
--- a/core/hdd/src/wlan_hdd_scan.c
+++ b/core/hdd/src/wlan_hdd_scan.c
@@ -2024,7 +2024,7 @@
 	}
 
 	ret = wlan_hdd_validate_context(hdd_ctx);
-	if (!ret)
+	if (ret)
 		return;
 
 #ifndef NAPIER_SCAN