From cb62be3384f899857ae82ffddd6f78084ae7fa7a Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 19 Dec 2018 13:09:23 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_get_infra_session_id() Function sme_get_infra_session_id() is unused, so remove it. Change-Id: Ib37eff0591d9c043e62883329c12410fcca67223 CRs-Fixed: 2371148 --- core/sme/inc/sme_api.h | 1 - core/sme/src/common/sme_api.c | 27 +-------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 5db9ddc01024..e756220bfed2 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -687,7 +687,6 @@ QDF_STATUS sme_configure_app_type1_params(mac_handle_t mac_handle, QDF_STATUS sme_configure_app_type2_params(mac_handle_t mac_handle, tpSirAppType2Params wlanAppType2Params); #endif -int8_t sme_get_infra_session_id(mac_handle_t mac_handle); uint8_t sme_get_concurrent_operation_channel(mac_handle_t mac_handle); #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH uint16_t sme_check_concurrent_channel_overlap(mac_handle_t mac_handle, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 4f34066963ba..ad036e4acd90 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -5130,32 +5130,7 @@ QDF_STATUS sme_configure_app_type2_params(mac_handle_t mac_handle, } #endif -/* - * sme_get_infra_session_id - * To get the session ID for infra session, if connected - * This is a synchronous API. - * - * mac_handle - The handle returned by mac_open. - * sessionid, -1 if infra session is not connected - */ -int8_t sme_get_infra_session_id(mac_handle_t mac_handle) -{ - QDF_STATUS status = QDF_STATUS_E_FAILURE; - int8_t sessionid = -1; - struct mac_context *mac = MAC_CONTEXT(mac_handle); - - status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - - sessionid = csr_get_infra_session_id(mac); - - sme_release_global_lock(&mac->sme); - } - - return sessionid; -} - -/* This routine will return poerating channel on which other BSS is operating +/* This routine will return operating channel on which other BSS is operating * to be used for concurrency mode. If other BSS is not up or not connected it * will return 0 */