wlan : To remove PAL memory wrapper in PE(6)
This is to remove PAL memory wrapper in PE and replace with vos calls.
CRs-Fixed: 520321
Change-Id: Ia89a0ce6f5ad72ecda903509b6d82c9c919930f3
diff --git a/CORE/MAC/src/pe/lim/limSendSmeRspMessages.c b/CORE/MAC/src/pe/lim/limSendSmeRspMessages.c
index d91c595..82ac7d8 100644
--- a/CORE/MAC/src/pe/lim/limSendSmeRspMessages.c
+++ b/CORE/MAC/src/pe/lim/limSendSmeRspMessages.c
@@ -109,11 +109,12 @@
FL("Sending message %s with reasonCode %s"),
limMsgStr(msgType), limResultCodeStr(resultCode));)
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeRsp, sizeof(tSirSmeRsp)))
+ pSirSmeRsp = vos_mem_malloc(sizeof(tSirSmeRsp));
+ if ( NULL == pSirSmeRsp )
{
/// Buffer not available. Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_*_RSP"));
+ FL("call to AllocateMemory failed for eWNI_SME_*_RSP"));
return;
}
@@ -130,7 +131,7 @@
mmhMsg.type = msgType;
mmhMsg.bodyptr = pSirSmeRsp;
mmhMsg.bodyval = 0;
- MTRACE(macTraceMsgTx(pMac, smesessionId , mmhMsg.type));
+ MTRACE(macTraceMsgTx(pMac, smesessionId, mmhMsg.type));
#ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM //FEATURE_WLAN_DIAG_SUPPORT
{
@@ -264,14 +265,15 @@
rspLen = sizeof(tSirSmeJoinRsp);
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeJoinRsp, rspLen))
+ pSirSmeJoinRsp = vos_mem_malloc(rspLen);
+ if ( NULL == pSirSmeJoinRsp )
{
/// Buffer not available. Log error
- limLog(pMac, LOGP, FL("call to palAllocateMemory failed for JOIN/REASSOC_RSP"));
+ limLog(pMac, LOGP, FL("call to AllocateMemory failed for JOIN/REASSOC_RSP"));
return;
}
- palZeroMemory(pMac, (tANI_U8*)pSirSmeJoinRsp, rspLen);
+ vos_mem_set((tANI_U8*)pSirSmeJoinRsp, rspLen, 0);
pSirSmeJoinRsp->beaconLength = 0;
@@ -290,17 +292,18 @@
psessionEntry->tspecLen +
#endif
sizeof(tSirSmeJoinRsp) - sizeof(tANI_U8) ;
-
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeJoinRsp, rspLen))
+
+ pSirSmeJoinRsp = vos_mem_malloc(rspLen);
+ if ( NULL == pSirSmeJoinRsp )
{
/// Buffer not available. Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for JOIN/REASSOC_RSP"));
+ FL("call to AllocateMemory failed for JOIN/REASSOC_RSP"));
return;
}
- palZeroMemory(pMac, (tANI_U8*)pSirSmeJoinRsp, rspLen);
+ vos_mem_set((tANI_U8*)pSirSmeJoinRsp, rspLen, 0);
if (resultCode == eSIR_SME_SUCCESS)
{
@@ -334,8 +337,9 @@
if(psessionEntry->beacon != NULL)
{
pSirSmeJoinRsp->beaconLength = psessionEntry->bcnLen;
- palCopyMemory(pMac->hHdd, pSirSmeJoinRsp->frames, psessionEntry->beacon, pSirSmeJoinRsp->beaconLength);
- palFreeMemory(pMac->hHdd, psessionEntry->beacon);
+ vos_mem_copy( pSirSmeJoinRsp->frames, psessionEntry->beacon,
+ pSirSmeJoinRsp->beaconLength);
+ vos_mem_free( psessionEntry->beacon);
psessionEntry->beacon = NULL;
#ifdef WLAN_FEATURE_VOWIFI_11R_DEBUG
PELOG1(limLog(pMac, LOG1, FL("Beacon=%d"), psessionEntry->bcnLen);)
@@ -345,8 +349,9 @@
if(psessionEntry->assocReq != NULL)
{
pSirSmeJoinRsp->assocReqLength = psessionEntry->assocReqLen;
- palCopyMemory(pMac->hHdd, pSirSmeJoinRsp->frames + psessionEntry->bcnLen, psessionEntry->assocReq, pSirSmeJoinRsp->assocReqLength);
- palFreeMemory(pMac->hHdd, psessionEntry->assocReq);
+ vos_mem_copy( pSirSmeJoinRsp->frames + psessionEntry->bcnLen,
+ psessionEntry->assocReq, pSirSmeJoinRsp->assocReqLength);
+ vos_mem_free( psessionEntry->assocReq);
psessionEntry->assocReq = NULL;
#ifdef WLAN_FEATURE_VOWIFI_11R_DEBUG
PELOG1(limLog(pMac, LOG1, FL("AssocReq=%d"), psessionEntry->assocReqLen);)
@@ -355,16 +360,21 @@
if(psessionEntry->assocRsp != NULL)
{
pSirSmeJoinRsp->assocRspLength = psessionEntry->assocRspLen;
- palCopyMemory(pMac->hHdd, pSirSmeJoinRsp->frames + psessionEntry->bcnLen + psessionEntry->assocReqLen, psessionEntry->assocRsp, pSirSmeJoinRsp->assocRspLength);
- palFreeMemory(pMac->hHdd, psessionEntry->assocRsp);
+ vos_mem_copy( pSirSmeJoinRsp->frames + psessionEntry->bcnLen +
+ psessionEntry->assocReqLen,
+ psessionEntry->assocRsp,
+ pSirSmeJoinRsp->assocRspLength);
+ vos_mem_free( psessionEntry->assocRsp);
psessionEntry->assocRsp = NULL;
}
#ifdef WLAN_FEATURE_VOWIFI_11R
if(psessionEntry->ricData != NULL)
{
pSirSmeJoinRsp->parsedRicRspLen = psessionEntry->RICDataLen;
- palCopyMemory(pMac->hHdd, pSirSmeJoinRsp->frames + psessionEntry->bcnLen + psessionEntry->assocReqLen + psessionEntry->assocRspLen, psessionEntry->ricData, pSirSmeJoinRsp->parsedRicRspLen);
- palFreeMemory(pMac->hHdd, psessionEntry->ricData);
+ vos_mem_copy( pSirSmeJoinRsp->frames + psessionEntry->bcnLen +
+ psessionEntry->assocReqLen + psessionEntry->assocRspLen,
+ psessionEntry->ricData, pSirSmeJoinRsp->parsedRicRspLen);
+ vos_mem_free(psessionEntry->ricData);
psessionEntry->ricData = NULL;
PELOG1(limLog(pMac, LOG1, FL("RicLength=%d"), pSirSmeJoinRsp->parsedRicRspLen);)
}
@@ -373,8 +383,11 @@
if(psessionEntry->tspecIes != NULL)
{
pSirSmeJoinRsp->tspecIeLen = psessionEntry->tspecLen;
- palCopyMemory(pMac->hHdd, pSirSmeJoinRsp->frames + psessionEntry->bcnLen + psessionEntry->assocReqLen + psessionEntry->assocRspLen + psessionEntry->RICDataLen, psessionEntry->tspecIes, pSirSmeJoinRsp->tspecIeLen);
- palFreeMemory(pMac->hHdd, psessionEntry->tspecIes);
+ vos_mem_copy( pSirSmeJoinRsp->frames + psessionEntry->bcnLen +
+ psessionEntry->assocReqLen + psessionEntry->assocRspLen +
+ psessionEntry->RICDataLen,
+ psessionEntry->tspecIes, pSirSmeJoinRsp->tspecIeLen);
+ vos_mem_free(psessionEntry->tspecIes);
psessionEntry->tspecIes = NULL;
PELOG1(limLog(pMac, LOG1, FL("CCX-TspecLen=%d"), psessionEntry->tspecLen);)
}
@@ -389,19 +402,19 @@
if(psessionEntry->beacon != NULL)
{
- palFreeMemory(pMac->hHdd, psessionEntry->beacon);
+ vos_mem_free(psessionEntry->beacon);
psessionEntry->beacon = NULL;
}
if(psessionEntry->assocReq != NULL)
{
- palFreeMemory(pMac->hHdd, psessionEntry->assocReq);
+ vos_mem_free( psessionEntry->assocReq);
psessionEntry->assocReq = NULL;
}
if(psessionEntry->assocRsp != NULL)
{
- palFreeMemory(pMac->hHdd, psessionEntry->assocRsp);
+ vos_mem_free( psessionEntry->assocRsp);
psessionEntry->assocRsp = NULL;
}
@@ -500,14 +513,14 @@
if(psessionEntry == NULL)
{
-
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeRsp, size))
+ pSirSmeRsp = vos_mem_malloc(size);
+ if ( NULL == pSirSmeRsp )
{
/// Buffer not available. Log error
- limLog(pMac, LOGP,FL("call to palAllocateMemory failed for eWNI_SME_START_BSS_RSP"));
+ limLog(pMac, LOGP,FL("call to AllocateMemory failed for eWNI_SME_START_BSS_RSP"));
return;
}
- palZeroMemory(pMac, (tANI_U8*)pSirSmeRsp, size);
+ vos_mem_set((tANI_U8*)pSirSmeRsp, size, 0);
}
else
@@ -518,15 +531,16 @@
//calculate the memory size to allocate
size += ieLen;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeRsp, size))
+ pSirSmeRsp = vos_mem_malloc(size);
+ if ( NULL == pSirSmeRsp )
{
/// Buffer not available. Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_START_BSS_RSP"));
+ FL("call to AllocateMemory failed for eWNI_SME_START_BSS_RSP"));
return;
}
- palZeroMemory(pMac, (tANI_U8*)pSirSmeRsp, size);
+ vos_mem_set((tANI_U8*)pSirSmeRsp, size, 0);
size = sizeof(tSirSmeStartBssRsp);
if (resultCode == eSIR_SME_SUCCESS)
{
@@ -554,11 +568,11 @@
pSirSmeRsp->bssDescription.aniIndicator = 1;
curLen = pMac->sch.schObject.gSchBeaconOffsetBegin - ieOffset;
- palCopyMemory( pMac->hHdd, (tANI_U8 *) &pSirSmeRsp->bssDescription.ieFields,
+ vos_mem_copy( (tANI_U8 *) &pSirSmeRsp->bssDescription.ieFields,
pMac->sch.schObject.gSchBeaconFrameBegin + ieOffset,
(tANI_U32)curLen);
- palCopyMemory( pMac->hHdd, ((tANI_U8 *) &pSirSmeRsp->bssDescription.ieFields) + curLen,
+ vos_mem_copy( ((tANI_U8 *) &pSirSmeRsp->bssDescription.ieFields) + curLen,
pMac->sch.schObject.gSchBeaconFrameEnd,
(tANI_U32)pMac->sch.schObject.gSchBeaconOffsetEnd);
@@ -666,11 +680,12 @@
bssCount = 0;
msgLen = 0;
allocLength = LIM_MAX_NUM_OF_SCAN_RESULTS_REPORTED * LIM_SIZE_OF_EACH_BSS;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeScanRsp, allocLength))
+ pSirSmeScanRsp = vos_mem_malloc(allocLength);
+ if ( NULL == pSirSmeScanRsp )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_SCAN_RSP"));
+ FL("call to AllocateMemory failed for eWNI_SME_SCAN_RSP"));
return;
}
@@ -706,11 +721,12 @@
mmhMsg.bodyval = 0;
MTRACE(macTraceMsgTx(pMac, NO_SESSION, mmhMsg.type));
limSysProcessMmhMsgApi(pMac, &mmhMsg, ePROT);
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeScanRsp, allocLength))
+ pSirSmeScanRsp = vos_mem_malloc(allocLength);
+ if ( NULL == pSirSmeScanRsp )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_SCAN_RSP"));
+ FL("call to AllocateMemory failed for eWNI_SME_SCAN_RSP"));
return;
}
msgLen = sizeof(tSirSmeScanRsp) -
@@ -726,9 +742,9 @@
msgLen, ptemp->bssDescription.length);)
pDesc->length
= ptemp->bssDescription.length;
- palCopyMemory( pMac->hHdd, (tANI_U8 *) &pDesc->bssId,
- (tANI_U8 *) &ptemp->bssDescription.bssId,
- ptemp->bssDescription.length);
+ vos_mem_copy( (tANI_U8 *) &pDesc->bssId,
+ (tANI_U8 *) &ptemp->bssDescription.bssId,
+ ptemp->bssDescription.length);
PELOG2(limLog(pMac, LOG2, FL("BssId "));
limPrintMacAddr(pMac, ptemp->bssDescription.bssId, LOG2);)
@@ -745,7 +761,7 @@
limPostSmeScanRspMessage(pMac, length, resultCode, smesessionId, smetranscationId);
if (NULL != pSirSmeScanRsp)
{
- palFreeMemory( pMac->hHdd, pSirSmeScanRsp);
+ vos_mem_free( pSirSmeScanRsp);
pSirSmeScanRsp = NULL;
}
}
@@ -826,12 +842,12 @@
bssCount = 0;
msgLen = 0;
allocLength = LIM_MAX_NUM_OF_SCAN_RESULTS_REPORTED * LIM_SIZE_OF_EACH_BSS;
- if ( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd,
- (void **)&pSirSmeScanRsp, allocLength))
+ pSirSmeScanRsp = vos_mem_malloc(allocLength);
+ if ( NULL == pSirSmeScanRsp )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_SCAN_RSP\n"));
+ FL("call to AllocateMemory failed for eWNI_SME_SCAN_RSP\n"));
return;
}
@@ -867,13 +883,12 @@
mmhMsg.bodyval = 0;
MTRACE(macTraceMsgTx(pMac, NO_SESSION, mmhMsg.type));
limSysProcessMmhMsgApi(pMac, &mmhMsg, ePROT);
- if (eHAL_STATUS_SUCCESS != palAllocateMemory(pMac->hHdd,
- (void **)&pSirSmeScanRsp,
- allocLength))
+ pSirSmeScanRsp = vos_mem_malloc(allocLength);
+ if ( NULL == pSirSmeScanRsp )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_SCAN_RSP\n"));
+ FL("call to AllocateMemory failed for eWNI_SME_SCAN_RSP\n"));
return;
}
msgLen = sizeof(tSirSmeScanRsp) -
@@ -889,9 +904,9 @@
msgLen, ptemp->bssDescription.length);)
pDesc->length
= ptemp->bssDescription.length;
- palCopyMemory( pMac->hHdd, (tANI_U8 *) &pDesc->bssId,
- (tANI_U8 *) &ptemp->bssDescription.bssId,
- ptemp->bssDescription.length);
+ vos_mem_copy( (tANI_U8 *) &pDesc->bssId,
+ (tANI_U8 *) &ptemp->bssDescription.bssId,
+ ptemp->bssDescription.length);
PELOG2(limLog(pMac, LOG2, FL("BssId "));
limPrintMacAddr(pMac, ptemp->bssDescription.bssId, LOG2);)
@@ -908,7 +923,7 @@
limPostSmeScanRspMessage(pMac, length, resultCode, smesessionId, smetranscationId);
if (NULL != pSirSmeScanRsp)
{
- palFreeMemory( pMac->hHdd, pSirSmeScanRsp);
+ vos_mem_free( pSirSmeScanRsp);
pSirSmeScanRsp = NULL;
}
}
@@ -965,12 +980,13 @@
FL("limPostSmeScanRspMessage: send SME_SCAN_RSP (len %d, reasonCode %s). "),
length, limResultCodeStr(resultCode));)
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeScanRsp, length))
+ pSirSmeScanRsp = vos_mem_malloc(length);
+ if ( NULL == pSirSmeScanRsp )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for eWNI_SME_SCAN_RSP"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for eWNI_SME_SCAN_RSP"));
return;
}
- palZeroMemory(pMac->hHdd, (void*)pSirSmeScanRsp, length);
+ vos_mem_set((void*)pSirSmeScanRsp, length, 0);
pSirSmeScanRsp->messageType = eWNI_SME_SCAN_RSP;
pSirSmeScanRsp->length = length;
@@ -1042,9 +1058,10 @@
msgLength = sizeof(tSirOemDataRsp);
//now allocate memory for the char buffer
- if(eHAL_STATUS_SUCCESS != palAllocateMemory(pMac->hHdd, (void**)&pSirSmeOemDataRsp, msgLength))
+ pSirSmeOemDataRsp = vos_mem_malloc(msgLength);
+ if (NULL == pSirSmeOemDataRsp)
{
- limLog(pMac, LOGP, FL("call to palAllocateMemory failed for pSirSmeOemDataRsp"));
+ limLog(pMac, LOGP, FL("call to AllocateMemory failed for pSirSmeOemDataRsp"));
return;
}
@@ -1056,10 +1073,10 @@
pSirSmeOemDataRsp->messageType = eWNI_SME_OEM_DATA_RSP;
#endif
- palCopyMemory(pMac->hHdd, pSirSmeOemDataRsp->oemDataRsp, pMlmOemDataRsp->oemDataRsp, OEM_DATA_RSP_SIZE);
+ vos_mem_copy(pSirSmeOemDataRsp->oemDataRsp, pMlmOemDataRsp->oemDataRsp, OEM_DATA_RSP_SIZE);
//Now free the memory from MLM Rsp Message
- palFreeMemory(pMac->hHdd, pMlmOemDataRsp);
+ vos_mem_free(pMlmOemDataRsp);
mmhMsg.type = eWNI_SME_OEM_DATA_RSP;
mmhMsg.bodyptr = pSirSmeOemDataRsp;
@@ -1109,12 +1126,12 @@
tSirMsgQ mmhMsg;
tSirSmeAuthRsp *pSirSmeAuthRsp;
-
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeAuthRsp, sizeof(tSirSmeAuthRsp)))
+ pSirSmeAuthRsp = vos_mem_malloc(sizeof(tSirSmeAuthRsp));
+ if (NULL == pSirSmeAuthRsp)
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_AUTH_RSP"));
+ FL("call to AllocateMemory failed for eWNI_SME_AUTH_RSP"));
return;
}
@@ -1123,7 +1140,7 @@
if(psessionEntry != NULL)
{
- palCopyMemory( pMac->hHdd, (tANI_U8 *) pSirSmeAuthRsp->peerMacAddr,
+ vos_mem_copy( (tANI_U8 *) pSirSmeAuthRsp->peerMacAddr,
(tANI_U8 *) peerMacAddr, sizeof(tSirMacAddr));
pSirSmeAuthRsp->authType = authType;
@@ -1216,11 +1233,12 @@
* host triggered disassociation
*/
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeDisassocRsp, sizeof(tSirSmeDisassocRsp)))
+ pSirSmeDisassocRsp = vos_mem_malloc(sizeof(tSirSmeDisassocRsp));
+ if ( NULL == pSirSmeDisassocRsp )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_DISASSOC_RSP"));
+ FL("call to AllocateMemory failed for eWNI_SME_DISASSOC_RSP"));
return;
}
@@ -1241,7 +1259,7 @@
pBuf += sizeof(tSirResultCodes);
//peerMacAddr
- palCopyMemory( pMac->hHdd, pBuf, peerMacAddr, sizeof(tSirMacAddr));
+ vos_mem_copy( pBuf, peerMacAddr, sizeof(tSirMacAddr));
pBuf += sizeof(tSirMacAddr);
// Clear Station Stats
@@ -1250,6 +1268,7 @@
#ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM //FEATURE_WLAN_DIAG_SUPPORT
+
limDiagEventReport(pMac, WLAN_PE_DIAG_DISASSOC_RSP_EVENT,
psessionEntry, (tANI_U16)reasonCode, 0);
#endif
@@ -1262,11 +1281,12 @@
* frame reception from peer entity or due to
* loss of link with peer entity.
*/
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeDisassocInd, sizeof(tSirSmeDisassocInd)))
+ pSirSmeDisassocInd = vos_mem_malloc(sizeof(tSirSmeDisassocInd));
+ if ( NULL == pSirSmeDisassocInd )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_DISASSOC_IND"));
+ FL("call to AllocateMemory failed for eWNI_SME_DISASSOC_IND"));
return;
}
@@ -1283,10 +1303,10 @@
limCopyU32(pBuf, reasonCode);
pBuf += sizeof(tSirResultCodes);
- palCopyMemory( pMac->hHdd, pBuf, psessionEntry->bssId, sizeof(tSirMacAddr));
+ vos_mem_copy( pBuf, psessionEntry->bssId, sizeof(tSirMacAddr));
pBuf += sizeof(tSirMacAddr);
- palCopyMemory( pMac->hHdd, pBuf, peerMacAddr, sizeof(tSirMacAddr));
+ vos_mem_copy( pBuf, peerMacAddr, sizeof(tSirMacAddr));
#ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM //FEATURE_WLAN_DIAG_SUPPORT
@@ -1328,9 +1348,10 @@
tSirMsgQ mmhMsg;
tSirSmeDisassocInd *pSirSmeDisassocInd;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeDisassocInd, sizeof(tSirSmeDisassocInd)))
+ pSirSmeDisassocInd = vos_mem_malloc(sizeof(tSirSmeDisassocInd));
+ if ( NULL == pSirSmeDisassocInd )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for eWNI_SME_DISASSOC_IND"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for eWNI_SME_DISASSOC_IND"));
return;
}
@@ -1341,13 +1362,13 @@
pSirSmeDisassocInd->transactionId = psessionEntry->transactionId;
pSirSmeDisassocInd->statusCode = pStaDs->mlmStaContext.disassocReason;
pSirSmeDisassocInd->reasonCode = pStaDs->mlmStaContext.disassocReason;
-
- palCopyMemory( pMac->hHdd, pSirSmeDisassocInd->bssId , psessionEntry->bssId , sizeof(tSirMacAddr));
-
- palCopyMemory( pMac->hHdd, pSirSmeDisassocInd->peerMacAddr , pStaDs->staAddr, sizeof(tSirMacAddr));
+
+ vos_mem_copy( pSirSmeDisassocInd->bssId, psessionEntry->bssId, sizeof(tSirMacAddr));
+
+ vos_mem_copy( pSirSmeDisassocInd->peerMacAddr, pStaDs->staAddr, sizeof(tSirMacAddr));
pSirSmeDisassocInd->staId = pStaDs->staIndex;
-
+
mmhMsg.type = eWNI_SME_DISASSOC_IND;
mmhMsg.bodyptr = pSirSmeDisassocInd;
mmhMsg.bodyval = 0;
@@ -1380,9 +1401,10 @@
tSirMsgQ mmhMsg;
tSirSmeDeauthInd *pSirSmeDeauthInd;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeDeauthInd, sizeof(tSirSmeDeauthInd)))
+ pSirSmeDeauthInd = vos_mem_malloc(sizeof(tSirSmeDeauthInd));
+ if ( NULL == pSirSmeDeauthInd )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for eWNI_SME_DEAUTH_IND "));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for eWNI_SME_DEAUTH_IND "));
return;
}
@@ -1401,9 +1423,9 @@
pSirSmeDeauthInd->statusCode = (tSirResultCodes)pStaDs->mlmStaContext.disassocReason;
}
//BSSID
- palCopyMemory( pMac->hHdd, pSirSmeDeauthInd->bssId, psessionEntry->bssId, sizeof(tSirMacAddr));
+ vos_mem_copy( pSirSmeDeauthInd->bssId, psessionEntry->bssId, sizeof(tSirMacAddr));
//peerMacAddr
- palCopyMemory( pMac->hHdd, pSirSmeDeauthInd->peerMacAddr, pStaDs->staAddr, sizeof(tSirMacAddr));
+ vos_mem_copy( pSirSmeDeauthInd->peerMacAddr, pStaDs->staAddr, sizeof(tSirMacAddr));
pSirSmeDeauthInd->reasonCode = pStaDs->mlmStaContext.disassocReason;
@@ -1448,9 +1470,10 @@
tSirMsgQ mmhMsg;
tSirTdlsDelStaInd *pSirTdlsDelStaInd;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirTdlsDelStaInd, sizeof(tSirTdlsDelStaInd)))
+ pSirTdlsDelStaInd = vos_mem_malloc(sizeof(tSirTdlsDelStaInd));
+ if ( NULL == pSirTdlsDelStaInd )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for eWNI_SME_TDLS_DEL_STA_IND "));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for eWNI_SME_TDLS_DEL_STA_IND "));
return;
}
@@ -1462,7 +1485,7 @@
pSirTdlsDelStaInd->sessionId = psessionEntry->smeSessionId;
//peerMacAddr
- palCopyMemory( pMac->hHdd, pSirTdlsDelStaInd->peerMac, pStaDs->staAddr, sizeof(tSirMacAddr));
+ vos_mem_copy( pSirTdlsDelStaInd->peerMac, pStaDs->staAddr, sizeof(tSirMacAddr));
//staId
limCopyU16((tANI_U8*)(&pSirTdlsDelStaInd->staId), (tANI_U16)pStaDs->staIndex);
@@ -1503,9 +1526,10 @@
tSirMsgQ mmhMsg;
tSirTdlsDelAllPeerInd *pSirTdlsDelAllPeerInd;
- if ( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirTdlsDelAllPeerInd, sizeof(tSirTdlsDelAllPeerInd)))
+ pSirTdlsDelAllPeerInd = vos_mem_malloc(sizeof(tSirTdlsDelAllPeerInd));
+ if ( NULL == pSirTdlsDelAllPeerInd )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for eWNI_SME_TDLS_DEL_ALL_PEER_IND"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for eWNI_SME_TDLS_DEL_ALL_PEER_IND"));
return;
}
@@ -1552,9 +1576,10 @@
tSirMsgQ mmhMsg;
tSirMgmtTxCompletionInd *pSirMgmtTxCompletionInd;
- if ( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirMgmtTxCompletionInd, sizeof(tSirMgmtTxCompletionInd)))
+ pSirMgmtTxCompletionInd = vos_mem_malloc(sizeof(tSirMgmtTxCompletionInd));
+ if ( NULL == pSirMgmtTxCompletionInd )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for eWNI_SME_MGMT_FRM_TX_COMPLETION_IND"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for eWNI_SME_MGMT_FRM_TX_COMPLETION_IND"));
return;
}
@@ -1627,11 +1652,12 @@
* Deauthentication response to host triggered
* deauthentication.
*/
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeDeauthRsp, sizeof(tSirSmeDeauthRsp)))
+ pSirSmeDeauthRsp = vos_mem_malloc(sizeof(tSirSmeDeauthRsp));
+ if ( NULL == pSirSmeDeauthRsp )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_DEAUTH_RSP"));
+ FL("call to AllocateMemory failed for eWNI_SME_DEAUTH_RSP"));
return;
}
@@ -1643,7 +1669,7 @@
pSirSmeDeauthRsp->transactionId = smetransactionId;
pBuf = (tANI_U8 *) pSirSmeDeauthRsp->peerMacAddr;
- palCopyMemory( pMac->hHdd, pBuf, peerMacAddr, sizeof(tSirMacAddr));
+ vos_mem_copy( pBuf, peerMacAddr, sizeof(tSirMacAddr));
#ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM //FEATURE_WLAN_DIAG_SUPPORT
limDiagEventReport(pMac, WLAN_PE_DIAG_DEAUTH_RSP_EVENT,
@@ -1659,11 +1685,12 @@
* frame reception from peer entity or due to
* loss of link with peer entity.
*/
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeDeauthInd, sizeof(tSirSmeDeauthInd)))
+ pSirSmeDeauthInd = vos_mem_malloc(sizeof(tSirSmeDeauthInd));
+ if ( NULL == pSirSmeDeauthInd )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_DEAUTH_Ind"));
+ FL("call to AllocateMemory failed for eWNI_SME_DEAUTH_Ind"));
return;
}
@@ -1685,11 +1712,11 @@
pBuf += sizeof(tSirResultCodes);
//bssId
- palCopyMemory( pMac->hHdd, pBuf, psessionEntry->bssId, sizeof(tSirMacAddr));
+ vos_mem_copy( pBuf, psessionEntry->bssId, sizeof(tSirMacAddr));
pBuf += sizeof(tSirMacAddr);
//peerMacAddr
- palCopyMemory( pMac->hHdd, pSirSmeDeauthInd->peerMacAddr, peerMacAddr, sizeof(tSirMacAddr));
+ vos_mem_copy( pSirSmeDeauthInd->peerMacAddr, peerMacAddr, sizeof(tSirMacAddr));
#ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM //FEATURE_WLAN_DIAG_SUPPORT
limDiagEventReport(pMac, WLAN_PE_DIAG_DEAUTH_IND_EVENT,
@@ -1742,17 +1769,11 @@
{
tSirMsgQ mmhMsg;
tSirSmeWmStatusChangeNtf *pSirSmeWmStatusChangeNtf;
- eHalStatus status;
-
-
-
- status = palAllocateMemory( pMac->hHdd, (void **)&pSirSmeWmStatusChangeNtf,
- sizeof(tSirSmeWmStatusChangeNtf));
- if (status != eHAL_STATUS_SUCCESS)
+ pSirSmeWmStatusChangeNtf = vos_mem_malloc(sizeof(tSirSmeWmStatusChangeNtf));
+ if ( NULL == pSirSmeWmStatusChangeNtf )
{
limLog(pMac, LOGE,
- FL("call to palAllocateMemory failed for eWNI_SME_WM_STATUS_CHANGE_NTF, status = %d"),
- status);
+ FL("call to AllocateMemory failed for eWNI_SME_WM_STATUS_CHANGE_NTF"));
return;
}
@@ -1784,7 +1805,8 @@
pSirSmeWmStatusChangeNtf->sessionId = sessionId;
if(sizeof(pSirSmeWmStatusChangeNtf->statusChangeInfo) >= infoLen)
{
- palCopyMemory( pMac->hHdd, (tANI_U8 *)&pSirSmeWmStatusChangeNtf->statusChangeInfo, (tANI_U8 *)pStatusChangeInfo, infoLen);
+ vos_mem_copy( (tANI_U8 *)&pSirSmeWmStatusChangeNtf->statusChangeInfo,
+ (tANI_U8 *)pStatusChangeInfo, infoLen);
}
limLog(pMac, LOGE, FL("***---*** StatusChg: code 0x%x, length %d ***---***"),
statusChangeCode, infoLen);
@@ -1795,7 +1817,7 @@
MTRACE(macTraceMsgTx(pMac, sessionId, mmhMsg.type));
if (eSIR_SUCCESS != limSysProcessMmhMsgApi(pMac, &mmhMsg, ePROT))
{
- palFreeMemory(pMac->hHdd, (void *) pSirSmeWmStatusChangeNtf);
+ vos_mem_free(pSirSmeWmStatusChangeNtf);
limLog( pMac, LOGP, FL("limSysProcessMmhMsgApi failed"));
}
@@ -1839,11 +1861,12 @@
tSirMsgQ mmhMsg;
tSirSmeSetContextRsp *pSirSmeSetContextRsp;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeSetContextRsp, sizeof(tSirSmeSetContextRsp)))
+ pSirSmeSetContextRsp = vos_mem_malloc(sizeof(tSirSmeSetContextRsp));
+ if ( NULL == pSirSmeSetContextRsp )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for SmeSetContextRsp"));
+ FL("call to AllocateMemory failed for SmeSetContextRsp"));
return;
}
@@ -1854,7 +1877,7 @@
pBuf = pSirSmeSetContextRsp->peerMacAddr;
- palCopyMemory( pMac->hHdd, pBuf, (tANI_U8 *) peerMacAddr, sizeof(tSirMacAddr));
+ vos_mem_copy( pBuf, (tANI_U8 *) peerMacAddr, sizeof(tSirMacAddr));
pBuf += sizeof(tSirMacAddr);
@@ -1918,11 +1941,12 @@
tSirMsgQ mmhMsg;
tSirSmeRemoveKeyRsp *pSirSmeRemoveKeyRsp;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pSirSmeRemoveKeyRsp, sizeof(tSirSmeRemoveKeyRsp)))
+ pSirSmeRemoveKeyRsp = vos_mem_malloc(sizeof(tSirSmeRemoveKeyRsp));
+ if ( NULL == pSirSmeRemoveKeyRsp )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for SmeRemoveKeyRsp"));
+ FL("call to AllocateMemory failed for SmeRemoveKeyRsp"));
return;
}
@@ -1932,7 +1956,7 @@
if(psessionEntry != NULL)
{
pBuf = pSirSmeRemoveKeyRsp->peerMacAddr;
- palCopyMemory( pMac->hHdd, pBuf, (tANI_U8 *) peerMacAddr, sizeof(tSirMacAddr));
+ vos_mem_copy( pBuf, (tANI_U8 *) peerMacAddr, sizeof(tSirMacAddr));
pBuf += sizeof(tSirMacAddr);
limCopyU32(pBuf, resultCode);
}
@@ -1988,10 +2012,11 @@
tSirMsgQ mmhMsg;
tSirMbMsg *pMbMsg;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pMbMsg, sizeof(tSirMbMsg)))
+ pMbMsg = vos_mem_malloc(sizeof(tSirMbMsg));
+ if ( NULL == pMbMsg )
{
// Log error
- limLog(pMac, LOGP, FL("call to palAllocateMemory failed"));
+ limLog(pMac, LOGP, FL("call to AllocateMemory failed"));
return;
}
@@ -2068,11 +2093,12 @@
* and length of header itself
*/
val = pBssDescr->bssDescription.length + sizeof(tANI_U16) + sizeof(tANI_U32) + sizeof(tANI_U8);
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pNewBssInd, val))
+ pNewBssInd = vos_mem_malloc(val);
+ if ( NULL == pNewBssInd )
{
// Log error
limLog(pMac, LOGP,
- FL("call to palAllocateMemory failed for eWNI_SME_NEIGHBOR_BSS_IND"));
+ FL("call to AllocateMemory failed for eWNI_SME_NEIGHBOR_BSS_IND"));
return;
}
@@ -2081,7 +2107,7 @@
pNewBssInd->length = (tANI_U16) val;
pNewBssInd->sessionId = 0;
- palCopyMemory( pMac->hHdd, (tANI_U8 *) pNewBssInd->bssDescription,
+ vos_mem_copy( (tANI_U8 *) pNewBssInd->bssDescription,
(tANI_U8 *) &pBssDescr->bssDescription,
pBssDescr->bssDescription.length + sizeof(tANI_U16));
@@ -2112,19 +2138,19 @@
if (! rspReqd)
return;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&rsp, sizeof(tSirAddtsRsp)))
+ rsp = vos_mem_malloc(sizeof(tSirAddtsRsp));
+ if ( NULL == rsp )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for ADDTS_RSP"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for ADDTS_RSP"));
return;
}
- palZeroMemory( pMac->hHdd, (tANI_U8 *) rsp, sizeof(*rsp));
+ vos_mem_set( (tANI_U8 *) rsp, sizeof(*rsp), 0);
rsp->messageType = eWNI_SME_ADDTS_RSP;
rsp->rc = status;
rsp->rsp.status = (enum eSirMacStatusCodes) status;
- //palCopyMemory( pMac->hHdd, (tANI_U8 *) &rsp->rsp.tspec, (tANI_U8 *) &addts->tspec, sizeof(addts->tspec));
+ //vos_mem_copy( (tANI_U8 *) &rsp->rsp.tspec, (tANI_U8 *) &addts->tspec, sizeof(addts->tspec));
rsp->rsp.tspec = tspec;
-
/* Update SME session Id and transcation Id */
rsp->sessionId = smesessionId;
rsp->transactionId = smetransactionId;
@@ -2159,17 +2185,18 @@
addts->tspec.tsinfo.traffic.tsid,
addts->tspec.tsinfo.traffic.userPrio);
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&rsp, sizeof(tSirAddtsRsp)))
+ rsp = vos_mem_malloc(sizeof(tSirAddtsRsp));
+ if ( NULL == rsp )
{
// Log error
- limLog(pMac, LOGP, FL("palAllocateMemory failed for ADDTS_IND"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for ADDTS_IND"));
return;
}
- palZeroMemory( pMac->hHdd, (tANI_U8 *) rsp, sizeof(*rsp));
+ vos_mem_set( (tANI_U8 *) rsp, sizeof(*rsp), 0);
rsp->messageType = eWNI_SME_ADDTS_IND;
- palCopyMemory( pMac->hHdd, (tANI_U8 *) &rsp->rsp, (tANI_U8 *) addts, sizeof(*addts));
+ vos_mem_copy( (tANI_U8 *) &rsp->rsp, (tANI_U8 *) addts, sizeof(*addts));
mmhMsg.type = eWNI_SME_ADDTS_IND;
mmhMsg.bodyptr = rsp;
@@ -2192,20 +2219,21 @@
if (! delts->rspReqd)
return;
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&rsp, sizeof(tSirDeltsRsp)))
+ rsp = vos_mem_malloc(sizeof(tSirDeltsRsp));
+ if ( NULL == rsp )
{
// Log error
- limLog(pMac, LOGP, FL("palAllocateMemory failed for DELTS_RSP"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for DELTS_RSP"));
return;
}
- palZeroMemory( pMac->hHdd, (tANI_U8 *) rsp, sizeof(*rsp));
+ vos_mem_set( (tANI_U8 *) rsp, sizeof(*rsp), 0);
if(psessionEntry != NULL)
{
rsp->aid = delts->aid;
- palCopyMemory( pMac->hHdd, (tANI_U8 *) &rsp->macAddr[0], (tANI_U8 *) &delts->macAddr[0], 6);
- palCopyMemory( pMac->hHdd, (tANI_U8 *) &rsp->rsp, (tANI_U8 *) &delts->req, sizeof(tSirDeltsReqInfo));
+ vos_mem_copy( (tANI_U8 *) &rsp->macAddr[0], (tANI_U8 *) &delts->macAddr[0], 6);
+ vos_mem_copy( (tANI_U8 *) &rsp->rsp, (tANI_U8 *) &delts->req, sizeof(tSirDeltsReqInfo));
}
@@ -2245,18 +2273,19 @@
delts->tsinfo.traffic.tsid,
delts->tsinfo.traffic.userPrio);
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&rsp, sizeof(tSirDeltsRsp)))
+ rsp = vos_mem_malloc(sizeof(tSirDeltsRsp));
+ if ( NULL == rsp )
{
// Log error
- limLog(pMac, LOGP, FL("palAllocateMemory failed for DELTS_IND"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for DELTS_IND"));
return;
}
- palZeroMemory( pMac->hHdd, (tANI_U8 *) rsp, sizeof(*rsp));
+ vos_mem_set( (tANI_U8 *) rsp, sizeof(*rsp), 0);
rsp->messageType = eWNI_SME_DELTS_IND;
rsp->rc = eSIR_SUCCESS;
rsp->aid = aid;
- palCopyMemory( pMac->hHdd, (tANI_U8 *) &rsp->rsp, (tANI_U8 *) delts, sizeof(*delts));
+ vos_mem_copy( (tANI_U8 *) &rsp->rsp, (tANI_U8 *) delts, sizeof(*delts));
/* Update SME session Id and SME transaction Id */
@@ -2472,16 +2501,16 @@
tSirMsgQ mmhMsg;
tSmeIbssPeerInd *pNewPeerInd;
- if(eHAL_STATUS_SUCCESS !=
- palAllocateMemory(pMac->hHdd,(void * *) &pNewPeerInd,(sizeof(tSmeIbssPeerInd) + beaconLen)))
+ pNewPeerInd = vos_mem_malloc(sizeof(tSmeIbssPeerInd) + beaconLen);
+ if ( NULL == pNewPeerInd )
{
PELOGE(limLog(pMac, LOGE, FL("Failed to allocate memory"));)
return;
}
- palZeroMemory(pMac->hHdd, (void *) pNewPeerInd, (sizeof(tSmeIbssPeerInd) + beaconLen));
+ vos_mem_set((void *) pNewPeerInd, (sizeof(tSmeIbssPeerInd) + beaconLen), 0);
- palCopyMemory( pMac->hHdd, (tANI_U8 *) pNewPeerInd->peerAddr,
+ vos_mem_copy( (tANI_U8 *) pNewPeerInd->peerAddr,
peerMacAddr, sizeof(tSirMacAddr));
pNewPeerInd->staId= staIndex;
pNewPeerInd->ucastSig = ucastIdx;
@@ -2492,7 +2521,8 @@
if ( beacon != NULL )
{
- palCopyMemory(pMac->hHdd, (void*) ((tANI_U8*)pNewPeerInd+sizeof(tSmeIbssPeerInd)), (void*)beacon, beaconLen);
+ vos_mem_copy((void*) ((tANI_U8*)pNewPeerInd+sizeof(tSmeIbssPeerInd)),
+ (void*)beacon, beaconLen);
}
mmhMsg.type = msgType;
@@ -2522,12 +2552,13 @@
tpSirSmeExitBmpsInd pExitBmpsInd;
msgLen = sizeof(tSirSmeExitBmpsInd);
- if( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd, (void **)&pExitBmpsInd, msgLen ))
+ pExitBmpsInd = vos_mem_malloc(msgLen);
+ if ( NULL == pExitBmpsInd )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for PMC_EXIT_BMPS_IND "));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for PMC_EXIT_BMPS_IND "));
return;
}
- palZeroMemory(pMac->hHdd, pExitBmpsInd, msgLen);
+ vos_mem_set(pExitBmpsInd, msgLen, 0);
pExitBmpsInd->mesgType = eWNI_PMC_EXIT_BMPS_IND;
pExitBmpsInd->mesgLen = msgLen;
@@ -2605,7 +2636,7 @@
mmhMsg.type = eWNI_SME_FT_AGGR_QOS_RSP;
mmhMsg.bodyptr = aggrQosRsp;
mmhMsg.bodyval = 0;
- MTRACE(macTraceMsgTx(pMac, smesessionId , mmhMsg.type));
+ MTRACE(macTraceMsgTx(pMac, smesessionId, mmhMsg.type));
limSysProcessMmhMsgApi(pMac, &mmhMsg, ePROT);
return;
@@ -2666,15 +2697,15 @@
tSirMsgQ mmhMsg;
tSmeMaxAssocInd *pSmeMaxAssocInd;
- if(eHAL_STATUS_SUCCESS !=
- palAllocateMemory(pMac->hHdd,(void **)&pSmeMaxAssocInd, sizeof(tSmeMaxAssocInd)))
+ pSmeMaxAssocInd = vos_mem_malloc(sizeof(tSmeMaxAssocInd));
+ if ( NULL == pSmeMaxAssocInd )
{
PELOGE(limLog(pMac, LOGE, FL("Failed to allocate memory"));)
return;
}
- palZeroMemory(pMac->hHdd, (void *) pSmeMaxAssocInd, sizeof(tSmeMaxAssocInd));
- palCopyMemory( pMac->hHdd, (tANI_U8 *)pSmeMaxAssocInd->peerMac,
- (tANI_U8 *)peerMacAddr, sizeof(tSirMacAddr));
+ vos_mem_set((void *) pSmeMaxAssocInd, sizeof(tSmeMaxAssocInd),0);
+ vos_mem_copy( (tANI_U8 *)pSmeMaxAssocInd->peerMac,
+ (tANI_U8 *)peerMacAddr, sizeof(tSirMacAddr));
pSmeMaxAssocInd->mesgType = eWNI_SME_MAX_ASSOC_EXCEEDED;
pSmeMaxAssocInd->mesgLen = sizeof(tSmeMaxAssocInd);
pSmeMaxAssocInd->sessionId = smesessionId;
@@ -2708,11 +2739,10 @@
tSirMsgQ mmhMsg;
tSirSmeCandidateFoundInd *pSirSmeCandidateFoundInd;
- if ( eHAL_STATUS_SUCCESS != palAllocateMemory( pMac->hHdd,
- (void **)&pSirSmeCandidateFoundInd,
- sizeof(tSirSmeCandidateFoundInd)))
+ pSirSmeCandidateFoundInd = vos_mem_malloc(sizeof(tSirSmeCandidateFoundInd));
+ if ( NULL == pSirSmeCandidateFoundInd )
{
- limLog(pMac, LOGP, FL("palAllocateMemory failed for eWNI_SME_CANDIDATE_FOUND_IND\n"));
+ limLog(pMac, LOGP, FL("AllocateMemory failed for eWNI_SME_CANDIDATE_FOUND_IND\n"));
return;
}