From 7b79305d994fc85947af3b50eafe3bc0c0f01878 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 1 May 2026 01:50:08 -0700 Subject: [PATCH] WifiManager: capture NewConnection signal from adding tethering connection (#37938) * launch threads before creating hotspot * Update system/ui/lib/wifi_manager.py * todo --- system/ui/lib/wifi_manager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/ui/lib/wifi_manager.py b/system/ui/lib/wifi_manager.py index 22163d5f6..a030f7668 100644 --- a/system/ui/lib/wifi_manager.py +++ b/system/ui/lib/wifi_manager.py @@ -210,15 +210,16 @@ class WifiManager: def worker(): self._wait_for_wifi_device() + # TODO: wait for state thread to start before adding tethering connection, tiny race currently + self._scan_thread.start() + self._state_thread.start() + self._init_connections() if Params is not None and self._tethering_ssid not in self._connections: self._add_tethering_connection() self._init_wifi_state() - self._scan_thread.start() - self._state_thread.start() - self._tethering_password = self._get_tethering_password() cloudlog.debug("WifiManager initialized")