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
This commit is contained in:
@@ -559,11 +559,6 @@ QDF_STATUS sme_roam_get_wpa_rsn_rsp_ie(mac_handle_t mac_handle,
|
|||||||
uint8_t session_id,
|
uint8_t session_id,
|
||||||
uint32_t *len, uint8_t *buf);
|
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,
|
QDF_STATUS sme_get_config_param(mac_handle_t mac_handle,
|
||||||
tSmeConfigParams *pParam);
|
tSmeConfigParams *pParam);
|
||||||
#ifndef QCA_SUPPORT_CP_STATS
|
#ifndef QCA_SUPPORT_CP_STATS
|
||||||
|
@@ -3373,70 +3373,6 @@ QDF_STATUS sme_roam_get_wpa_rsn_rsp_ie(mac_handle_t mac_handle,
|
|||||||
return status;
|
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() -
|
* sme_get_config_param() -
|
||||||
* A wrapper function that HDD calls to get the global settings
|
* A wrapper function that HDD calls to get the global settings
|
||||||
|
Reference in New Issue
Block a user