From 703fc299e910564cb031db8cf78da97bc2a94fb5 Mon Sep 17 00:00:00 2001 From: Kabilan Kannan Date: Thu, 18 May 2017 18:06:09 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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