diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index b4ce825f87f4..91bd00d30c53 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -10862,24 +10862,12 @@ csr_roam_get_scan_filter_from_profile(struct mac_context *mac_ctx, profile->mcEncryptionType.encryptionType[i]); } - if (profile->BSSType == eCSR_BSS_TYPE_INFRASTRUCTURE) - filter->bss_type = WLAN_TYPE_BSS; - else - filter->bss_type = WLAN_TYPE_ANY; - phy_mode = profile->phyMode; csr_update_phy_mode(profile, &phy_mode); filter->dot11_mode = csr_convert_dotllmod_phymode(phy_mode); if (profile->bWPSAssociation || profile->bOSENAssociation) filter->ignore_auth_enc_type = true; - if (profile->countryCode[0]) - /* - * This causes the matching function to use countryCode as one - * of the criteria. - */ - qdf_mem_copy(filter->country, profile->countryCode, - REG_ALPHA2_LEN + 1); filter->mobility_domain = profile->mdid.mobility_domain; qdf_mem_copy(filter->bssid_hint.bytes, profile->bssid_hint.bytes, diff --git a/core/sme/src/csr/csr_neighbor_roam.c b/core/sme/src/csr/csr_neighbor_roam.c index c2a786b8986c..8689e109c92e 100644 --- a/core/sme/src/csr/csr_neighbor_roam.c +++ b/core/sme/src/csr/csr_neighbor_roam.c @@ -399,11 +399,6 @@ csr_neighbor_roam_get_scan_filter_from_profile(struct mac_context *mac, filter->mc_enc_type[0] = csr_covert_enc_type_new(profile->mcEncryptionType); - if (profile->BSSType == eCSR_BSS_TYPE_INFRASTRUCTURE) - filter->bss_type = WLAN_TYPE_BSS; - else - filter->bss_type = WLAN_TYPE_ANY; - chan_info = &nbr_roam_info->roamChannelInfo.currentChannelListInfo; num_ch = chan_info->numOfChannels; if (num_ch) {