luci/modules/admin-full/luasrc/view/admin_status/iwscan.htm

52 lines
1.1 KiB
HTML
Raw Normal View History

2008-07-07 22:00:56 +00:00
<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
-%>
2008-05-08 16:14:49 +00:00
<%+header%>
2008-06-09 10:10:29 +00:00
<h1><%:iwscan%></h1>
<p><%:iwscan1%></p>
2008-05-08 16:14:49 +00:00
<br />
<table cellspacing="0" cellpadding="6" class="smalltext">
<tr>
2008-06-09 10:10:29 +00:00
<th><%:interface%></th>
2008-06-06 21:24:59 +00:00
<th>ESSID</th>
<th>BSSID</th>
2008-06-09 10:10:29 +00:00
<th><%:mode%></th>
<th><%:channel%></th>
<th><%:iwscan_encr%></th>
<th><%:iwscan_link%></th>
<th><%:iwscan_signal%></th>
<th><%:iwscan_noise%></th>
2008-05-08 16:14:49 +00:00
</tr>
<%for iface, cells in pairs(luci.sys.wifi.iwscan()) do
2008-05-22 14:04:03 +00:00
for i, cell in ipairs(cells) do
%>
<tr>
<td><%=iface%></td>
<td><%=luci.util.pcdata(cell.ESSID)%></td>
2008-05-22 14:04:03 +00:00
<td><%=cell.Address%></td>
<td><%=cell.Mode%></td>
<td><%=(cell.Channel or cell.Frequency or "")%></td>
<td><%=cell["Encryption key"]%></td>
<td><%=cell.Quality%></td>
<td><%=cell["Signal level"]%></td>
<td><%=cell["Noise level"]%></td>
</tr>
<%
end
end
%>
2008-05-08 16:14:49 +00:00
</table>
<br />
<%+footer%>