Parcourir la source

qcacmn: Remove ssid check for finding scan dup entry

Probe responses received from hidden AP after beacons
with non-zero ssid length will use a new entry in scan
db resulting in multiple scan entries for same AP.

Fix is to remove ssid check in util_is_scan_entry_match
api.

Change-Id: I1c094d483a40d40f7ca9d40b26d04a7f80099dd1
CRs-Fixed: 2353339
Yeshwanth Sriram Guntuka il y a 6 ans
Parent
commit
dca006cecc
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. 3 5
      umac/scan/dispatcher/src/wlan_scan_utils_api.c

+ 3 - 5
umac/scan/dispatcher/src/wlan_scan_utils_api.c

@@ -131,13 +131,11 @@ bool util_is_scan_entry_match(
 
 	if (entry1->cap_info.wlan_caps.ess &&
 	   !qdf_mem_cmp(entry1->bssid.bytes,
-	   entry2->bssid.bytes, QDF_MAC_ADDR_SIZE) &&
-	   util_scan_scm_chan_to_band(
-	   entry1->channel.chan_idx) ==
-	   util_scan_scm_chan_to_band(entry2->channel.chan_idx)) {
+	   entry2->bssid.bytes, QDF_MAC_ADDR_SIZE)) {
 		/* Check for BSS */
 		if (util_is_ssid_match(&entry1->ssid, &entry2->ssid) ||
-		    util_scan_is_null_ssid(&entry1->ssid))
+		    util_scan_is_null_ssid(&entry1->ssid) ||
+		    util_scan_is_null_ssid(&entry2->ssid))
 			return true;
 	} else if (entry1->cap_info.wlan_caps.ibss &&
 	   (entry1->channel.chan_idx ==