diff --git a/core/sme/inc/csr_neighbor_roam.h b/core/sme/inc/csr_neighbor_roam.h index 0ca019c79bc7..b63d5a176a80 100644 --- a/core/sme/inc/csr_neighbor_roam.h +++ b/core/sme/inc/csr_neighbor_roam.h @@ -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); diff --git a/core/sme/src/csr/csr_host_scan_roam.c b/core/sme/src/csr/csr_host_scan_roam.c index fb29ee10db7f..4e8db71aecc4 100644 --- a/core/sme/src/csr/csr_host_scan_roam.c +++ b/core/sme/src/csr/csr_host_scan_roam.c @@ -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 diff --git a/core/sme/src/csr/csr_neighbor_roam.c b/core/sme/src/csr/csr_neighbor_roam.c index c54fbac73e1a..01cab33109a8 100644 --- a/core/sme/src/csr/csr_neighbor_roam.c +++ b/core/sme/src/csr/csr_neighbor_roam.c @@ -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() *