diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 9514ec942205..5db9ddc01024 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -688,8 +688,6 @@ 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_infra_operation_channel(mac_handle_t mac_handle, - uint8_t sessionId); 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 d8bb07de4493..4f34066963ba 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -5155,33 +5155,6 @@ int8_t sme_get_infra_session_id(mac_handle_t mac_handle) return sessionid; } -/* - * sme_get_infra_operation_channel() - - * To get the operating channel for infra session, if connected - * This is a synchronous API. - * - * mac_handle - The handle returned by mac_open. - * sessionId - the sessionId returned by sme_open_session. - * Return operating channel, 0 if infra session is not connected - */ -uint8_t sme_get_infra_operation_channel(mac_handle_t mac_handle, - uint8_t sessionId) -{ - QDF_STATUS status = QDF_STATUS_E_FAILURE; - struct mac_context *mac = MAC_CONTEXT(mac_handle); - uint8_t channel = 0; - - status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - - channel = csr_get_infra_operation_channel(mac, sessionId); - - sme_release_global_lock(&mac->sme); - } - - return channel; -} - /* This routine will return poerating 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