From f34deb8e4a280f01cfb4742ab5d4dbe7e95e2399 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 19 Dec 2018 11:58:06 -0800 Subject: [PATCH] qcacld-3.0: Remove csr_move_bss_to_head_from_bssid() Change I3050cd9a704f9c2489a11c75cd439224e44b8748 ("qcacld-3.0: Remove csr_roam_connect_to_last_profile()") removed the last client of csr_move_bss_to_head_from_bssid(). Since this function is now unused, remove it. Change-Id: Ib83c7fa596d589ba9eed5803701f24d4634ad645 CRs-Fixed: 2371141 --- core/sme/src/csr/csr_api_scan.c | 39 ------------------------------- core/sme/src/csr/csr_inside_api.h | 3 --- 2 files changed, 42 deletions(-) diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 44e6a5434904..24d4ae52350e 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -1363,45 +1363,6 @@ tCsrScanResultInfo *csr_scan_result_get_next(struct mac_context *mac, return pRet; } -/* - * This function moves the first BSS that matches the bssid to the - * head of the result - */ -QDF_STATUS csr_move_bss_to_head_from_bssid(struct mac_context *mac, - struct qdf_mac_addr *bssid, - tScanResultHandle hScanResult) -{ - QDF_STATUS status = QDF_STATUS_E_FAILURE; - struct scan_result_list *pResultList = - (struct scan_result_list *) hScanResult; - struct tag_csrscan_result *pResult = NULL; - tListElem *pEntry = NULL; - - if (!(pResultList && bssid)) - return status; - - csr_ll_lock(&pResultList->List); - pEntry = csr_ll_peek_head(&pResultList->List, LL_ACCESS_NOLOCK); - while (pEntry) { - pResult = GET_BASE_ADDR(pEntry, struct tag_csrscan_result, - Link); - if (!qdf_mem_cmp(bssid, pResult->Result.BssDescriptor.bssId, - sizeof(struct qdf_mac_addr))) { - status = QDF_STATUS_SUCCESS; - csr_ll_remove_entry(&pResultList->List, pEntry, - LL_ACCESS_NOLOCK); - csr_ll_insert_head(&pResultList->List, pEntry, - LL_ACCESS_NOLOCK); - break; - } - pEntry = csr_ll_next(&pResultList->List, pResultList->pCurEntry, - LL_ACCESS_NOLOCK); - } - csr_ll_unlock(&pResultList->List); - - return status; -} - /** * csr_scan_for_ssid() - Function usually used for BSSs that suppresses SSID * @mac_ctx: Pointer to Global Mac structure diff --git a/core/sme/src/csr/csr_inside_api.h b/core/sme/src/csr/csr_inside_api.h index 6b13247d99c2..273b79a9084a 100644 --- a/core/sme/src/csr/csr_inside_api.h +++ b/core/sme/src/csr/csr_inside_api.h @@ -373,9 +373,6 @@ int8_t csr_get_cfg_max_tx_power(struct mac_context *mac, uint8_t channel); /* To free the last roaming profile */ void csr_free_roam_profile(struct mac_context *mac, uint32_t sessionId); void csr_free_connect_bss_desc(struct mac_context *mac, uint32_t sessionId); -QDF_STATUS csr_move_bss_to_head_from_bssid(struct mac_context *mac, - struct qdf_mac_addr *bssid, - tScanResultHandle hScanResult); /* to free memory allocated inside the profile structure */ void csr_release_profile(struct mac_context *mac,