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

qcacmn: Invoke beacon update callback before adding new entry

Invoke beacon update callback function before adding new entry
to scan list. It's required as get_scan_result API will end up
returning partially initialized scan entry.

Change-Id: Ia34f9c69b4eef2435b135912e06c39018a8987b8
CRs-Fixed: 2189783
Om Prakash Tripathi 7 éve
szülő
commit
fdaf38b849
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      umac/scan/core/src/wlan_scan_cache_db.c

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

@@ -694,6 +694,9 @@ QDF_STATUS scm_handle_bcn_probe(struct scheduler_msg *msg)
 
 		scan_entry = scan_node->entry;
 
+		if (scan_obj->cb.update_beacon)
+			scan_obj->cb.update_beacon(pdev, scan_entry);
+
 		if (wlan_reg_11d_enabled_on_host(psoc))
 			scm_11d_handle_country_info(psoc, pdev, scan_entry);
 
@@ -712,9 +715,6 @@ QDF_STATUS scm_handle_bcn_probe(struct scheduler_msg *msg)
 			scan_entry->ssid.length, scan_entry->ssid.ssid,
 			scan_entry->rssi_raw);
 
-		if (scan_obj->cb.update_beacon)
-			scan_obj->cb.update_beacon(pdev, scan_entry);
-
 		if (scan_obj->cb.inform_beacon)
 			scan_obj->cb.inform_beacon(pdev, scan_entry);
 		qdf_mem_free(scan_node);