Merge pull request #706 from KevinOConnor/anonidentity-20160407
authorManuel Munz <manu@somakoma.de>
Mon, 25 Apr 2016 14:06:10 +0000 (16:06 +0200)
committerManuel Munz <manu@somakoma.de>
Mon, 25 Apr 2016 14:06:10 +0000 (16:06 +0200)
luci-mod-admin-full: Add option to set anonymous_identity field

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

index 945512e094ac612d2f51035bac69b86c0c0b69f0..09763e8f14523ba96842d3a3c72521b1521fc27f 100644 (file)
@@ -967,6 +967,24 @@ if hwtype == "atheros" or hwtype == "mac80211" or hwtype == "prism2" then
        identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa2"})
        identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa"})
 
+       anonymous_identity = s:taboption("encryption", Value, "anonymous_identity", translate("Anonymous Identity"))
+       anonymous_identity:depends({mode="sta", eap_type="fast", encryption="wpa2"})
+       anonymous_identity:depends({mode="sta", eap_type="fast", encryption="wpa"})
+       anonymous_identity:depends({mode="sta", eap_type="peap", encryption="wpa2"})
+       anonymous_identity:depends({mode="sta", eap_type="peap", encryption="wpa"})
+       anonymous_identity:depends({mode="sta", eap_type="ttls", encryption="wpa2"})
+       anonymous_identity:depends({mode="sta", eap_type="ttls", encryption="wpa"})
+       anonymous_identity:depends({mode="sta-wds", eap_type="fast", encryption="wpa2"})
+       anonymous_identity:depends({mode="sta-wds", eap_type="fast", encryption="wpa"})
+       anonymous_identity:depends({mode="sta-wds", eap_type="peap", encryption="wpa2"})
+       anonymous_identity:depends({mode="sta-wds", eap_type="peap", encryption="wpa"})
+       anonymous_identity:depends({mode="sta-wds", eap_type="ttls", encryption="wpa2"})
+       anonymous_identity:depends({mode="sta-wds", eap_type="ttls", encryption="wpa"})
+       anonymous_identity:depends({mode="sta", eap_type="tls", encryption="wpa2"})
+       anonymous_identity:depends({mode="sta", eap_type="tls", encryption="wpa"})
+       anonymous_identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa2"})
+       anonymous_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"})
        password:depends({mode="sta", eap_type="fast", encryption="wpa"})