From 0265e9944f8de16e4d007bc60f02f67c51df2aa9 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 19 Dec 2018 13:10:46 -0800 Subject: [PATCH] qcacld-3.0: Remove csr_get_infra_session_id() Change Ib37eff0591d9c043e62883329c12410fcca67223 ("qcacld-3.0: Remove sme_get_infra_session_id()") removed the only client of csr_get_infra_session_id(). Since this function is now unused, remove it. Change-Id: I32d0875087ad1f55ec8e8ee2985f7397fefb525d CRs-Fixed: 2371149 --- core/sme/inc/csr_internal.h | 1 - core/sme/src/csr/csr_util.c | 16 ---------------- 2 files changed, 17 deletions(-) diff --git a/core/sme/inc/csr_internal.h b/core/sme/inc/csr_internal.h index 5ae786ff659b..2a2775a898b1 100644 --- a/core/sme/inc/csr_internal.h +++ b/core/sme/inc/csr_internal.h @@ -1037,7 +1037,6 @@ uint8_t csr_construct_wapi_ie(struct mac_context *mac, uint32_t sessionId, void csr_set_cfg_privacy(struct mac_context *mac, struct csr_roam_profile *pProfile, bool fPrivacy); -int8_t csr_get_infra_session_id(struct mac_context *mac); uint8_t csr_get_infra_operation_channel(struct mac_context *mac, uint8_t sessionId); bool csr_is_session_client_and_connected(struct mac_context *mac, diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 3053f5669b42..45ad789ab525 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -716,22 +716,6 @@ bool csr_is_any_session_in_connect_state(struct mac_context *mac) return fRc; } -int8_t csr_get_infra_session_id(struct mac_context *mac) -{ - uint8_t i; - int8_t sessionid = -1; - - for (i = 0; i < CSR_ROAM_SESSION_MAX; i++) { - if (CSR_IS_SESSION_VALID(mac, i) - && csr_is_conn_state_infra(mac, i)) { - sessionid = i; - break; - } - } - - return sessionid; -} - uint8_t csr_get_infra_operation_channel(struct mac_context *mac, uint8_t sessionId) { uint8_t channel;