diff mbox series

[v3,2/4] station: use network_update_known_frequencies

Message ID 20240126202243.91947-2-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series [v3,1/4] network: add network_update_known_frequencies | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood Jan. 26, 2024, 8:22 p.m. UTC
Updates each network with its new, most current, set of BSS's
for the different types of scans: dbus/autoconnect, hidden, and
OWE.
---
 src/station.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/src/station.c b/src/station.c
index a6442d3e..b186c505 100644
--- a/src/station.c
+++ b/src/station.c
@@ -350,6 +350,8 @@  static bool process_network(const void *key, void *data, void *user_data)
 		l_queue_insert(station->networks_sorted, network,
 				network_rank_compare, NULL);
 
+		network_update_known_frequencies(network);
+
 		return false;
 	}
 
@@ -799,6 +801,8 @@  free:
 		scan_bss_free(bss);
 	}
 
+	network_update_known_frequencies(network);
+
 	l_queue_destroy(bss_list, NULL);
 
 done:
@@ -3684,6 +3688,8 @@  next:
 		return true;
 	}
 
+	network_update_known_frequencies(network_psk ?: network_open);
+
 	error = network_connect_new_hidden_network(network_psk ?: network_open,
 							msg);