|
|
@ -144,13 +144,10 @@ class WifiManager: |
|
|
|
self._bus.close() |
|
|
|
self._bus.close() |
|
|
|
|
|
|
|
|
|
|
|
def _run(self): |
|
|
|
def _run(self): |
|
|
|
while True: |
|
|
|
while self._running: |
|
|
|
if self._active: |
|
|
|
if self._active: |
|
|
|
self._update_networks() |
|
|
|
self._update_networks() |
|
|
|
|
|
|
|
|
|
|
|
if not self._running: |
|
|
|
|
|
|
|
break |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
time.sleep(1) |
|
|
|
time.sleep(1) |
|
|
|
|
|
|
|
|
|
|
|
def set_active(self, active: bool): |
|
|
|
def set_active(self, active: bool): |
|
|
@ -290,6 +287,9 @@ class WifiManager: |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
try: |
|
|
|
ap = AccessPoint.from_dbus(ap_props, ap_path, active_ap_path) |
|
|
|
ap = AccessPoint.from_dbus(ap_props, ap_path, active_ap_path) |
|
|
|
|
|
|
|
if ap.ssid == "": |
|
|
|
|
|
|
|
continue |
|
|
|
|
|
|
|
|
|
|
|
if ap.ssid not in aps: |
|
|
|
if ap.ssid not in aps: |
|
|
|
aps[ap.ssid] = [] |
|
|
|
aps[ap.ssid] = [] |
|
|
|
|
|
|
|
|
|
|
|