libs/cbi: Fixed CBI handling of "Save & Apply"
[project/luci.git] / modules / admin-mini / luasrc / model / cbi / mini / wifi.lua
index 30766a47c9ffee6c35c74c381f04d56bcfe335dd..2890a78a3c4a1cb6daf5dadf28e4500abeba4370 100644 (file)
@@ -13,6 +13,7 @@ You may obtain a copy of the License at
 $Id$
 ]]--
 m = Map("wireless", translate("wifi"), translate("a_w_devices1"))
+m:chain("network")
 
 s = m:section(TypedSection, "wifi-device", translate("devices"))
 
@@ -67,8 +68,6 @@ function mode.write(self, section, value)
                        luci.model.uci.set("network", "wan", "_ifname", oldif)
                end
                luci.model.uci.set("network", "wan", "ifname", " ")
-               luci.model.uci.save("network")
-               luci.model.uci.unload("network")
 
                self.map:set(section, "network", "wan")
        else