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
This commit is contained in:
Abhishek Singh 2018-10-31 20:13:45 +05:30 • committed by Gerrit - the friendly Code Review server
commit 1b28621e9d

View file

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