From 5721ab88f7e2a613efe362c24cfe7150b832295d Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 19 Dec 2018 11:04:32 -0800 Subject: [PATCH] qcacld-3.0: Remove csr_is_infra_connected() Change I2b469c6cb2e6bdfc735b04e9bd6f12ba0d41fea4 ("qcacld-3.0: Remove sme_is_sta_p2p_client_connected()") removed the last client of csr_is_infra_connected(). Since the function is now obsolete, remove it. Change-Id: I5a71cad7414aee56a981e640ef66687fe0433b4f CRs-Fixed: 2371135 --- 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 eb8424cf1ef5..42af281749fd 100644 --- a/core/sme/inc/csr_internal.h +++ b/core/sme/inc/csr_internal.h @@ -988,7 +988,6 @@ bool csr_is_any_session_in_connect_state(struct mac_context *mac); bool csr_is_all_session_disconnected(struct mac_context *mac); bool csr_is_sta_session_connected(struct mac_context *mac); bool csr_is_p2p_session_connected(struct mac_context *mac); -bool csr_is_infra_connected(struct mac_context *mac); /** * csr_get_connected_infra() - get the session id of the connected infra diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index ff6969db7b90..382653032d88 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -1235,22 +1235,6 @@ bool csr_is_p2p_session_connected(struct mac_context *mac) return false; } -bool csr_is_infra_connected(struct mac_context *mac) -{ - uint32_t i; - bool fRc = false; - - for (i = 0; i < CSR_ROAM_SESSION_MAX; i++) { - if (CSR_IS_SESSION_VALID(mac, i) - && csr_is_conn_state_connected_infra(mac, i)) { - fRc = true; - break; - } - } - - return fRc; -} - uint8_t csr_get_connected_infra(struct mac_context *mac_ctx) { uint32_t i;