mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacld-3.0: Fix sme_process_ready_to_suspend() context param
Currently sme_process_ready_to_suspend() 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: Ic2f28613ce0f4df0a104aaa1ab23b311abe5e334 CRs-Fixed: 2267440
This commit is contained in:
parent
bfc58a1000
commit
8131a9d1d9
1 changed files with 12 additions and 13 deletions
|
|
@ -1070,32 +1070,31 @@ QDF_STATUS sme_update_roam_params(tHalHandle hal,
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* sme_process_ready_to_suspend() -
|
||||
* @mac: Global MAC context
|
||||
* @pReadyToSuspend: Parameter received along with ready to suspend
|
||||
* indication from WMA.
|
||||
*
|
||||
* On getting ready to suspend indication, this function calls
|
||||
* callback registered (HDD callbacks) with SME to inform ready
|
||||
* to suspend indication.
|
||||
*
|
||||
* hHal - Handle returned by mac_open.
|
||||
* pReadyToSuspend - Parameter received along with ready to suspend
|
||||
* indication from WMA.
|
||||
* Return: None
|
||||
*/
|
||||
static void sme_process_ready_to_suspend(tHalHandle hHal,
|
||||
static void sme_process_ready_to_suspend(tpAniSirGlobal mac,
|
||||
tpSirReadyToSuspendInd pReadyToSuspend)
|
||||
{
|
||||
tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
|
||||
|
||||
if (NULL == pMac) {
|
||||
if (NULL == mac) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_FATAL,
|
||||
"%s: pMac is null", __func__);
|
||||
"%s: mac is null", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
if (NULL != pMac->readyToSuspendCallback) {
|
||||
pMac->readyToSuspendCallback(pMac->readyToSuspendContext,
|
||||
pReadyToSuspend->suspended);
|
||||
pMac->readyToSuspendCallback = NULL;
|
||||
if (NULL != mac->readyToSuspendCallback) {
|
||||
mac->readyToSuspendCallback(mac->readyToSuspendContext,
|
||||
pReadyToSuspend->suspended);
|
||||
mac->readyToSuspendCallback = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue