فهرست منبع

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
Jeff Johnson 6 سال پیش
والد
کامیت
f34deb8e4a
2فایلهای تغییر یافته به همراه0 افزوده شده و 42 حذف شده
  1. 0 39
      core/sme/src/csr/csr_api_scan.c
  2. 0 3
      core/sme/src/csr/csr_inside_api.h

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

+ 0 - 3
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,