From 1b28621e9dc533402633f6b6ae124bee0a358caa Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Wed, 31 Oct 2018 20:13:45 +0530 Subject: [PATCH] qcacmn: Call scan failure callback in case scan is not serialized In case scan req is not serialized in some case failure callback are not called and thus the requestor might not get this callback and thus might not clean up its states. Fix this by calling failure callback in case scan is not serialized. Change-Id: Ife2f22a71fc3fcf60ef96209ec179594ab60c074 CRs-Fixed: 2343144 --- umac/scan/core/src/wlan_scan_manager.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index a387b1a98a8b..dc2fbdc22653 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -444,11 +444,6 @@ scm_scan_start_req(struct scheduler_msg *msg) case WLAN_SER_CMD_DENIED_LIST_FULL: case WLAN_SER_CMD_DENIED_RULES_FAILED: case WLAN_SER_CMD_DENIED_UNSPECIFIED: - /* notify registered scan event handlers - * about internal error - */ - scm_post_internal_scan_complete_event(req, - SCAN_REASON_INTERNAL_FAILURE); goto err; default: QDF_ASSERT(0); @@ -458,6 +453,12 @@ scm_scan_start_req(struct scheduler_msg *msg) return status; err: + /* + * notify registered scan event handlers + * about internal error + */ + scm_post_internal_scan_complete_event(req, + SCAN_REASON_INTERNAL_FAILURE); /* * cmd can't be serviced. * release vdev reference and free scan_start_request memory