summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-02-10 15:07:17 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2017-02-10 15:07:17 +0200
commit4d31f7ca30efc7158f8184885df86b9325ecdcba (patch)
tree7b68778ee86ab149c021d5c4807ba4a46485ef4d /modules/luci-mod-admin-full
parenta225e4ac592a17c5a01cab8ff70d116000f9febc (diff)
luci-mod-admin-full: tweak 80211w options
Use ListValue type and enable translation of the option values. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'modules/luci-mod-admin-full')
-rw-r--r--modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
index 821f926c1a..d49786e541 100644
--- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -1125,16 +1125,16 @@ end
-- ieee802.11w options
if hwtype == "mac80211" then
- ieee80211w = s:taboption("encryption", Value, "ieee80211w",
+ ieee80211w = s:taboption("encryption", ListValue, "ieee80211w",
translate("802.11w Management Frame Protection"),
translate("Requires the 'full' version of wpad/hostapd " ..
"and support from the wifi driver <br>(as of Feb 2017: " ..
"ath9k and ath10k, in LEDE also mwlwifi and mt76)"))
ieee80211w.default = "0"
ieee80211w.rmempty = true
- ieee80211w:value("0", "Disabled (default)")
- ieee80211w:value("1", "Optional")
- ieee80211w:value("2", "Required")
+ ieee80211w:value("0", translate("Disabled (default)"))
+ ieee80211w:value("1", translate("Optional"))
+ ieee80211w:value("2", translate("Required"))
ieee80211w:depends({mode="ap", encryption="wpa2"})
ieee80211w:depends({mode="ap-wds", encryption="wpa2"})
ieee80211w:depends({mode="ap", encryption="psk2"})