summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-23 17:32:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-23 17:32:31 +0000
commita67aea40a0e362b6d737540bd0bf966fcb671bfc (patch)
tree29b4123432e313c2a767ace9431dd2e0dd49dd5b /modules
parent70de30251b1db8a80db9024fc62c8c550c3c18dd (diff)
* luci/modules/admin-full: convert cert fields to file upload fields in wifi configuration
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua6
1 files changed, 3 insertions, 3 deletions
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 b687133ced..d1e8917bff 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -121,7 +121,7 @@ function network.write(self, section, value)
if not m.uci:get("network", value) then
-- avoid "value not defined in enum" because network is not known yet
s.override_scheme = true
-
+
m:chain("network")
m.uci:set("network", value, "interface")
Value.write(self, section, value)
@@ -310,11 +310,11 @@ if hwtype == "atheros" or hwtype == "mac80211" then
eaptype:depends({mode="sta", encryption="wpa"})
eaptype:depends({mode="sta", encryption="wpa2i"})
- cacert = s:option(Value, "ca_cert", translate("a_w_cacert"))
+ cacert = s:option(FileUpload, "ca_cert", translate("a_w_cacert"))
cacert:depends({mode="sta", encryption="wpa"})
cacert:depends({mode="sta", encryption="wpa2i"})
- privkey = s:option(Value, "priv_key", translate("a_w_tlsprivkey"))
+ privkey = s:option(FileUpload, "priv_key", translate("a_w_tlsprivkey"))
privkey:depends({mode="sta", eap_type="TLS", encryption="wpa2i"})
privkey:depends({mode="sta", eap_type="TLS", encryption="wpa"})