wlan: Clear any key values in the memory.
Clear the key values from the memory when session is
being removed and/or when no need of the key values.
Change-Id: I5914d6521855c021d1d9e2f268771a4113e5f6ef
CRs-Fixed: 737934
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index fddb8ab..9a5d705 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -8579,7 +8579,7 @@
pWDICtx->wdiReqStatusCB = pwdiConfigBSSParams->wdiReqStatusCB;
pWDICtx->pReqStatusUserData = pwdiConfigBSSParams->pUserData;
-
+ wpalMemoryZero(&halConfigBssReqMsg, sizeof(halConfigBssReqMsg));
/*-------------------------------------------------------------------------
Send Config BSS Request to HAL
-------------------------------------------------------------------------*/
@@ -8925,6 +8925,7 @@
pwdiPostAssocParams,
sizeof(pWDICtx->wdiCachedPostAssocReq));
+ wpalMemoryZero(&halPostAssocReqMsg, sizeof(halPostAssocReqMsg));
/*-------------------------------------------------------------------------
Send Post Assoc Request to HAL
-------------------------------------------------------------------------*/
@@ -9482,7 +9483,7 @@
pWDICtx->wdiReqStatusCB = pwdiSetSTAKeyParams->wdiReqStatusCB;
pWDICtx->pReqStatusUserData = pwdiSetSTAKeyParams->pUserData;
-
+ wpalMemoryZero(&halSetStaKeyReqMsg, sizeof(halSetStaKeyReqMsg));
/*-------------------------------------------------------------------------
Send Set STA Key Request to HAL
-------------------------------------------------------------------------*/