From c6db0cd4b6f61a4f4ce52b6ca941a83af386508f Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 18 Feb 2026 05:52:59 -0800 Subject: [PATCH] WifiManager: fix all networks showing as connected when no active connection (#37252) * WifiManager: fix all networks showing as connected when no active connection When there's no active WiFi connection, _get_active_wifi_connection() returns None. This caused `self._connections.get(ssid) == None` to be True for all unsaved networks, marking them all as connected. Co-authored-by: Cursor * ltl --------- Co-authored-by: Cursor --- system/ui/lib/wifi_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/system/ui/lib/wifi_manager.py b/system/ui/lib/wifi_manager.py index 61522ffde..52246beb7 100644 --- a/system/ui/lib/wifi_manager.py +++ b/system/ui/lib/wifi_manager.py @@ -737,6 +737,7 @@ class WifiManager: active_wifi_connection, _ = self._get_active_wifi_connection() networks = [Network.from_dbus(ssid, ap_list, ssid in self._connections, + active_wifi_connection is not None and self._connections.get(ssid) == active_wifi_connection) for ssid, ap_list in aps.items()] networks.sort(key=lambda n: (-n.is_connected, -n.is_saved, -n.strength, n.ssid.lower())) self._networks = networks