From 4eeff00bb6e3d0dca01c995706a5a2579ec78a33 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Tue, 19 Nov 2019 13:42:31 +0530 Subject: [PATCH] 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 --- core/sap/src/sap_api_link_cntl.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/sap/src/sap_api_link_cntl.c b/core/sap/src/sap_api_link_cntl.c index 7c10dc3aa780..d701ea81718f 100644 --- a/core/sap/src/sap_api_link_cntl.c +++ b/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; mac_handle_t mac_handle; QDF_STATUS status; - struct qdf_op_sync *op_sync; /* * 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) scan_status = eCSR_SCAN_SUCCESS; - if (qdf_op_protect(&op_sync)) - return; - wlansap_pre_start_bss_acs_scan_callback(mac_handle, arg, session_id, scan_id, scan_status); - qdf_op_unprotect(op_sync); }