Forráskód Böngészése

qcacmn: Fix error while adding beacons with CSA IE

Fix error while processing beacon with CSA IE.
Log the event and add the beacon/probe with CSA IE in
database.

Change-Id: Ia7552460e91a50888ef04e0ebd79a0350dd16d1a
CRs-Fixed: 2033231
Abhishek Singh 8 éve
szülő
commit
d9e8b4f531
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      umac/scan/core/src/wlan_scan_cache_db.c

+ 4 - 4
umac/scan/core/src/wlan_scan_cache_db.c

@@ -458,17 +458,17 @@ static QDF_STATUS scm_add_update_entry(struct scan_dbs *scan_db,
 {
 	QDF_STATUS status;
 
-	/* SSID shouldn't be NULL in probe resp */
 	if (scan_params->frm_subtype ==
 	   MGMT_SUBTYPE_PROBE_RESP &&
 	   !scan_params->ie_list.ssid)
-		return QDF_STATUS_E_INVAL;
+		scm_info("Probe resp doesnt contain SSID");
+
 
-	/* CSA or ECSA present ignore */
 	if (scan_params->ie_list.csa ||
 	   scan_params->ie_list.xcsa ||
 	   scan_params->ie_list.cswrp)
-		return QDF_STATUS_E_INVAL;
+		scm_info("CSA IE present for BSSID: %pM",
+			scan_params->bssid.bytes);
 
 	scm_find_duplicate_and_del(scan_db, scan_params);
 	status = scm_add_scan_entry(scan_db, scan_params);