|
|
@ -195,7 +195,7 @@ class WifiManager: |
|
|
|
reason = int(state_reason[1]) if isinstance(state_reason, (list, tuple)) and len(state_reason) == 2 else 0 |
|
|
|
reason = int(state_reason[1]) if isinstance(state_reason, (list, tuple)) and len(state_reason) == 2 else 0 |
|
|
|
|
|
|
|
|
|
|
|
if dev_state != prev_state: |
|
|
|
if dev_state != prev_state: |
|
|
|
print(f" WiFi device state change: {dev_state}, reason: {reason}") |
|
|
|
print(f"------------ WiFi device state change: {dev_state}, reason: {reason}") |
|
|
|
if dev_state == NMDeviceState.NEED_AUTH and reason == NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT and self._connecting_to_ssid: |
|
|
|
if dev_state == NMDeviceState.NEED_AUTH and reason == NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT and self._connecting_to_ssid: |
|
|
|
print('------ NEED AUTH - SUPPLICANT DISCONNECT') |
|
|
|
print('------ NEED AUTH - SUPPLICANT DISCONNECT') |
|
|
|
self.forget_connection(self._connecting_to_ssid, block=True) |
|
|
|
self.forget_connection(self._connecting_to_ssid, block=True) |
|
|
|