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)