qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in sSirSmeStartBssReq
Replace tSirMacAddr with cdf_mac_addr in struct sSirSmeStartBssReq. Change-Id: I76c09e0c865ada1fe53a9e4779a32b19291fbfda CRs-Fixed: 898864
This commit is contained in:

committed by
Satish Singh

parent
c768199001
commit
d8af4a6b62
@@ -557,8 +557,8 @@ typedef struct sSirSmeStartBssReq {
|
|||||||
uint16_t length;
|
uint16_t length;
|
||||||
uint8_t sessionId; /* Added for BT-AMP Support */
|
uint8_t sessionId; /* Added for BT-AMP Support */
|
||||||
uint16_t transactionId; /* Added for BT-AMP Support */
|
uint16_t transactionId; /* Added for BT-AMP Support */
|
||||||
tSirMacAddr bssId; /* Added for BT-AMP Support */
|
struct cdf_mac_addr bssid; /* Added for BT-AMP Support */
|
||||||
tSirMacAddr selfMacAddr; /* Added for BT-AMP Support */
|
struct cdf_mac_addr self_macaddr; /* Added for BT-AMP Support */
|
||||||
uint16_t beaconInterval; /* Added for BT-AMP Support */
|
uint16_t beaconInterval; /* Added for BT-AMP Support */
|
||||||
uint8_t dot11mode;
|
uint8_t dot11mode;
|
||||||
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
|
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
|
||||||
|
@@ -669,7 +669,7 @@ __lim_handle_sme_start_bss_request(tpAniSirGlobal mac_ctx, uint32_t *msg_buf)
|
|||||||
* If session is not existed, then create a new session
|
* If session is not existed, then create a new session
|
||||||
*/
|
*/
|
||||||
session = pe_find_session_by_bssid(mac_ctx,
|
session = pe_find_session_by_bssid(mac_ctx,
|
||||||
sme_start_bss_req->bssId, &session_id);
|
sme_start_bss_req->bssid.bytes, &session_id);
|
||||||
if (session != NULL) {
|
if (session != NULL) {
|
||||||
lim_log(mac_ctx, LOGW,
|
lim_log(mac_ctx, LOGW,
|
||||||
FL("Session Already exists for given BSSID"));
|
FL("Session Already exists for given BSSID"));
|
||||||
@@ -678,7 +678,7 @@ __lim_handle_sme_start_bss_request(tpAniSirGlobal mac_ctx, uint32_t *msg_buf)
|
|||||||
goto free;
|
goto free;
|
||||||
} else {
|
} else {
|
||||||
session = pe_create_session(mac_ctx,
|
session = pe_create_session(mac_ctx,
|
||||||
sme_start_bss_req->bssId,
|
sme_start_bss_req->bssid.bytes,
|
||||||
&session_id, mac_ctx->lim.maxStation,
|
&session_id, mac_ctx->lim.maxStation,
|
||||||
sme_start_bss_req->bssType);
|
sme_start_bss_req->bssType);
|
||||||
if (session == NULL) {
|
if (session == NULL) {
|
||||||
@@ -726,7 +726,7 @@ __lim_handle_sme_start_bss_request(tpAniSirGlobal mac_ctx, uint32_t *msg_buf)
|
|||||||
sizeof(session->htConfig));
|
sizeof(session->htConfig));
|
||||||
|
|
||||||
sir_copy_mac_addr(session->selfMacAddr,
|
sir_copy_mac_addr(session->selfMacAddr,
|
||||||
sme_start_bss_req->selfMacAddr);
|
sme_start_bss_req->self_macaddr.bytes);
|
||||||
|
|
||||||
/* Copy SSID to session table */
|
/* Copy SSID to session table */
|
||||||
cdf_mem_copy((uint8_t *) &session->ssId,
|
cdf_mem_copy((uint8_t *) &session->ssId,
|
||||||
|
@@ -14687,11 +14687,9 @@ CDF_STATUS csr_send_mb_start_bss_req_msg(tpAniSirGlobal pMac, uint32_t sessionId
|
|||||||
pMsg->sessionId = sessionId;
|
pMsg->sessionId = sessionId;
|
||||||
pMsg->length = sizeof(tSirSmeStartBssReq);
|
pMsg->length = sizeof(tSirSmeStartBssReq);
|
||||||
pMsg->transactionId = 0;
|
pMsg->transactionId = 0;
|
||||||
cdf_mem_copy(pMsg->bssId, pParam->bssid.bytes, sizeof(tSirMacAddr));
|
cdf_copy_macaddr(&pMsg->bssid, &pParam->bssid);
|
||||||
/* selfMacAddr */
|
/* selfMacAddr */
|
||||||
cdf_mem_copy(pMsg->selfMacAddr,
|
cdf_copy_macaddr(&pMsg->self_macaddr, &pSession->selfMacAddr);
|
||||||
pSession->selfMacAddr.bytes,
|
|
||||||
sizeof(tSirMacAddr));
|
|
||||||
/* beaconInterval */
|
/* beaconInterval */
|
||||||
if (pBssDesc && pBssDesc->beaconInterval)
|
if (pBssDesc && pBssDesc->beaconInterval)
|
||||||
wTmp = pBssDesc->beaconInterval;
|
wTmp = pBssDesc->beaconInterval;
|
||||||
|
Reference in New Issue
Block a user