From b6cc7fa15675d04dab0d858569a7761e82c7b0f4 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 17 Dec 2018 22:28:45 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_roam_get_associated_stas() Change I4a452d6eed9eb035ad124fb5cd1fe5f62f507b5f ("qcacld-3.0: Remove wlansap_get_assoc_stations()") removed the last client of sme_roam_get_associated_stas(). Since it is now obsolete, remove it as well. Change-Id: I55b6604b17c736d513dc9baf9045fb634ed7a19d CRs-Fixed: 2370892 --- core/sme/inc/sme_api.h | 5 ---- core/sme/src/common/sme_api.c | 47 ----------------------------------- 2 files changed, 52 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 0f800a8cd595..47d4e3c6cbbc 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -490,11 +490,6 @@ QDF_STATUS sme_roam_disconnect(mac_handle_t mac_handle, uint8_t session, void sme_dhcp_done_ind(mac_handle_t mac_handle, uint8_t session_id); QDF_STATUS sme_roam_stop_bss(mac_handle_t mac_handle, uint8_t sessionId); -QDF_STATUS sme_roam_get_associated_stas(mac_handle_t mac_handle, - uint8_t sessionId, - QDF_MODULE_ID modId, void *pUsrContext, - void *pfnSapEventCallback, - uint8_t *pAssocStasBuf); QDF_STATUS sme_roam_disconnect_sta(mac_handle_t mac_handle, uint8_t sessionId, struct csr_del_sta_params *p_del_sta_params); QDF_STATUS sme_roam_deauth_sta(mac_handle_t mac_handle, uint8_t sessionId, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 2d3b58e273e9..43dd96b654c4 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -3165,53 +3165,6 @@ QDF_STATUS sme_roam_deauth_sta(mac_handle_t mac_handle, uint8_t sessionId, return status; } -/* - * sme_roam_get_associated_stas() - - * To probe the list of associated stations from various modules - * of CORE stack. - * This is an asynchronous API. - * - * sessionId - sessionId of SoftAP - * modId - Module from whom list of associtated stations is - * to be probed. If an invalid module is passed then - * by default QDF_MODULE_ID_PE will be probed. - * pUsrContext - Opaque HDD context - * pfnSapEventCallback - Sap event callback in HDD - * pAssocBuf - Caller allocated memory to be filled with associatd - * stations info - * Return QDF_STATUS - */ -QDF_STATUS sme_roam_get_associated_stas(mac_handle_t mac_handle, - uint8_t sessionId, - QDF_MODULE_ID modId, void *pUsrContext, - void *pfnSapEventCallback, - uint8_t *pAssocStasBuf) -{ - QDF_STATUS status = QDF_STATUS_E_FAILURE; - struct mac_context *mac = MAC_CONTEXT(mac_handle); - - if (NULL == mac) { - QDF_ASSERT(0); - return status; - } - - status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - if (CSR_IS_SESSION_VALID(mac, sessionId)) - status = - csr_roam_get_associated_stas(mac, sessionId, - modId, - pUsrContext, - pfnSapEventCallback, - pAssocStasBuf); - else - status = QDF_STATUS_E_INVAL; - sme_release_global_lock(&mac->sme); - } - - return status; -} - /* * sme_roam_get_connect_state() - * A wrapper function to request CSR to return the current connect state