WifiManager: capture NewConnection signal from adding tethering connection (#37938)

* launch threads before creating hotspot

* Update system/ui/lib/wifi_manager.py

* todo
This commit is contained in:
Shane Smiskol
2026-05-01 01:50:08 -07:00
committed by GitHub
parent dd7da3153a
commit 7b79305d99
+4 -3
View File
@@ -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")