|
@@ -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
|