mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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
This commit is contained in:
parent
791bcf9ef3
commit
f34deb8e4a
2 changed files with 0 additions and 42 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue