NIU: Cleanup
[project/luci.git] / modules / niu / luasrc / model / cbi / niu / wireless / ap.lua
index f4e58e9..54f510d 100644 (file)
@@ -9,12 +9,11 @@ end
 local function deviceroute(self)
        cursor:unload("wireless")
        local d = cursor:get("wireless", "ap", "device")
 local function deviceroute(self)
        cursor:unload("wireless")
        local d = cursor:get("wireless", "ap", "device")
-       local h = cursor:get("wireless", d, "type")
        if d ~= "none" then
                cursor:delete_all("wireless", "wifi-iface", function(s)
                        return s.device == d and s._niu ~= "1"
                end)
        if d ~= "none" then
                cursor:delete_all("wireless", "wifi-iface", function(s)
                        return s.device == d and s._niu ~= "1"
                end)
-               cursor:set("wireless", d, "disabled", 0)                
+               cursor:set("wireless", d, "disabled", 0)
                cursor:set("wireless", "ap", "network", "lan")
                self:set("ap1", load("niu/wireless/ap1"))
                self:set_route("ap1")
                cursor:set("wireless", "ap", "network", "lan")
                self:set("ap1", load("niu/wireless/ap1"))
                self:set_route("ap1")