wlan: Zero Value Initialization of Memory.
Correction of Zero value Initialization.
If the memory is not initialized to Zero
values, there is a high chance of sending
down inappropriate values to the firmware.
The FW may consume the values and it could
lead to a stability issue.
Change-Id: I27ef9400f70dbc730e0845c57ef356a342322706
CRs-Fixed: 493853
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index bf5e37b..2884177 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -23841,7 +23841,7 @@
if (( WDI_STATUS_SUCCESS != WDI_GetMessageBuffer( pWDICtx, WDI_ROAM_SCAN_OFFLOAD_REQ,
sizeof(tRoamCandidateListParams),
&pSendBuffer, &usDataOffset, &usSendSize))||
- ( usSendSize < (usDataOffset + sizeof(tpRoamCandidateListParams) )))
+ ( usSendSize < (usDataOffset + sizeof(tRoamCandidateListParams) )))
{
WPAL_TRACE( eWLAN_MODULE_DAL_CTRL, eWLAN_PAL_TRACE_LEVEL_WARN,
"Unable to get send buffer in Start Roam Candidate Lookup Req %x ",
@@ -23850,7 +23850,7 @@
return WDI_STATUS_E_FAILURE;
}
pRoamCandidateListParams = (tpRoamCandidateListParams)(pSendBuffer + usDataOffset);
- wpalMemoryZero(pRoamCandidateListParams, sizeof(tpRoamCandidateListParams));
+ wpalMemoryZero(pRoamCandidateListParams, sizeof(tRoamCandidateListParams));
pRoamCandidateListParams->RoamScanOffloadEnabled = pwdiRoamScanOffloadReqParams->wdiRoamOffloadScanInfo.RoamScanOffloadEnabled;
wpalMemoryCopy(pRoamCandidateListParams->ConnectedNetwork.currAPbssid,
pwdiRoamScanOffloadReqParams->wdiRoamOffloadScanInfo.ConnectedNetwork.currAPbssid,