diff options
author | Steven Barth <steven@midlink.org> | 2008-09-13 12:20:39 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-13 12:20:39 +0000 |
commit | f9303705a0210a5c8dd7b44697c3ff31e1473b1a (patch) | |
tree | 6b3ea8bbbd3e80af625905c307233eb803e5acea /modules | |
parent | b69589fba337ac9c362e02d58c354b2e218900c7 (diff) |
Overall CBI-UVL ineraction fixes
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 1 | ||||
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/wifi.lua | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index 44f0a4f7b..0f99c6ec0 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -236,6 +236,7 @@ end ------------------- WiFI-Encryption ------------------- encr = s:option(ListValue, "encryption", translate("encryption")) +encr.override_values = true encr:depends({mode="ap"}) encr:depends({mode="sta"}) encr:depends({mode="adhoc"}) diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua index cbf3d6a25..13ae997fb 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua @@ -141,6 +141,7 @@ local hwtype = m:get(wifidevs[1], "type") if hwtype == "atheros" then mode = s:option(ListValue, "mode", translate("mode")) + mode.override_values = true mode:value("", "auto") mode:value("11b", "802.11b") mode:value("11g", "802.11g") @@ -206,6 +207,7 @@ function mode.write(self, section, value) end encr = s:option(ListValue, "encryption", translate("encryption")) +encr.override_values = true encr:value("none", "No Encryption") encr:value("wep", "WEP") |