wlan: Pass correct parameter to malloc.
In sme_getBcnMissRate() pass correct size to vos_mem_alloc(),
while allocating memory for 'pMsg'.
Change-Id: I9c50ed48bd01ba16dcb704b8d356e7bfa3c07e52
CRs-Fixed: 691683
diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c
index fcf5d1b..6cb715a 100644
--- a/CORE/SME/src/sme_common/sme_Api.c
+++ b/CORE/SME/src/sme_common/sme_Api.c
@@ -1859,7 +1859,7 @@
return eHAL_STATUS_FAILURE;
}
- pMsg = (tSirBcnMissRateReq *) vos_mem_malloc(sizeof(tSirTxPerTrackingParam));
+ pMsg = (tSirBcnMissRateReq *) vos_mem_malloc(sizeof(tSirBcnMissRateReq));
if (NULL == pMsg)
{
smsLog(pMac, LOGE, FL("failed to allocated memory"));