mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-06 08:46:08 +08:00
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:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user