From b3451dcab7f48b1cea3570af66b7361faeb78d7e Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 17 Dec 2018 22:34:47 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_roam_get*_pmkid_cache() The following functions are unused, so remove them: - sme_roam_get_pmkid_cache() - sme_roam_get_num_pmkid_cache() Change-Id: I98ef4dc56bd820849b038de5b33665f3bb7b01b4 CRs-Fixed: 2370894 --- core/sme/inc/sme_api.h | 5 --- core/sme/src/common/sme_api.c | 64 ----------------------------------- 2 files changed, 69 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index af42cf544d62..28ccc0953b4b 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -559,11 +559,6 @@ QDF_STATUS sme_roam_get_wpa_rsn_rsp_ie(mac_handle_t mac_handle, uint8_t session_id, uint32_t *len, uint8_t *buf); -uint32_t sme_roam_get_num_pmkid_cache(mac_handle_t mac_handle, - uint8_t sessionId); -QDF_STATUS sme_roam_get_pmkid_cache(mac_handle_t mac_handle, uint8_t sessionId, - uint32_t *pNum, - tPmkidCacheInfo *pPmkidCache); QDF_STATUS sme_get_config_param(mac_handle_t mac_handle, tSmeConfigParams *pParam); #ifndef QCA_SUPPORT_CP_STATS diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 02ca82d0dce9..f61163baf51c 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -3373,70 +3373,6 @@ QDF_STATUS sme_roam_get_wpa_rsn_rsp_ie(mac_handle_t mac_handle, return status; } -/* - * sme_roam_get_num_pmkid_cache() - - * A wrapper function to request CSR to return number of PMKID cache - * entries - * This is a synchronous call. - * - * Return uint32_t - the number of PMKID cache entries - */ -uint32_t sme_roam_get_num_pmkid_cache(mac_handle_t mac_handle, - uint8_t sessionId) -{ - QDF_STATUS status = QDF_STATUS_E_FAILURE; - struct mac_context *mac = MAC_CONTEXT(mac_handle); - uint32_t numPmkidCache = 0; - - status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - if (CSR_IS_SESSION_VALID(mac, sessionId)) { - numPmkidCache = - csr_roam_get_num_pmkid_cache(mac, sessionId); - status = QDF_STATUS_SUCCESS; - } else - status = QDF_STATUS_E_INVAL; - sme_release_global_lock(&mac->sme); - } - - return numPmkidCache; -} - -/* - * sme_roam_get_pmkid_cache() - - * A wrapper function to request CSR to return PMKID cache from CSR - * This is a synchronous call. - * - * pNum - caller allocated memory that has the space of the number of - * pBuf tPmkidCacheInfo as input. Upon returned, *pNum has the - * needed or actually number in tPmkidCacheInfo. - * pPmkidCache - Caller allocated memory that contains PMKID cache, if - * any, upon return - * Return QDF_STATUS - when fail, it usually means the buffer allocated is not - * big enough - */ -QDF_STATUS sme_roam_get_pmkid_cache(mac_handle_t mac_handle, uint8_t sessionId, - uint32_t *pNum, tPmkidCacheInfo *pPmkidCache) -{ - QDF_STATUS status = QDF_STATUS_E_FAILURE; - struct mac_context *mac = MAC_CONTEXT(mac_handle); - - MTRACE(qdf_trace(QDF_MODULE_ID_SME, - TRACE_CODE_SME_RX_HDD_ROAM_GET_PMKIDCACHE, sessionId, - 0)); - status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - if (CSR_IS_SESSION_VALID(mac, sessionId)) - status = csr_roam_get_pmkid_cache(mac, sessionId, pNum, - pPmkidCache); - else - status = QDF_STATUS_E_INVAL; - sme_release_global_lock(&mac->sme); - } - - return status; -} - /* * sme_get_config_param() - * A wrapper function that HDD calls to get the global settings