modules/admin-full: Display wifi devices as enabled if user removes the disabled...
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_wifi / devices.lua
index b4e0e29..d463157 100644 (file)
@@ -21,6 +21,10 @@ en = s:option(Flag, "disabled", translate("enable"))
 en.enabled = "0"
 en.disabled = "1"
 
 en.enabled = "0"
 en.disabled = "1"
 
+function en.cfgvalue(self, section)
+       return Flag.cfgvalue(self, section) or "0"
+end
+
 t = s:option(ListValue, "type", translate("type"))
 t:value("broadcom")
 t:value("atheros")
 t = s:option(ListValue, "type", translate("type"))
 t:value("broadcom")
 t:value("atheros")