From c67066ebbf2fcd6b3c82ba2145404a6246b2e33f Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Wed, 13 Dec 2017 20:21:57 +0100 Subject: luci-app-travelmate: enhance wireless security connection settings * fix wpa enterprise options * add various wpa / wep options Signed-off-by: Dirk Brenken --- .../luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm') 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 <% if net.encryption.wpa then %> - - <% for _, v in ipairs(net.encryption.auth_suites) do %> - <% end; end %> + + <% for _, v in ipairs(net.encryption.auth_suites) do %><% end %> + <% end %> -- cgit v1.2.3