qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in sSirSmeSetContext Req/Rsp
Replace tSirMacAddr with cdf_mac_addr in struct sSirSmeSetContext Req/Rsp.
Change-Id: If4f75c162dbb4156d462a927033f94b9170a518f
CRs-Fixed: 898864
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
index 1af8bad..1eab1ec 100644
--- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
@@ -1568,13 +1568,11 @@
*/
void
lim_send_sme_set_context_rsp(tpAniSirGlobal pMac,
- tSirMacAddr peerMacAddr, uint16_t aid,
+ struct cdf_mac_addr peer_macaddr, uint16_t aid,
tSirResultCodes resultCode,
tpPESession psessionEntry, uint8_t smesessionId,
uint16_t smetransactionId)
{
-
- uint8_t *pBuf;
tSirMsgQ mmhMsg;
tSirSmeSetContextRsp *pSirSmeSetContextRsp;
@@ -1592,10 +1590,7 @@
pSirSmeSetContextRsp->length = sizeof(tSirSmeSetContextRsp);
pSirSmeSetContextRsp->statusCode = resultCode;
- pBuf = pSirSmeSetContextRsp->peerMacAddr;
-
- cdf_mem_copy(pBuf, (uint8_t *) peerMacAddr, sizeof(tSirMacAddr));
- pBuf += sizeof(tSirMacAddr);
+ cdf_copy_macaddr(&pSirSmeSetContextRsp->peer_macaddr, &peer_macaddr);
/* Update SME session and transaction Id */
pSirSmeSetContextRsp->sessionId = smesessionId;