mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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:
parent
fde69dee82
commit
1b28621e9d
1 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue