diff options
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua b/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua index b4e0e2915b..d463157d19 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua @@ -21,6 +21,10 @@ en = s:option(Flag, "disabled", translate("enable")) 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") |