qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in tSmeIbssPeerInd
Replace tSirMacAddr with cdf_mac_addr in tSmeIbssPeerInd and tSirIbssPeerInactivityInd. Change-Id: Ie83aa414e312431aeb7f730a3f8027ea960acc36 CRs-Fixed: 898864
This commit is contained in:
parent
61de4bbbfe
commit
01d1c3c1b5
@ -2080,7 +2080,7 @@ typedef struct sSmeIbssPeerInd {
|
||||
uint16_t mesgLen;
|
||||
uint8_t sessionId;
|
||||
|
||||
tSirMacAddr peerAddr;
|
||||
struct cdf_mac_addr peer_addr;
|
||||
uint16_t staId;
|
||||
|
||||
/*
|
||||
@ -2099,7 +2099,7 @@ typedef struct sSmeIbssPeerInd {
|
||||
typedef struct sSirIbssPeerInactivityInd {
|
||||
uint8_t bssIdx;
|
||||
uint8_t staIdx;
|
||||
tSirMacAddr peerAddr;
|
||||
struct cdf_mac_addr peer_addr;
|
||||
} tSirIbssPeerInactivityInd, *tpSirIbssPeerInactivityInd;
|
||||
|
||||
typedef struct sLimScanChn {
|
||||
|
@ -1784,8 +1784,7 @@ __lim_ibss_peer_inactivity_handler(tpAniSirGlobal pMac,
|
||||
|
||||
/* delete the peer for which heartbeat is observed */
|
||||
__lim_ibss_search_and_delete_peer(pMac, psessionEntry,
|
||||
peerInactivityInd->peerAddr);
|
||||
|
||||
peerInactivityInd->peer_addr.bytes);
|
||||
}
|
||||
|
||||
/** -------------------------------------------------------------
|
||||
|
@ -1988,8 +1988,8 @@ lim_send_sme_ibss_peer_ind(tpAniSirGlobal pMac,
|
||||
cdf_mem_set((void *)pNewPeerInd, (sizeof(tSmeIbssPeerInd) + beaconLen),
|
||||
0);
|
||||
|
||||
cdf_mem_copy((uint8_t *) pNewPeerInd->peerAddr,
|
||||
peerMacAddr, sizeof(tSirMacAddr));
|
||||
cdf_mem_copy((uint8_t *) pNewPeerInd->peer_addr.bytes,
|
||||
peerMacAddr, CDF_MAC_ADDR_SIZE);
|
||||
pNewPeerInd->staId = staIndex;
|
||||
pNewPeerInd->ucastSig = ucastIdx;
|
||||
pNewPeerInd->bcastSig = bcastIdx;
|
||||
|
@ -6007,8 +6007,8 @@ static void csr_roam_process_start_bss_success(tpAniSirGlobal mac_ctx,
|
||||
WLAN_IBSS_EVENT_JOIN_IBSS_RSP;
|
||||
}
|
||||
if (bss_desc) {
|
||||
cdf_mem_copy(ibss_log->bssid,
|
||||
bss_desc->bssId, 6);
|
||||
cdf_mem_copy(ibss_log->bssid.bytes,
|
||||
bss_desc->bssId, CDF_MAC_ADDR_SIZE);
|
||||
ibss_log->operatingChannel =
|
||||
bss_desc->channelId;
|
||||
}
|
||||
@ -9061,8 +9061,7 @@ void csr_roaming_state_msg_processor(tpAniSirGlobal pMac, void *pMsgBuf)
|
||||
roamInfo.staId = (uint8_t) pIbssPeerInd->staId;
|
||||
roamInfo.ucastSig = (uint8_t) pIbssPeerInd->ucastSig;
|
||||
roamInfo.bcastSig = (uint8_t) pIbssPeerInd->bcastSig;
|
||||
cdf_mem_copy(&roamInfo.peerMac, pIbssPeerInd->peerAddr,
|
||||
sizeof(struct cdf_mac_addr));
|
||||
cdf_copy_macaddr(&roamInfo.peerMac, &pIbssPeerInd->peer_addr);
|
||||
csr_roam_call_callback(pMac, pSmeRsp->sessionId, &roamInfo, 0,
|
||||
eCSR_ROAM_CONNECT_STATUS_UPDATE,
|
||||
eCSR_ROAM_RESULT_IBSS_PEER_DEPARTED);
|
||||
@ -10420,8 +10419,7 @@ csr_roam_diag_joined_new_bss(tpAniSirGlobal mac_ctx,
|
||||
return;
|
||||
pIbssLog->eventId = WLAN_IBSS_EVENT_COALESCING;
|
||||
if (pNewBss) {
|
||||
cdf_mem_copy(pIbssLog->bssid, pNewBss->bssId.bytes,
|
||||
CDF_MAC_ADDR_SIZE);
|
||||
cdf_copy_macaddr(&pIbssLog->bssid, &pNewBss->bssId);
|
||||
if (pNewBss->ssId.length)
|
||||
cdf_mem_copy(pIbssLog->ssid, pNewBss->ssId.ssId,
|
||||
pNewBss->ssId.length);
|
||||
@ -10610,7 +10608,8 @@ csr_roam_chk_lnk_ibss_new_peer_ind(tpAniSirGlobal mac_ctx, tSirSmeRsp *msg_ptr)
|
||||
LOG_WLAN_IBSS_C);
|
||||
if (pIbssLog) {
|
||||
pIbssLog->eventId = WLAN_IBSS_EVENT_PEER_JOIN;
|
||||
cdf_mem_copy(pIbssLog->peerMacAddr, &pIbssPeerInd->peerAddr, 6);
|
||||
cdf_copy_macaddr(&pIbssLog->peer_macaddr,
|
||||
&pIbssPeerInd->peer_addr);
|
||||
WLAN_HOST_DIAG_LOG_REPORT(pIbssLog);
|
||||
}
|
||||
#endif /* FEATURE_WLAN_DIAG_SUPPORT_CSR */
|
||||
@ -10632,8 +10631,7 @@ csr_roam_chk_lnk_ibss_new_peer_ind(tpAniSirGlobal mac_ctx, tSirSmeRsp *msg_ptr)
|
||||
sms_log(mac_ctx, LOGW, FL("CSR: connected BSS is empty"));
|
||||
goto callback_and_free;
|
||||
}
|
||||
cdf_mem_copy(&roam_info.peerMac, pIbssPeerInd->peerAddr,
|
||||
sizeof(struct cdf_mac_addr));
|
||||
cdf_copy_macaddr(&roam_info.peerMac, &pIbssPeerInd->peer_addr);
|
||||
cdf_mem_copy(&roam_info.bssid, session->pConnectBssDesc->bssId,
|
||||
sizeof(struct cdf_mac_addr));
|
||||
if (pIbssPeerInd->mesgLen > sizeof(tSmeIbssPeerInd)) {
|
||||
@ -10676,7 +10674,8 @@ csr_roam_chk_lnk_ibss_new_peer_ind(tpAniSirGlobal mac_ctx, tSirSmeRsp *msg_ptr)
|
||||
/* NO keys. these key parameters don't matter */
|
||||
csr_roam_issue_set_context_req(mac_ctx, sessionId,
|
||||
session->connectedProfile.EncryptionType,
|
||||
session->pConnectBssDesc, &(pIbssPeerInd->peerAddr),
|
||||
session->pConnectBssDesc,
|
||||
&pIbssPeerInd->peer_addr.bytes,
|
||||
false, true, eSIR_TX_RX, 0, 0, NULL, 0);
|
||||
}
|
||||
|
||||
@ -10718,8 +10717,8 @@ csr_roam_chk_lnk_ibss_peer_departed_ind(tpAniSirGlobal mac_ctx,
|
||||
if (pIbssLog) {
|
||||
pIbssLog->eventId = WLAN_IBSS_EVENT_PEER_LEAVE;
|
||||
if (pIbssPeerInd) {
|
||||
cdf_mem_copy(pIbssLog->peerMacAddr,
|
||||
&pIbssPeerInd->peerAddr, 6);
|
||||
cdf_copy_macaddr(&pIbssLog->peer_macaddr,
|
||||
&pIbssPeerInd->peer_addr);
|
||||
}
|
||||
WLAN_HOST_DIAG_LOG_REPORT(pIbssLog);
|
||||
}
|
||||
@ -10729,8 +10728,7 @@ csr_roam_chk_lnk_ibss_peer_departed_ind(tpAniSirGlobal mac_ctx,
|
||||
roam_info.staId = (uint8_t) pIbssPeerInd->staId;
|
||||
roam_info.ucastSig = (uint8_t) pIbssPeerInd->ucastSig;
|
||||
roam_info.bcastSig = (uint8_t) pIbssPeerInd->bcastSig;
|
||||
cdf_mem_copy(&roam_info.peerMac, pIbssPeerInd->peerAddr,
|
||||
sizeof(struct cdf_mac_addr));
|
||||
cdf_copy_macaddr(&roam_info.peerMac, &pIbssPeerInd->peer_addr);
|
||||
csr_roam_call_callback(mac_ctx, sessionId, &roam_info, 0,
|
||||
eCSR_ROAM_CONNECT_STATUS_UPDATE,
|
||||
eCSR_ROAM_RESULT_IBSS_PEER_DEPARTED);
|
||||
@ -12547,8 +12545,8 @@ CDF_STATUS csr_roam_issue_start_bss(tpAniSirGlobal pMac, uint32_t sessionId,
|
||||
if (pBssDesc) {
|
||||
pIbssLog->eventId =
|
||||
WLAN_IBSS_EVENT_JOIN_IBSS_REQ;
|
||||
cdf_mem_copy(pIbssLog->bssid, pBssDesc->bssId,
|
||||
6);
|
||||
cdf_mem_copy(pIbssLog->bssid.bytes,
|
||||
pBssDesc->bssId, CDF_MAC_ADDR_SIZE);
|
||||
} else {
|
||||
pIbssLog->eventId =
|
||||
WLAN_IBSS_EVENT_START_IBSS_REQ;
|
||||
|
@ -98,8 +98,8 @@ typedef struct {
|
||||
log_hdr_type hdr;
|
||||
uint8_t eventId;
|
||||
uint8_t channelSetting;
|
||||
uint8_t bssid[HOST_LOG_MAX_BSSID_SIZE];
|
||||
uint8_t peerMacAddr[HOST_LOG_MAX_BSSID_SIZE];
|
||||
struct cdf_mac_addr bssid;
|
||||
struct cdf_mac_addr peer_macaddr;
|
||||
uint8_t ssid[HOST_LOG_MAX_SSID_SIZE];
|
||||
uint8_t operatingChannel;
|
||||
uint8_t beaconInterval;
|
||||
|
@ -341,7 +341,7 @@ int wma_peer_sta_kickout_event_handler(void *handle, u8 *event, u32 len)
|
||||
}
|
||||
|
||||
p_inactivity->staIdx = peer_id;
|
||||
cdf_mem_copy(p_inactivity->peerAddr, macaddr,
|
||||
cdf_mem_copy(p_inactivity->peer_addr.bytes, macaddr,
|
||||
IEEE80211_ADDR_LEN);
|
||||
wma_send_msg(wma, WMA_IBSS_PEER_INACTIVITY_IND,
|
||||
(void *)p_inactivity, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user