X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fview%2Fadmin_network%2Fwifi_overview.htm;h=72fe39ea3ee833baced7732f466a6c9a6068efa4;hp=251f767d23272ca0d9a0d5444716e13de5a46189;hb=eed55531107c6642efc0dc93211325d9b7318022;hpb=4d3ddb03a308629abc4f9c37686c5d2351ce5950 diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index 251f767d2..72fe39ea3 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -65,7 +65,7 @@ $Id$ -- dunno yet else - return "Unkown 802.11 Wireless Controller" + return "Generic 802.11 Wireless Controller" end end @@ -130,7 +130,7 @@ $Id$ end function find_wifi_frequency(state) - if state.active then + if state and state.active and state.networks[1] and state.networks[1].info then return string.format("%d (%.03f GHz)", state.networks[1].info.channel, state.networks[1].info.frequency / 1000); @@ -160,8 +160,10 @@ $Id$ .png" style="float:left; margin-right:10px" /> <%=state.hwname%> (<%=dev%>)
- Channel: <%=find_wifi_frequency(state)%> | - Bitrate: <%=state.active and (state.networks[1].info.bitrate / 1000) .. " Mb/s" or "n/a"%> + <% if state.networks[1] and state.networks[1].info then %> + Channel: <%=find_wifi_frequency(state)%> | + Bitrate: <%=state.networks[1].info.bitrate and (state.networks[1].info.bitrate / 1000) .. " Mb/s" or "n/a"%> + <% end %> Find and join network @@ -176,14 +178,14 @@ $Id$ -
+
<%=percent_wifi_signal(net.info)%>% SSID: <%=utl.pcdata(net.info.ssid)%> | Mode: <%=net.info.mode%>
BSSID: <%=net.info.bssid%> | - Encryption: <%=net.info.enctype%> + Encryption: <%=net.info.enctype or "None"%> Edit this network