diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 7e86450b93..68cbd21478 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -2754,15 +2754,6 @@ void csr_init_occupied_channels_list(struct mac_context *mac_ctx, return; } - if (!csr_neighbor_roam_is_new_connected_profile(mac_ctx, sessionId)) { - /* - * Do not flush occupied list since current roam profile matches - * previous - */ - sme_debug("Current roam profile matches prev"); - return; - } - profile = &mac_ctx->roam.roamSession[sessionId].connectedProfile; if (!profile) return; diff --git a/core/sme/src/csr/csr_inside_api.h b/core/sme/src/csr/csr_inside_api.h index 88fdbb7f4c..647a57e791 100644 --- a/core/sme/src/csr/csr_inside_api.h +++ b/core/sme/src/csr/csr_inside_api.h @@ -922,8 +922,6 @@ QDF_STATUS csr_dequeue_roam_command(struct mac_context *mac, enum csr_roam_reason reason, uint8_t session_id); void csr_init_occupied_channels_list(struct mac_context *mac, uint8_t sessionId); -bool csr_neighbor_roam_is_new_connected_profile(struct mac_context *mac, - uint8_t sessionId); bool csr_neighbor_roam_connected_profile_match(struct mac_context *mac, uint8_t sessionId, struct tag_csrscan_result diff --git a/core/sme/src/csr/csr_neighbor_roam.c b/core/sme/src/csr/csr_neighbor_roam.c index 847963e8a4..6bc4a3677b 100644 --- a/core/sme/src/csr/csr_neighbor_roam.c +++ b/core/sme/src/csr/csr_neighbor_roam.c @@ -660,45 +660,6 @@ static bool csr_neighbor_roam_is_ssid_and_security_match(struct mac_context *mac } -bool csr_neighbor_roam_is_new_connected_profile(struct mac_context *mac, - uint8_t sessionId) -{ - tpCsrNeighborRoamControlInfo pNeighborRoamInfo = - &mac->roam.neighborRoamInfo[sessionId]; - tCsrRoamConnectedProfile *pCurrProfile = NULL; - tCsrRoamConnectedProfile *pPrevProfile = NULL; - tDot11fBeaconIEs *pIes = NULL; - struct bss_description *bss_desc = NULL; - bool fNew = true; - - if (!(mac->roam.roamSession && CSR_IS_SESSION_VALID(mac, sessionId))) - return fNew; - - pCurrProfile = &mac->roam.roamSession[sessionId].connectedProfile; - if (!pCurrProfile) - return fNew; - - pPrevProfile = &pNeighborRoamInfo->prevConnProfile; - if (!pPrevProfile) - return fNew; - - bss_desc = pPrevProfile->bss_desc; - if (bss_desc) { - if (QDF_IS_STATUS_SUCCESS( - csr_get_parsed_bss_description_ies(mac, bss_desc, &pIes)) - && csr_neighbor_roam_is_ssid_and_security_match(mac, - pCurrProfile, bss_desc, pIes, sessionId)) { - fNew = false; - } - if (pIes) - qdf_mem_free(pIes); - } - - sme_debug("roam profile match: %d", !fNew); - - return fNew; -} - bool csr_neighbor_roam_connected_profile_match(struct mac_context *mac, uint8_t sessionId, struct tag_csrscan_result