Browse Source

qcacld-3.0: Remove unused scan filter

Remove unused scan filter params.

Change-Id: I2b34f78616a13e99483792c83ac3df63b1c94d03
CRs-Fixed: 2722138
gaurank kathpalia 4 years ago
parent
commit
06ecb758cd
2 changed files with 0 additions and 17 deletions
  1. 0 12
      core/sme/src/csr/csr_api_roam.c
  2. 0 5
      core/sme/src/csr/csr_neighbor_roam.c

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

+ 0 - 5
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) {