mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Remove csr_get_current_ap_rssi
Remove csr_get_current_ap_rssi which is not used CRs-Fixed: 1007810 Change-Id: I2b9f82f64d2cd038abd61a0087886724daa19424
This commit is contained in:
parent
5a1985a9f2
commit
d1ecb4b070
3 changed files with 0 additions and 48 deletions
|
|
@ -393,8 +393,6 @@ static inline void csr_neighbor_roam_send_lfr_metric_event(
|
|||
{}
|
||||
#endif
|
||||
QDF_STATUS csr_roam_stop_wait_for_key_timer(tpAniSirGlobal pMac);
|
||||
uint32_t csr_get_current_ap_rssi(tpAniSirGlobal pMac,
|
||||
tScanResultHandle *pScanResultList, uint8_t sessionId);
|
||||
QDF_STATUS csr_roam_copy_connected_profile(tpAniSirGlobal pMac,
|
||||
uint32_t sessionId, tCsrRoamProfile *pDstProfile);
|
||||
|
||||
|
|
|
|||
|
|
@ -151,7 +151,6 @@ csr_neighbor_roam_process_scan_results(tpAniSirGlobal mac_ctx,
|
|||
tpCsrNeighborRoamControlInfo n_roam_info =
|
||||
&mac_ctx->roam.neighborRoamInfo[sessionid];
|
||||
tpCsrNeighborRoamBSSInfo bss_info;
|
||||
uint32_t cur_ap_rssi;
|
||||
uint32_t age_ticks = 0;
|
||||
uint32_t limit_ticks =
|
||||
qdf_system_msecs_to_ticks(ROAM_AP_AGE_LIMIT_MS);
|
||||
|
|
@ -167,15 +166,6 @@ csr_neighbor_roam_process_scan_results(tpAniSirGlobal mac_ctx,
|
|||
uint16_t qavail;
|
||||
bool voadmitted;
|
||||
#endif
|
||||
/*
|
||||
* Find out the Current AP RSSI and keep it handy to check if
|
||||
* it is better than the RSSI of the AP which we are
|
||||
* going to roam.If so, we are going to continue with the
|
||||
* current AP.
|
||||
*/
|
||||
cur_ap_rssi = csr_get_current_ap_rssi(mac_ctx, scan_results_list,
|
||||
sessionid);
|
||||
|
||||
/*
|
||||
* Expecting the scan result already to be in the sorted order based on
|
||||
* RSSI. Based on the previous state we need to check whether the list
|
||||
|
|
|
|||
|
|
@ -728,42 +728,6 @@ csr_neighbor_roam_prepare_scan_profile_filter(tpAniSirGlobal pMac,
|
|||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint32_t csr_get_current_ap_rssi(tpAniSirGlobal pMac,
|
||||
tScanResultHandle *pScanResultList,
|
||||
uint8_t sessionId)
|
||||
{
|
||||
tCsrScanResultInfo *pScanResult;
|
||||
tpCsrNeighborRoamControlInfo nbr_roam_info =
|
||||
&pMac->roam.neighborRoamInfo[sessionId];
|
||||
/* We are setting this as default value to make sure we return this value,
|
||||
when we do not see this AP in the scan result for some reason.However,it is
|
||||
less likely that we are associated to an AP and do not see it in the scan list */
|
||||
uint32_t CurrAPRssi = -125;
|
||||
|
||||
while (NULL !=
|
||||
(pScanResult = csr_scan_result_get_next(pMac, *pScanResultList))) {
|
||||
if (true !=
|
||||
qdf_mem_cmp(pScanResult->BssDescriptor.bssId,
|
||||
nbr_roam_info->currAPbssid.bytes,
|
||||
sizeof(tSirMacAddr))) {
|
||||
/* We got a match with the currently associated AP.
|
||||
* Capture the RSSI value and complete the while loop.
|
||||
* The while loop is completed in order to make the current entry go back to NULL,
|
||||
* and in the next while loop, it properly starts searching from the head of the list.
|
||||
* TODO: Can also try setting the current entry directly to NULL as soon as we find the new AP*/
|
||||
|
||||
CurrAPRssi =
|
||||
(int)pScanResult->BssDescriptor.rssi * (-1);
|
||||
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return CurrAPRssi;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* csr_neighbor_roam_channels_filter_by_current_band()
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue