From 7c4eccde0acb6ae3809e4efed355d4cdf328dd69 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 17 Dec 2018 22:31:55 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_roam_get_connect_state() Function sme_roam_get_connect_state() is unused, so remove it. Change-Id: Ieff533b5abca419fa2ffeabfcbfe9b2cf8eb5879 CRs-Fixed: 2370893 --- core/sme/inc/sme_api.h | 3 --- core/sme/src/common/sme_api.c | 28 ---------------------------- 2 files changed, 31 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 47d4e3c6cbbca..af42cf544d626 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -494,9 +494,6 @@ QDF_STATUS sme_roam_disconnect_sta(mac_handle_t mac_handle, uint8_t sessionId, struct csr_del_sta_params *p_del_sta_params); QDF_STATUS sme_roam_deauth_sta(mac_handle_t mac_handle, uint8_t sessionId, struct csr_del_sta_params *pDelStaParams); -QDF_STATUS sme_roam_get_connect_state(mac_handle_t mac_handle, - uint8_t sessionId, - eCsrConnectState *pState); QDF_STATUS sme_roam_get_connect_profile(mac_handle_t mac_handle, uint8_t sessionId, tCsrRoamConnectedProfile *pProfile); diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 43dd96b654c47..02ca82d0dce9a 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -3165,34 +3165,6 @@ QDF_STATUS sme_roam_deauth_sta(mac_handle_t mac_handle, uint8_t sessionId, return status; } -/* - * sme_roam_get_connect_state() - - * A wrapper function to request CSR to return the current connect state - * of Roaming - * This is a synchronous call. - * - * Return QDF_STATUS - */ -QDF_STATUS sme_roam_get_connect_state(mac_handle_t mac_handle, - uint8_t sessionId, - eCsrConnectState *pState) -{ - QDF_STATUS status = QDF_STATUS_E_FAILURE; - struct mac_context *mac = MAC_CONTEXT(mac_handle); - - status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - if (CSR_IS_SESSION_VALID(mac, sessionId)) - status = csr_roam_get_connect_state(mac, sessionId, - pState); - else - status = QDF_STATUS_E_INVAL; - sme_release_global_lock(&mac->sme); - } - - return status; -} - /* * sme_roam_get_connect_profile() - * A wrapper function to request CSR to return the current connect