system/ui: fix tethering ssid (#35188)

system/ui: fix tethering ssid when no params
This commit is contained in:
Cameron Clough
2025-05-12 15:39:48 +01:00
committed by GitHub
parent 59fbeb6070
commit 43054a56c2
+5 -1
View File
@@ -79,7 +79,11 @@ class WifiManager:
self.saved_connections: dict[str, str] = {}
self.active_ap_path: str = ""
self.scan_task: asyncio.Task | None = None
self._tethering_ssid = "weedle-" + Params().get("DongleId", encoding="utf-8")
# Set tethering ssid as "weedle" + first 4 characters of a dongle id
self._tethering_ssid = "weedle"
dongle_id = Params().get("DongleId", encoding="utf-8")
if dongle_id:
self._tethering_ssid += "-" + dongle_id[:4]
self.running: bool = True
self._current_connection_ssid: str | None = None