Merge pull request #637 from matthewreeve/patch-1
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 2 Feb 2016 08:39:35 +0000 (09:39 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 2 Feb 2016 08:39:35 +0000 (09:39 +0100)
luci-mod-admin-full: Identity field is required for EAP-TLS, too.

modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua

index e227b08..9db42e3 100644 (file)
@@ -959,6 +959,10 @@ if hwtype == "atheros" or hwtype == "mac80211" or hwtype == "prism2" then
        identity:depends({mode="sta-wds", eap_type="peap", encryption="wpa"})
        identity:depends({mode="sta-wds", eap_type="ttls", encryption="wpa2"})
        identity:depends({mode="sta-wds", eap_type="ttls", encryption="wpa"})
+       identity:depends({mode="sta", eap_type="tls", encryption="wpa2"})
+       identity:depends({mode="sta", eap_type="tls", encryption="wpa"})
+       identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa2"})
+       identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa"})
 
        password = s:taboption("encryption", Value, "password", translate("Password"))
        password:depends({mode="sta", eap_type="fast", encryption="wpa2"})