From 24e65b5f761a12539ab5b0d862be4fc3ea2ef072 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 10 Jun 2018 08:45:26 -0700 Subject: [PATCH] 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 --- core/sme/src/common/sme_api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 9a16bf845121..59d9a32cd592 100644 --- a/core/sme/src/common/sme_api.c +++ b/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; }