Skip to content

Commit aefa0c8

Browse files
authored
Fix AP startup.
Completely reset the wlan before attempting to start up the AP. Fix default WiFi connection name.
2 parents 096fce3 + 4eac6f5 commit aefa0c8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

netconnectd/server.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(
8484
ap_forwarding=False,
8585
ap_domain=None,
8686
ap_enable_if_wired=False,
87-
wifi_name="netconnect_wifi",
87+
wifi_name="netconnectd_wifi",
8888
wifi_free=False,
8989
wifi_kill=False,
9090
wifi_default_country="DE",
@@ -415,7 +415,11 @@ def start_ap(self):
415415

416416
# bring up the ap
417417
self.logger.debug("Freeing wifi interface")
418-
self.free_wifi()
418+
try:
419+
self.wifi_connection.deactivate()
420+
except:
421+
pass
422+
self.reset_wifi()
419423
self.logger.debug("Starting up AP")
420424

421425
try:

0 commit comments

Comments
 (0)