瀏覽代碼

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
Abhishek Singh 6 年之前
父節點
當前提交
1b28621e9d
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      umac/scan/core/src/wlan_scan_manager.c

+ 6 - 5
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