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
This commit is contained in:
Tushnim Bhattacharyya 2019-08-28 10:03:42 -07:00 • committed by nshrivas
commit da631543bd

View file

@ -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);