summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/luasrc/view
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2017-12-13 20:21:57 +0100
committerDirk Brenken <dev@brenken.org>2017-12-13 20:26:02 +0100
commitc67066ebbf2fcd6b3c82ba2145404a6246b2e33f (patch)
treee91bed82c6c7717ff781876493e4de8e3b2135ab /applications/luci-app-travelmate/luasrc/view
parentc7b39ae08f29f49b8b014054161b8b34a4cda8fb (diff)
luci-app-travelmate: enhance wireless security connection settings
* fix wpa enterprise options * add various wpa / wep options Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/view')
-rw-r--r--applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm8
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm
index 68ca63f459..aea194cde2 100644
--- a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm
+++ b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm
@@ -17,7 +17,7 @@ This is free software, licensed under the Apache License, Version 2.0
if info.wep == true then
return translate("WEP")
elseif info.wpa > 0 then
- return translate("WPA/WPA2 - " .. table.concat(info.auth_suites))
+ return translatef("%s (%s/%s)", (info.wpa == 3) and translate("WPA/WPA2") or (info.wpa == 2 and "WPA2" or "WPA"), table.concat(info.auth_suites), table.concat(info.group_ciphers))
elseif info.enabled then
return translate("Unknown")
else
@@ -70,9 +70,9 @@ This is free software, licensed under the Apache License, Version 2.0
<input type="hidden" name="bssid" value="<%=utl.pcdata(net.bssid)%>"/>
<input type="hidden" name="wep" value="<%=net.encryption.wep and 1 or 0%>"/>
<% if net.encryption.wpa then %>
- <input type="hidden" name="wpa_version" value="<%=net.encryption.wpa%>"/>
- <% for _, v in ipairs(net.encryption.auth_suites) do %><input type="hidden" name="wpa_suites" value="<%=v%>"/>
- <% end; end %>
+ <input type="hidden" name="wpa_version" value="<%=net.encryption.wpa%>"/>
+ <% for _, v in ipairs(net.encryption.auth_suites) do %><input type="hidden" name="wpa_suites" value="<%=v%>"/><% end %>
+ <% end %>
<input class="cbi-button cbi-button-apply" type="submit" value="<%:Add Uplink%>"/>
</form>
</td>