From 6866088ec447964c452b066a07294b1e33a8a8dc Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 16 Dec 2018 15:55:56 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_is_sta_p2p_client_connected() Change I8b1ead9902ec93e76f76144118392db38abd38d7 ("qcacld-3.0: Remove hdd_issta_p2p_clientconnected()") removed the only caller of sme_is_sta_p2p_client_connected(). Since the function is now unused, remove it. Change-Id: I2b469c6cb2e6bdfc735b04e9bd6f12ba0d41fea4 CRs-Fixed: 2370794 --- core/sme/inc/sme_api.h | 2 +- core/sme/src/common/sme_api.c | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index a29291d9fa9b..3250379721a5 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -873,7 +873,7 @@ QDF_STATUS sme_set_phy_mode(mac_handle_t mac_handle, eCsrPhyMode phyMode); eCsrPhyMode sme_get_phy_mode(mac_handle_t mac_handle); QDF_STATUS sme_handoff_request(mac_handle_t mac_handle, uint8_t sessionId, tCsrHandoffRequest *pHandoffInfo); -QDF_STATUS sme_is_sta_p2p_client_connected(mac_handle_t mac_handle); + QDF_STATUS sme_add_periodic_tx_ptrn(mac_handle_t mac_handle, tSirAddPeriodicTxPtrn *addPeriodicTxPtrnParams); QDF_STATUS sme_del_periodic_tx_ptrn(mac_handle_t mac_handle, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 3a459aea9d73..04631fbc1c5d 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -8353,20 +8353,6 @@ QDF_STATUS sme_handoff_request(mac_handle_t mac_handle, return status; } -/* - * SME API to check if there is any infra station or - * P2P client is connected - */ -QDF_STATUS sme_is_sta_p2p_client_connected(mac_handle_t mac_handle) -{ - struct mac_context *mac = MAC_CONTEXT(mac_handle); - - if (csr_is_infra_connected(mac)) - return QDF_STATUS_SUCCESS; - - return QDF_STATUS_E_FAILURE; -} - /** * sme_add_periodic_tx_ptrn() - Add Periodic TX Pattern * @mac_handle: Opaque handle to the global MAC context