Identity field is required for EAP-TLS, too. 637/head
authormatthewreeve <matthewreeve@xmission.com>
Tue, 2 Feb 2016 00:40:32 +0000 (17:40 -0700)
committermatthewreeve <matthewreeve@xmission.com>
Tue, 2 Feb 2016 00:40:32 +0000 (17:40 -0700)
This patch enables editing the Identity field in EAP-TLS so that EAP-TLS configuration via LuCI works.

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

index e227b0874695037b4d094bec2a15d6047cd77bfd..9db42e3c4e9c870f75905dbccfc73ae166e53f57 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"})