From 38ffcc3155ef5b45444d444645564ec44b82d1aa Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 19 Dec 2018 11:46:19 -0800 Subject: [PATCH] qcacld-3.0: Remove csr_is_p2p_session_connected() Change I913b6e769f282a0f5a0ddb40e54d294ae07deb55 ("qcacld-3.0: Remove unused concurrency ini parameters") removed the last client of csr_is_p2p_session_connected(). Since this function is now unused, remove it. Change-Id: Ifd4f4f52bfe6e5be4b472a47cfea765b336a8daf CRs-Fixed: 2371137 --- core/sme/inc/csr_internal.h | 1 - core/sme/src/csr/csr_util.c | 35 ----------------------------------- 2 files changed, 36 deletions(-) diff --git a/core/sme/inc/csr_internal.h b/core/sme/inc/csr_internal.h index 42af281749fd..a694ba7ae1ed 100644 --- a/core/sme/inc/csr_internal.h +++ b/core/sme/inc/csr_internal.h @@ -987,7 +987,6 @@ bool csr_is_conn_state_disconnected_wds(struct mac_context *mac, 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); /** * 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 303b987e1ea6..3053f5669b42 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -1200,41 +1200,6 @@ bool csr_is_sta_session_connected(struct mac_context *mac_ctx) return false; } -/** - * csr_is_p2p_session_connected() - to find if any p2p session is active - * @mac_ctx: pointer to mac context - * - * This function will iterate through each session and check if any p2p - * session exist and active - * - * Return: true or false - */ -bool csr_is_p2p_session_connected(struct mac_context *mac) -{ - uint32_t i; - struct csr_roam_session *pSession = NULL; - enum QDF_OPMODE persona; - - for (i = 0; i < CSR_ROAM_SESSION_MAX; i++) { - if (!CSR_IS_SESSION_VALID(mac, i)) - continue; - - if (csr_is_conn_state_disconnected(mac, i)) - continue; - - pSession = CSR_GET_SESSION(mac, i); - if (pSession->pCurRoamProfile == NULL) - continue; - - persona = pSession->pCurRoamProfile->csrPersona; - if (QDF_P2P_CLIENT_MODE == persona || - QDF_P2P_GO_MODE == persona) - return true; - } - - return false; -} - uint8_t csr_get_connected_infra(struct mac_context *mac_ctx) { uint32_t i;