Skip to content

Commit

Permalink
seems the removeConfig needs to be called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
olijf committed Mar 30, 2016
1 parent c6b01a3 commit 0d9684b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rest/api/api_network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d9684b

Please sign in to comment.