From 70f77f481a04e53f071bea93a8b77ce104f236db Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 15 Nov 2009 19:02:25 +0000 Subject: [PATCH] If AP-WDS supports 802.11i then also allow the required options to be set --- .../admin-full/luasrc/model/cbi/admin_network/wifi.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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 1d46c7551..095e0efb9 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -504,11 +504,15 @@ if wnet then server = s:taboption("encryption", Value, "server", translate("Radius-Server")) server:depends({mode="ap", encryption="wpa"}) server:depends({mode="ap", encryption="wpa2"}) + server:depends({mode="ap-wds", encryption="wpa"}) + server:depends({mode="ap-wds", encryption="wpa2"}) server.rmempty = true port = s:taboption("encryption", Value, "port", translate("Radius-Port")) port:depends({mode="ap", encryption="wpa"}) port:depends({mode="ap", encryption="wpa2"}) + port:depends({mode="ap-wds", encryption="wpa"}) + port:depends({mode="ap-wds", encryption="wpa2"}) port.rmempty = true key = s:taboption("encryption", Value, "key", translate("Key")) @@ -519,6 +523,8 @@ if wnet then key:depends("encryption", "psk-mixed") key:depends({mode="ap", encryption="wpa"}) key:depends({mode="ap", encryption="wpa2"}) + key:depends({mode="ap-wds", encryption="wpa"}) + key:depends({mode="ap-wds", encryption="wpa2"}) key.rmempty = true key.password = true @@ -526,6 +532,8 @@ if wnet then nasid = s:taboption("encryption", Value, "nasid", translate("NAS ID")) nasid:depends({mode="ap", encryption="wpa"}) nasid:depends({mode="ap", encryption="wpa2"}) + nasid:depends({mode="ap-wds", encryption="wpa"}) + nasid:depends({mode="ap-wds", encryption="wpa2"}) nasid.rmempty = true eaptype = s:taboption("encryption", ListValue, "eap_type", translate("EAP-Method")) -- 2.25.1