Browse Source

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
Jeff Johnson 6 years ago
parent
commit
b3451dcab7
2 changed files with 0 additions and 69 deletions
  1. 0 5
      core/sme/inc/sme_api.h
  2. 0 64
      core/sme/src/common/sme_api.c

+ 0 - 5
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

+ 0 - 64
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