|
|
@ -265,7 +265,7 @@ class WifiManager: |
|
|
|
return conn_path |
|
|
|
return conn_path |
|
|
|
return None |
|
|
|
return None |
|
|
|
|
|
|
|
|
|
|
|
def connect_to_network(self, ssid: str, password: str | None): |
|
|
|
def connect_to_network(self, ssid: str, password: str): |
|
|
|
def worker(): |
|
|
|
def worker(): |
|
|
|
t = time.monotonic() |
|
|
|
t = time.monotonic() |
|
|
|
|
|
|
|
|
|
|
@ -294,7 +294,7 @@ class WifiManager: |
|
|
|
'ipv6': {'method': 'ignore'}, |
|
|
|
'ipv6': {'method': 'ignore'}, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if password is not None: |
|
|
|
if password: |
|
|
|
connection['802-11-wireless-security'] = { |
|
|
|
connection['802-11-wireless-security'] = { |
|
|
|
'key-mgmt': 'wpa-psk', |
|
|
|
'key-mgmt': 'wpa-psk', |
|
|
|
'auth-alg': 'open', |
|
|
|
'auth-alg': 'open', |
|
|
|