mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirUpdateAPWPSIEsReq
Replace tSirMacAddr with cdf_mac_addr in tSirUpdateAPWPSIEsReq. Change-Id: Ia6d8ea2523257caac541c84d10b7e6a81afc606b CRs-Fixed: 898864
This commit is contained in:
parent
8e717d30cf
commit
5d4860029f
3 changed files with 15 additions and 18 deletions
|
|
@ -2446,7 +2446,7 @@ typedef struct sSirUpdateAPWPSIEsReq {
|
|||
uint16_t messageType; /* eWNI_SME_UPDATE_APWPSIE_REQ */
|
||||
uint16_t length;
|
||||
uint16_t transactionId; /* Transaction ID for cmd */
|
||||
tSirMacAddr bssId; /* BSSID */
|
||||
struct cdf_mac_addr bssid; /* BSSID */
|
||||
uint8_t sessionId; /* Session ID */
|
||||
tSirAPWPSIEs APWPSIEs;
|
||||
} tSirUpdateAPWPSIEsReq, *tpSirUpdateAPWPSIEsReq;
|
||||
|
|
|
|||
|
|
@ -4106,7 +4106,7 @@ __lim_process_sme_update_apwpsi_es(tpAniSirGlobal pMac, uint32_t *pMsgBuf)
|
|||
sizeof(struct sSirUpdateAPWPSIEsReq));
|
||||
|
||||
psessionEntry = pe_find_session_by_bssid(pMac,
|
||||
pUpdateAPWPSIEsReq->bssId,
|
||||
pUpdateAPWPSIEsReq->bssid.bytes,
|
||||
&sessionId);
|
||||
if (psessionEntry == NULL) {
|
||||
lim_log(pMac, LOGW,
|
||||
|
|
|
|||
|
|
@ -17603,26 +17603,23 @@ CDF_STATUS csr_roam_update_apwpsie(tpAniSirGlobal pMac, uint32_t sessionId,
|
|||
tCsrRoamSession *pSession = CSR_GET_SESSION(pMac, sessionId);
|
||||
if (NULL == pSession) {
|
||||
sms_log(pMac, LOGE,
|
||||
FL(" Session does not exist for session id %d"),
|
||||
FL("Session does not exist for session id %d"),
|
||||
sessionId);
|
||||
return CDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
do {
|
||||
pMsg = cdf_mem_malloc(sizeof(tSirUpdateAPWPSIEsReq));
|
||||
if (NULL == pMsg)
|
||||
return CDF_STATUS_E_NOMEM;
|
||||
cdf_mem_set(pMsg, sizeof(tSirUpdateAPWPSIEsReq), 0);
|
||||
pMsg->messageType = eWNI_SME_UPDATE_APWPSIE_REQ;
|
||||
pMsg->transactionId = 0;
|
||||
cdf_mem_copy(pMsg->bssId, &pSession->selfMacAddr,
|
||||
sizeof(tSirMacAddr));
|
||||
pMsg->sessionId = sessionId;
|
||||
cdf_mem_copy(&pMsg->APWPSIEs, pAPWPSIES,
|
||||
sizeof(tSirAPWPSIEs));
|
||||
pMsg->length = sizeof(struct sSirUpdateAPWPSIEsReq);
|
||||
status = cds_send_mb_message_to_mac(pMsg);
|
||||
} while (0);
|
||||
pMsg = cdf_mem_malloc(sizeof(*pMsg));
|
||||
if (NULL == pMsg)
|
||||
return CDF_STATUS_E_NOMEM;
|
||||
|
||||
pMsg->messageType = eWNI_SME_UPDATE_APWPSIE_REQ;
|
||||
pMsg->transactionId = 0;
|
||||
cdf_copy_macaddr(&pMsg->bssid, &pSession->selfMacAddr);
|
||||
pMsg->sessionId = sessionId;
|
||||
cdf_mem_copy(&pMsg->APWPSIEs, pAPWPSIES, sizeof(tSirAPWPSIEs));
|
||||
pMsg->length = sizeof(*pMsg);
|
||||
status = cds_send_mb_message_to_mac(pMsg);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue