summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-13 12:20:39 +0000
committerSteven Barth <steven@midlink.org>2008-09-13 12:20:39 +0000
commitf9303705a0210a5c8dd7b44697c3ff31e1473b1a (patch)
tree6b3ea8bbbd3e80af625905c307233eb803e5acea /modules
parentb69589fba337ac9c362e02d58c354b2e218900c7 (diff)
Overall CBI-UVL ineraction fixes
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua1
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/wifi.lua2
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 44f0a4f7bb..0f99c6ec08 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 cbf3d6a254..13ae997fb6 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")