From 0d3d9916c4ea6901df24540d8e5e204c6be1b44c Mon Sep 17 00:00:00 2001 From: Varun Reddy Yeturu Date: Thu, 15 Jun 2017 15:00:30 -0700 Subject: [PATCH] qcacld-3.0: Cleanup CBMode in SME Cleanup the variable CBMode as there is no usage of the variable in the code Change-Id: I4e63a0f6f1cddd639f324c177b198e4b5c18e9e0 CRs-Fixed: 2063149 --- core/sap/src/sap_fsm.c | 2 -- core/sme/inc/csr_api.h | 2 -- core/sme/src/csr/csr_api_roam.c | 9 --------- core/sme/src/nan/nan_datapath_api.c | 1 - 4 files changed, 14 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 760d1a3a05..f9da135ed8 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -3708,8 +3708,6 @@ sapconvert_to_csr_profile(tsap_Config_t *pconfig_params, eCsrRoamBssType bssType pconfig_params->RSNWPAReqIELength); profile->nRSNReqIELength = pconfig_params->RSNWPAReqIELength; } - /* Turn off CB mode */ - profile->CBMode = eCSR_CB_OFF; /* set the phyMode to accept anything */ /* Best means everything because it covers all the things we support */ diff --git a/core/sme/inc/csr_api.h b/core/sme/inc/csr_api.h index 81a9f1b76e..6632286c84 100644 --- a/core/sme/inc/csr_api.h +++ b/core/sme/inc/csr_api.h @@ -922,7 +922,6 @@ typedef struct tagCsrRoamProfile { uint8_t MFPCapable; #endif tCsrKeys Keys; - eCsrCBChoice CBMode; tCsrChannelInfo ChannelInfo; uint8_t operationChannel; struct ch_params ch_params; @@ -1012,7 +1011,6 @@ typedef struct tagCsrRoamConnectedProfile { tCsrEncryptionList EncryptionInfo; eCsrEncryptionType mcEncryptionType; tCsrEncryptionList mcEncryptionInfo; - eCsrCBChoice CBMode; uint8_t operationChannel; uint32_t vht_channel_width; uint16_t beaconInterval; diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 53efb0ba0f..4dc7eea214 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -1176,7 +1176,6 @@ QDF_STATUS csr_roam_copy_connect_profile(tpAniSirGlobal pMac, pProfile->mcEncryptionType = connected_prof->mcEncryptionType; pProfile->BSSType = connected_prof->BSSType; pProfile->operationChannel = connected_prof->operationChannel; - pProfile->CBMode = connected_prof->CBMode; qdf_mem_copy(&pProfile->bssid, &connected_prof->bssid, sizeof(struct qdf_mac_addr)); qdf_mem_copy(&pProfile->SSID, &connected_prof->SSID, @@ -7577,7 +7576,6 @@ QDF_STATUS csr_roam_copy_profile(tpAniSirGlobal pMac, if (pDstProfile->phyMode & eCSR_DOT11_MODE_11n) pDstProfile->phyMode &= ~eCSR_DOT11_MODE_11n; #endif /* FEATURE_WLAN_WAPI */ - pDstProfile->CBMode = pSrcProfile->CBMode; pDstProfile->ch_params.ch_width = pSrcProfile->ch_params.ch_width; pDstProfile->ch_params.center_freq_seg0 = pSrcProfile->ch_params.center_freq_seg0; @@ -7714,7 +7712,6 @@ QDF_STATUS csr_roam_copy_connected_profile(tpAniSirGlobal pMac, pDstProfile->negotiatedMCEncryptionType = pSrcProfile->mcEncryptionType; pDstProfile->BSSType = pSrcProfile->BSSType; - pDstProfile->CBMode = pSrcProfile->CBMode; qdf_mem_copy(&pDstProfile->Keys, &pSrcProfile->Keys, sizeof(pDstProfile->Keys)); if (pSrcProfile->MDID.mdiePresent) { @@ -8643,12 +8640,6 @@ QDF_STATUS csr_roam_save_connected_infomation(tpAniSirGlobal pMac, pConnectProfile->MFPCapable = pProfile->MFPCapable; #endif } - if (pIes) - pConnectProfile->CBMode = csr_get_cb_mode_from_ies(pMac, - pSirBssDesc->channelId, pIes); - else - sme_err("IE unavailable to derive CB mode"); - /* Save bssid */ pConnectProfile->operationChannel = pSirBssDesc->channelId; pConnectProfile->beaconInterval = pSirBssDesc->beaconInterval; diff --git a/core/sme/src/nan/nan_datapath_api.c b/core/sme/src/nan/nan_datapath_api.c index f70d2bfefb..44b1e66c1b 100644 --- a/core/sme/src/nan/nan_datapath_api.c +++ b/core/sme/src/nan/nan_datapath_api.c @@ -372,7 +372,6 @@ void csr_roam_save_ndi_connected_info(tpAniSirGlobal mac_ctx, sizeof(connect_profile), 0); connect_profile->AuthType = roam_profile->negotiatedAuthType; connect_profile->AuthInfo = roam_profile->AuthType; - connect_profile->CBMode = roam_profile->CBMode; connect_profile->EncryptionType = roam_profile->negotiatedUCEncryptionType; connect_profile->EncryptionInfo = roam_profile->EncryptionType;