From 0d9684bfcafa7e96000412488c9ccd4a7908c982 Mon Sep 17 00:00:00 2001 From: olijf Date: Wed, 30 Mar 2016 11:23:27 +0200 Subject: [PATCH] seems the removeConfig needs to be called twice --- src/rest/api/api_network.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rest/api/api_network.lua b/src/rest/api/api_network.lua index 2570b49..73c8264 100644 --- a/src/rest/api/api_network.lua +++ b/src/rest/api/api_network.lua @@ -154,6 +154,7 @@ function M.associate_POST(request, response) log:info(MOD_ABBR, "associated to wifi: "..utils.dump(argSsid)) else log:info(MOD_ABBR, "failed to associate to wifi: "..utils.dump(argSsid).." ("..utils.dump(msg)..")") + wifi.removeConfig(argSsid) local backupssid = wifi.getSubstitutedSsid(settings.get('network.ap.ssid')) netconf.setupAccessPoint(backupssid) netconf.enableAccessPoint(backupssid)