qcacld-3.0: Fix sme_unprotected_mgmt_frm_ind() context param

Currently sme_unprotected_mgmt_frm_ind() takes a tHalHandle context
param.  However this is a static 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.

Change-Id: I552cade9adf0bdc7a9cf38c76cd8786548dc7011
CRs-Fixed: 2266505
This commit is contained in:
Jeff Johnson
2018-06-09 23:43:40 -07:00
committed by nshrivas
parent 711fe948c4
commit 2ef47449f6

View File

@@ -69,11 +69,6 @@ static QDF_STATUS sme_handle_generic_change_country_code(tpAniSirGlobal pMac,
static QDF_STATUS sme_process_nss_update_resp(tpAniSirGlobal mac, uint8_t *msg); static QDF_STATUS sme_process_nss_update_resp(tpAniSirGlobal mac, uint8_t *msg);
#ifdef WLAN_FEATURE_11W
QDF_STATUS sme_unprotected_mgmt_frm_ind(tHalHandle hHal,
tpSirSmeUnprotMgmtFrameInd pSmeMgmtFrm);
#endif
/* Channel Change Response Indication Handler */ /* Channel Change Response Indication Handler */
static QDF_STATUS sme_process_channel_change_resp(tpAniSirGlobal pMac, static QDF_STATUS sme_process_channel_change_resp(tpAniSirGlobal pMac,
uint16_t msg_type, void *pMsgBuf); uint16_t msg_type, void *pMsgBuf);
@@ -1340,10 +1335,10 @@ static QDF_STATUS dfs_msg_processor(tpAniSirGlobal mac,
* Handle the unprotected management frame indication from LIM and * Handle the unprotected management frame indication from LIM and
* forward it to HDD. * forward it to HDD.
*/ */
QDF_STATUS sme_unprotected_mgmt_frm_ind(tHalHandle hHal, static QDF_STATUS
sme_unprotected_mgmt_frm_ind(tpAniSirGlobal mac,
tpSirSmeUnprotMgmtFrameInd pSmeMgmtFrm) tpSirSmeUnprotMgmtFrameInd pSmeMgmtFrm)
{ {
tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
QDF_STATUS status = QDF_STATUS_SUCCESS; QDF_STATUS status = QDF_STATUS_SUCCESS;
struct csr_roam_info roam_info = { 0 }; struct csr_roam_info roam_info = { 0 };
uint32_t SessionId = pSmeMgmtFrm->sessionId; uint32_t SessionId = pSmeMgmtFrm->sessionId;
@@ -1353,7 +1348,7 @@ QDF_STATUS sme_unprotected_mgmt_frm_ind(tHalHandle hHal,
roam_info.frameType = pSmeMgmtFrm->frameType; roam_info.frameType = pSmeMgmtFrm->frameType;
/* forward the mgmt frame to HDD */ /* forward the mgmt frame to HDD */
csr_roam_call_callback(pMac, SessionId, &roam_info, 0, csr_roam_call_callback(mac, SessionId, &roam_info, 0,
eCSR_ROAM_UNPROT_MGMT_FRAME_IND, 0); eCSR_ROAM_UNPROT_MGMT_FRAME_IND, 0);
return status; return status;