From da631543bda7c0acf5dbb39a8ca6aab9458356f4 Mon Sep 17 00:00:00 2001 From: Tushnim Bhattacharyya Date: Wed, 28 Aug 2019 10:03:42 -0700 Subject: [PATCH] qcacld-3.0: Fix next scan command logic If a candidate is found do not mark the next scan command as failure. Change-Id: If47befbac946941fdc73161a6dd48d36f3ef566e CRs-Fixed: 2530378 --- core/sme/src/csr/csr_api_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 223243e186c0..ff17c83cd1b8 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -958,7 +958,7 @@ csr_scan_get_next_command_state(struct mac_context *mac_ctx, mac_ctx, session_id, session->scan_info.profile); - if ((!channel) || scan_status) { + if ((!channel) && scan_status) { NextCommand = eCsrNexteScanForSsidFailure; sme_err("next Scan For Ssid Failure %d %d", channel, scan_status);