Browse Source

qcacld-3.0: Remove the check of op protext in sap scan cb

Currently in stop adapter the driver checks the ACS bit
in progress and then waits for it to get complete
Now if in scheduler thread the sap scan cb comes then
it will check to get op protect which would not be
granted as it is a pdev operation, and already a vdev
transition is in progress, hence the bit for acs in progress
would not get cleared.

Fix is to remove the check of op protect as it is no longer
needed since the stop adapter takes care of acs in progress.

Change-Id: Ifebaed87e3a798126031d9971dc801d60fd34ea6
CRs-Fixed: 2567157
gaurank kathpalia 5 years ago
parent
commit
4eeff00bb6
1 changed files with 0 additions and 5 deletions
  1. 0 5
      core/sap/src/sap_api_link_cntl.c

+ 0 - 5
core/sap/src/sap_api_link_cntl.c

@@ -1328,7 +1328,6 @@ void sap_scan_event_callback(struct wlan_objmgr_vdev *vdev,
 	eCsrScanStatus scan_status = eCSR_SCAN_FAILURE;
 	eCsrScanStatus scan_status = eCSR_SCAN_FAILURE;
 	mac_handle_t mac_handle;
 	mac_handle_t mac_handle;
 	QDF_STATUS status;
 	QDF_STATUS status;
-	struct qdf_op_sync *op_sync;
 
 
 	/*
 	/*
 	 * It may happen that the SAP was deleted before the scan
 	 * It may happen that the SAP was deleted before the scan
@@ -1363,11 +1362,7 @@ void sap_scan_event_callback(struct wlan_objmgr_vdev *vdev,
 	if (success)
 	if (success)
 		scan_status = eCSR_SCAN_SUCCESS;
 		scan_status = eCSR_SCAN_SUCCESS;
 
 
-	if (qdf_op_protect(&op_sync))
-		return;
-
 	wlansap_pre_start_bss_acs_scan_callback(mac_handle,
 	wlansap_pre_start_bss_acs_scan_callback(mac_handle,
 						arg, session_id,
 						arg, session_id,
 						scan_id, scan_status);
 						scan_id, scan_status);
-	qdf_op_unprotect(op_sync);
 }
 }