luci-0.8: merge r4708
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 29 May 2009 19:54:59 +0000 (19:54 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 29 May 2009 19:54:59 +0000 (19:54 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua

index e0ed685507fc50d60ab824196a482ea3bccc4043..9227fd2bde37f614a50ee9c35f31b388989871bb 100644 (file)
@@ -365,10 +365,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"))
index 4f1926b7b74f64a9cab3270c59d18c52e41d79c6..22fd03fea9b079c20f0f9a96379eafa8f7981628 100644 (file)
@@ -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