Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
1b28621e9d
1 zmenil súbory, kde vykonal 6 pridanie a 5 odobranie
  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