diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-29 19:54:18 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-29 19:54:18 +0000 |
commit | 601deffafc9e2388f6bf4e78de090d076416e96f (patch) | |
tree | c8789ad20eb85170bfae2969005dc3c76ca5a598 | |
parent | 53e5655810611cf68f58e247f323308313cee1e5 (diff) |
modules/admin-{mini,full}: fixup wpa-mixed dependencies, make key a password field, fix bssid dependency for broadcom ad-hoc mode in admin-mini
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 5 | ||||
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/wifi.lua | 6 |
2 files changed, 9 insertions, 2 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 fe28995ca1..a08adc58b3 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -369,10 +369,13 @@ port.rmempty = true key = s:option(Value, "key", translate("key")) key:depends("encryption", "wep") key:depends("encryption", "psk") -key:depends({mode="ap", encryption="wpa"}) key:depends("encryption", "psk2") +key:depends("encryption", "psk+psk2") +key:depends("encryption", "mixed") +key:depends({mode="ap", encryption="wpa"}) key:depends({mode="ap", encryption="wpa2"}) key.rmempty = true +key.password = true if hwtype == "atheros" or hwtype == "mac80211" or hwtype == "prism2" then nasid = s:option(Value, "nasid", translate("a_w_nasid")) diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua index 056b5ee4b6..7d05fb053b 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua @@ -253,10 +253,13 @@ end key = s:option(Value, "key", translate("key")) key:depends("encryption", "wep") key:depends("encryption", "psk") -key:depends({mode="ap", encryption="wpa"}) key:depends("encryption", "psk2") +key:depends("encryption", "psk+psk2") +key:depends("encryption", "mixed") +key:depends({mode="ap", encryption="wpa"}) key:depends({mode="ap", encryption="wpa2"}) key.rmempty = true +key.password = true server = s:option(Value, "server", translate("a_w_radiussrv")) server:depends({mode="ap", encryption="wpa"}) @@ -336,6 +339,7 @@ end if hwtype == "broadcom" then bssid:depends({mode="wds"}) + bssid:depends({mode="adhoc"}) end |