qcacld-3.0: Fix the incorrect error check in scan function
Due to incorrect error check wlan scan abort request
consistently fails.
Fix the error check statement.
Change-Id: I342f96596daaad9e6668059a7085dd215ff5241f
CRs-Fixed: 2049396
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