Browse Source

qcacld-3.0: Replace hHal in wlan_qct_sys

Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of hHal with mac_handle
in wlan_qct_sys.

Change-Id: I4f5b7c46ae56140d0a2456f9ba48fdcf54d9262b
CRs-Fixed: 2349568
Jeff Johnson 6 years ago
parent
commit
c0203e218a
1 changed files with 6 additions and 7 deletions
  1. 6 7
      core/mac/src/sys/common/src/wlan_qct_sys.c

+ 6 - 7
core/mac/src/sys/common/src/wlan_qct_sys.c

@@ -124,7 +124,6 @@ QDF_STATUS umac_stop(void)
 
 /**
  * sys_mc_process_msg() - to process system mc thread messages
- * @p_cds_context: pointer to cds context
  * @pMsg: message pointer
  *
  * This API is used to process the message
@@ -135,7 +134,7 @@ static QDF_STATUS sys_mc_process_msg(struct scheduler_msg *pMsg)
 {
 	QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
 	data_stall_detect_cb data_stall_detect_callback;
-	void *hHal;
+	mac_handle_t mac_handle;
 
 	if (NULL == pMsg) {
 		QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_ERROR,
@@ -157,16 +156,16 @@ static QDF_STATUS sys_mc_process_msg(struct scheduler_msg *pMsg)
 		case SYS_MSG_ID_UMAC_STOP:
 			QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_ERROR,
 				"Processing SYS MC STOP");
-			hHal = cds_get_context(QDF_MODULE_ID_PE);
-			if (NULL == hHal) {
+			mac_handle = cds_get_context(QDF_MODULE_ID_PE);
+			if (NULL == mac_handle) {
 				QDF_TRACE(QDF_MODULE_ID_SYS,
 					QDF_TRACE_LEVEL_ERROR,
-					"%s: Invalid hHal", __func__);
+					"%s: Invalid mac_handle", __func__);
 				break;
 			}
-			qdf_status = sme_stop(hHal);
+			qdf_status = sme_stop(mac_handle);
 			QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
-			qdf_status = mac_stop(hHal);
+			qdf_status = mac_stop(mac_handle);
 			QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
 			((sys_rsp_cb) pMsg->callback)(pMsg->bodyptr);
 			qdf_status = QDF_STATUS_SUCCESS;