qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSirSmeDisassocReq
Replace tSirMacAddr with cdf_mac_addr in tSirSmeDisassocReq. Change-Id: I9d0b77e0ce624c48ca0fea2774c0f63285793cee CRs-Fixed: 898864
This commit is contained in:

کامیت شده توسط
Akash Patel

والد
f06a5cf8c8
کامیت
7907a2402f
@@ -1241,8 +1241,8 @@ typedef struct sSirSmeDisassocReq {
|
|||||||
uint16_t length;
|
uint16_t length;
|
||||||
uint8_t sessionId; /* Session ID */
|
uint8_t sessionId; /* Session ID */
|
||||||
uint16_t transactionId; /* Transaction ID for cmd */
|
uint16_t transactionId; /* Transaction ID for cmd */
|
||||||
tSirMacAddr bssId; /* Peer BSSID */
|
struct cdf_mac_addr bssid; /* Peer BSSID */
|
||||||
tSirMacAddr peerMacAddr;
|
struct cdf_mac_addr peer_macaddr;
|
||||||
uint16_t reasonCode;
|
uint16_t reasonCode;
|
||||||
/* This flag tells LIM whether to send the disassoc OTA or not */
|
/* This flag tells LIM whether to send the disassoc OTA or not */
|
||||||
/* This will be set in while handing off from one AP to other */
|
/* This will be set in while handing off from one AP to other */
|
||||||
|
@@ -2396,13 +2396,13 @@ static void __lim_process_sme_disassoc_req(tpAniSirGlobal pMac, uint32_t *pMsgBu
|
|||||||
}
|
}
|
||||||
|
|
||||||
psessionEntry = pe_find_session_by_bssid(pMac,
|
psessionEntry = pe_find_session_by_bssid(pMac,
|
||||||
smeDisassocReq.bssId,
|
smeDisassocReq.bssid.bytes,
|
||||||
&sessionId);
|
&sessionId);
|
||||||
if (psessionEntry == NULL) {
|
if (psessionEntry == NULL) {
|
||||||
lim_log(pMac, LOGE,
|
lim_log(pMac, LOGE,
|
||||||
FL("session does not exist for given bssId "
|
FL("session does not exist for given bssId "
|
||||||
MAC_ADDRESS_STR),
|
MAC_ADDRESS_STR),
|
||||||
MAC_ADDR_ARRAY(smeDisassocReq.bssId));
|
MAC_ADDR_ARRAY(smeDisassocReq.bssid.bytes));
|
||||||
retCode = eSIR_SME_INVALID_PARAMETERS;
|
retCode = eSIR_SME_INVALID_PARAMETERS;
|
||||||
disassocTrigger = eLIM_HOST_DISASSOC;
|
disassocTrigger = eLIM_HOST_DISASSOC;
|
||||||
goto sendDisassoc;
|
goto sendDisassoc;
|
||||||
@@ -2412,7 +2412,7 @@ static void __lim_process_sme_disassoc_req(tpAniSirGlobal pMac, uint32_t *pMsgBu
|
|||||||
MAC_ADDRESS_STR), smesessionId,
|
MAC_ADDRESS_STR), smesessionId,
|
||||||
GET_LIM_SYSTEM_ROLE(psessionEntry), smeDisassocReq.reasonCode,
|
GET_LIM_SYSTEM_ROLE(psessionEntry), smeDisassocReq.reasonCode,
|
||||||
pMac->lim.gLimSmeState,
|
pMac->lim.gLimSmeState,
|
||||||
MAC_ADDR_ARRAY(smeDisassocReq.peerMacAddr));
|
MAC_ADDR_ARRAY(smeDisassocReq.peer_macaddr.bytes));
|
||||||
|
|
||||||
#ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM /* FEATURE_WLAN_DIAG_SUPPORT */
|
#ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM /* FEATURE_WLAN_DIAG_SUPPORT */
|
||||||
lim_diag_event_report(pMac, WLAN_PE_DIAG_DISASSOC_REQ_EVENT, psessionEntry,
|
lim_diag_event_report(pMac, WLAN_PE_DIAG_DISASSOC_REQ_EVENT, psessionEntry,
|
||||||
@@ -2549,9 +2549,8 @@ static void __lim_process_sme_disassoc_req(tpAniSirGlobal pMac, uint32_t *pMsgBu
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cdf_mem_copy((uint8_t *) &pMlmDisassocReq->peer_macaddr,
|
cdf_copy_macaddr(&pMlmDisassocReq->peer_macaddr,
|
||||||
(uint8_t *) &smeDisassocReq.peerMacAddr,
|
&smeDisassocReq.peer_macaddr);
|
||||||
sizeof(tSirMacAddr));
|
|
||||||
|
|
||||||
pMlmDisassocReq->reasonCode = reasonCode;
|
pMlmDisassocReq->reasonCode = reasonCode;
|
||||||
pMlmDisassocReq->disassocTrigger = disassocTrigger;
|
pMlmDisassocReq->disassocTrigger = disassocTrigger;
|
||||||
@@ -2565,16 +2564,17 @@ static void __lim_process_sme_disassoc_req(tpAniSirGlobal pMac, uint32_t *pMsgBu
|
|||||||
|
|
||||||
sendDisassoc:
|
sendDisassoc:
|
||||||
if (psessionEntry)
|
if (psessionEntry)
|
||||||
lim_send_sme_disassoc_ntf(pMac, smeDisassocReq.peerMacAddr,
|
lim_send_sme_disassoc_ntf(pMac,
|
||||||
|
smeDisassocReq.peer_macaddr.bytes,
|
||||||
retCode,
|
retCode,
|
||||||
disassocTrigger,
|
disassocTrigger,
|
||||||
1, smesessionId, smetransactionId,
|
1, smesessionId, smetransactionId,
|
||||||
psessionEntry);
|
psessionEntry);
|
||||||
else
|
else
|
||||||
lim_send_sme_disassoc_ntf(pMac, smeDisassocReq.peerMacAddr,
|
lim_send_sme_disassoc_ntf(pMac,
|
||||||
retCode,
|
smeDisassocReq.peer_macaddr.bytes,
|
||||||
disassocTrigger,
|
retCode, disassocTrigger, 1,
|
||||||
1, smesessionId, smetransactionId, NULL);
|
smesessionId, smetransactionId, NULL);
|
||||||
|
|
||||||
} /*** end __lim_process_sme_disassoc_req() ***/
|
} /*** end __lim_process_sme_disassoc_req() ***/
|
||||||
|
|
||||||
|
@@ -585,8 +585,8 @@ lim_is_sme_disassoc_req_valid(tpAniSirGlobal pMac,
|
|||||||
tpSirSmeDisassocReq pDisassocReq,
|
tpSirSmeDisassocReq pDisassocReq,
|
||||||
tpPESession psessionEntry)
|
tpPESession psessionEntry)
|
||||||
{
|
{
|
||||||
if (lim_is_group_addr(pDisassocReq->peerMacAddr) &&
|
if (cdf_is_macaddr_group(&pDisassocReq->peer_macaddr) &&
|
||||||
!lim_is_addr_bc(pDisassocReq->peerMacAddr))
|
!cdf_is_macaddr_broadcast(&pDisassocReq->peer_macaddr))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -14052,19 +14052,17 @@ CDF_STATUS csr_send_mb_disassoc_req_msg(tpAniSirGlobal pMac, uint32_t sessionId,
|
|||||||
pMsg->transactionId = 0;
|
pMsg->transactionId = 0;
|
||||||
if ((pSession->pCurRoamProfile != NULL)
|
if ((pSession->pCurRoamProfile != NULL)
|
||||||
&& (CSR_IS_INFRA_AP(pSession->pCurRoamProfile))) {
|
&& (CSR_IS_INFRA_AP(pSession->pCurRoamProfile))) {
|
||||||
cdf_mem_copy(&pMsg->bssId,
|
cdf_mem_copy(&pMsg->bssid.bytes,
|
||||||
&pSession->selfMacAddr,
|
&pSession->selfMacAddr,
|
||||||
sizeof(tSirMacAddr));
|
CDF_MAC_ADDR_SIZE);
|
||||||
cdf_mem_copy(&pMsg->peerMacAddr,
|
cdf_mem_copy(&pMsg->peer_macaddr.bytes,
|
||||||
bssId,
|
bssId,
|
||||||
sizeof(tSirMacAddr));
|
CDF_MAC_ADDR_SIZE);
|
||||||
} else {
|
} else {
|
||||||
cdf_mem_copy(&pMsg->bssId,
|
cdf_mem_copy(&pMsg->bssid.bytes,
|
||||||
bssId,
|
bssId, CDF_MAC_ADDR_SIZE);
|
||||||
sizeof(tSirMacAddr));
|
cdf_mem_copy(&pMsg->peer_macaddr.bytes,
|
||||||
cdf_mem_copy(&pMsg->peerMacAddr,
|
bssId, CDF_MAC_ADDR_SIZE);
|
||||||
bssId,
|
|
||||||
sizeof(tSirMacAddr));
|
|
||||||
}
|
}
|
||||||
pMsg->reasonCode = reasonCode;
|
pMsg->reasonCode = reasonCode;
|
||||||
/*
|
/*
|
||||||
|
مرجع در شماره جدید
Block a user