Răsfoiți Sursa

qcacld-3.0: Fix sme_tsm_ie_ind() context param

Currently sme_tsm_ie_ind() takes a tHalHandle context param.  However
this is a static internal function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal
(which is what is already being passed by sme_process_msg()).

Change-Id: Ica6add4b81ad7ffd664ee6e46f2e8b43a731771f
Crs-Fixed: 2267438
Jeff Johnson 6 ani în urmă
părinte
comite
24e65b5f76
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 4 4
      core/sme/src/common/sme_api.c

+ 4 - 4
core/sme/src/common/sme_api.c

@@ -1572,16 +1572,16 @@ send_plm_start:
 
 /**
  * sme_tsm_ie_ind() - sme tsm ie indication
- * @hHal: HAL handle
+ * @mac: Global mac context
  * @pSmeTsmIeInd: Pointer to tsm ie indication
  *
  * Handle the tsm ie indication from  LIM and forward it to HDD.
  *
  * Return: QDF_STATUS enumeration
  */
-static QDF_STATUS sme_tsm_ie_ind(tHalHandle hHal, tSirSmeTsmIEInd *pSmeTsmIeInd)
+static QDF_STATUS sme_tsm_ie_ind(tpAniSirGlobal mac,
+				 tSirSmeTsmIEInd *pSmeTsmIeInd)
 {
-	tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
 	struct csr_roam_info roam_info = { 0 };
 	uint32_t SessionId = pSmeTsmIeInd->sessionId;
@@ -1590,7 +1590,7 @@ static QDF_STATUS sme_tsm_ie_ind(tHalHandle hHal, tSirSmeTsmIEInd *pSmeTsmIeInd)
 	roam_info.tsmIe.state = pSmeTsmIeInd->tsmIe.state;
 	roam_info.tsmIe.msmt_interval = pSmeTsmIeInd->tsmIe.msmt_interval;
 	/* forward the tsm ie information to HDD */
-	csr_roam_call_callback(pMac, SessionId, &roam_info, 0,
+	csr_roam_call_callback(mac, SessionId, &roam_info, 0,
 			       eCSR_ROAM_TSM_IE_IND, 0);
 	return status;
 }