WifiManager: handle failed state change (#37205)

* handle connecting to network that drops out w/ wrong password (no longer says connected and now deletes connection)

* clean up

* combine
This commit is contained in:
Shane Smiskol
2026-02-13 17:02:42 -08:00
committed by GitHub
parent 1b426a3160
commit 10065c8c28
3 changed files with 11 additions and 4 deletions
+2
View File
@@ -11,6 +11,7 @@ class NMDeviceState(IntEnum):
IP_CONFIG = 70
ACTIVATED = 100
DEACTIVATING = 110
FAILED = 120
# NetworkManager constants
@@ -29,6 +30,7 @@ NM_IP4_CONFIG_IFACE = 'org.freedesktop.NetworkManager.IP4Config'
NM_DEVICE_TYPE_WIFI = 2
NM_DEVICE_TYPE_MODEM = 8
NM_DEVICE_STATE_REASON_NO_SECRETS = 7
NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT = 8
NM_DEVICE_STATE_REASON_NEW_ACTIVATION = 60