X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-travelmate%2Fluasrc%2Fview%2Ftravelmate%2Fwifi_scan.htm;h=a8f63a17e28e3a8124acee31eb219a8ae734a097;hp=2ce45c63cb5d07db1c961c37c9cebccd7a1467e5;hb=8f5604ee9e24c33dc53be979b73f28c712570bca;hpb=f450c0403d4aa2d1e5cbcb262315121b130990e9 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 2ce45c63c..a8f63a17e 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm @@ -4,10 +4,11 @@ This is free software, licensed under the Apache License, Version 2.0 -%> <%- - local sys = require "luci.sys" - local utl = require "luci.util" + local sys = require("luci.sys") + local utl = require("luci.util") local dev = luci.http.formvalue("device") - local iw = luci.sys.wifi.getiwinfo(dev) + local iw = luci.sys.wifi.getiwinfo(dev) + local wpa_label = {translate("WPA"), translate("WPA2"), translate("WPA/WPA2")} if not iw then luci.http.redirect(luci.dispatcher.build_url("admin/services/travelmate/stations")) @@ -17,7 +18,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") + return "%s (%s/%s)" %{wpa_label[info.wpa], table.concat(info.auth_suites), table.concat(info.group_ciphers)} elseif info.enabled then return translate("Unknown") else @@ -44,13 +45,17 @@ This is free software, licensed under the Apache License, Version 2.0
<%:Uplink SSID%> | +<%:Uplink BSSID%> | <%:Encryption%> | <%:Signal strength%> | |
---|---|---|---|---|
- <%=net.ssid and utl.pcdata(net.ssid) or "%s" % translate("hidden")%> + <%=net.ssid and utl.pcdata(net.ssid) or "%s" % translate("hidden")%> + | ++ <%=net.bssid and utl.pcdata(net.bssid)%> | <%=format_wifi_encryption(net.encryption)%> @@ -58,17 +63,18 @@ This is free software, licensed under the Apache License, Version 2.0 | <%=percent_wifi_signal(net)%> % | -- |