From daba7ef04381730be54271a37a9fbc14584604cf Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 7 Jul 2018 09:46:54 -0700 Subject: [PATCH] qcacld-3.0: Remove csr_disconnect_all_active_sessions() Function csr_disconnect_all_active_sessions() is obsolete and no longer used, so remove it. Change-Id: Ia2c0faa2429b706a2b7829444cd21cae4431a6ea CRs-Fixed: 2281077 --- core/sme/inc/csr_internal.h | 3 --- core/sme/src/csr/csr_util.c | 26 -------------------------- 2 files changed, 29 deletions(-) diff --git a/core/sme/inc/csr_internal.h b/core/sme/inc/csr_internal.h index b8a7edcfbfd8..a5b5c0c3cb56 100644 --- a/core/sme/inc/csr_internal.h +++ b/core/sme/inc/csr_internal.h @@ -1273,9 +1273,6 @@ QDF_STATUS csr_get_tsm_stats(tpAniSirGlobal pMac, void *pContext, uint8_t tid); #endif -/* Remove this code once SLM_Sessionization is supported */ -void csr_disconnect_all_active_sessions(tpAniSirGlobal pMac); - /* Returns whether "Legacy Fast Roaming" is enabled...or not */ bool csr_roam_is_fast_roam_enabled(tpAniSirGlobal pMac, uint32_t sessionId); diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 4c52a4dfbd9f..26cfe3b01c26 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -6135,32 +6135,6 @@ uint16_t sme_chn_to_freq(uint8_t chanNum) return 0; } -/* Disconnect all active sessions by sending disassoc. This is mainly - * used to disconnect the remaining session when we transition from - * concurrent sessions to a single session. The use case is Infra STA - * and wifi direct multiple sessions are up and P2P session is removed. - * The Infra STA session remains and should resume BMPS if BMPS is enabled - * by default. However, there are some issues seen with BMPS resume during - * this transition and this is a workaround which will allow the Infra STA - * session to disconnect and auto connect back and enter BMPS this giving - * the same effect as resuming BMPS - */ - -/* Remove this code once SLM_Sessionization is supported */ -/* BMPS_WORKAROUND_NOT_NEEDED */ -void csr_disconnect_all_active_sessions(tpAniSirGlobal pMac) -{ - uint8_t i; - - /* Disconnect all the active sessions */ - for (i = 0; i < CSR_ROAM_SESSION_MAX; i++) { - if (CSR_IS_SESSION_VALID(pMac, i) - && !csr_is_conn_state_disconnected(pMac, i)) - csr_roam_disconnect_internal(pMac, i, - eCSR_DISCONNECT_REASON_UNSPECIFIED); - } -} - struct lim_channel_status *csr_get_channel_status( void *p_mac, uint32_t channel_id) {