Browse Source

qcacld-3.0: Remove sme global lock while sending flush log cmd

qcacld-2.0 to qcacld-3.0 propagation

Currently, host takes sme global mutex lock while sending
flush log cmd to firmware. This api is also invoked from
softirq context hence leading to crash.
As a part of this fix, Remove Sme lock because host does not
modify the sme global parameters during sending this cmd to
firmware.

Change-Id: If6620d458f54563ea7e9f944721498184fbbdb5d
CRs-Fixed: 1073915
Mukul Sharma 8 năm trước cách đây
mục cha
commit
906e1e4678
1 tập tin đã thay đổi với 0 bổ sung9 xóa
  1. 0 9
      core/sme/src/common/sme_api.c

+ 0 - 9
core/sme/src/common/sme_api.c

@@ -14869,14 +14869,6 @@ QDF_STATUS sme_send_flush_logs_cmd_to_fw(tpAniSirGlobal mac)
 	QDF_STATUS status;
 	cds_msg_t message;
 
-	status = sme_acquire_global_lock(&mac->sme);
-	if (status != QDF_STATUS_SUCCESS) {
-		sms_log(mac, LOGE,
-			FL("sme_acquire_global_lock failed!(status=%d)"),
-			status);
-		return status;
-	}
-
 	/* Serialize the req through MC thread */
 	message.bodyptr = NULL;
 	message.type    = SIR_HAL_FLUSH_LOG_TO_FW;
@@ -14887,7 +14879,6 @@ QDF_STATUS sme_send_flush_logs_cmd_to_fw(tpAniSirGlobal mac)
 			status);
 		status = QDF_STATUS_E_FAILURE;
 	}
-	sme_release_global_lock(&mac->sme);
 	return status;
 }