modules/admin-full: fix arp lookup in wifi overview
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 12 Oct 2010 05:06:34 +0000 (05:06 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 12 Oct 2010 05:06:34 +0000 (05:06 +0000)
modules/admin-full/luasrc/view/admin_network/wifi_overview.htm

index f9526ac1840b6e2f0533e9fcf70108dd15a5c199..4ccee76c07aca2c4829df39050f0593ed2e6588b 100644 (file)
@@ -183,14 +183,14 @@ $Id$
                                                <td class="cbi-value-field"><img src="<%=guess_wifi_signal(net:signal_level(info.signal, info.noise))%>" title="Signal: <%=info.signal%> dBm / Noise: <%=info.noise%> dBm" /></td>
                                                <td class="cbi-value-field"><%=net:active_ssid()%></td>
                                                <td class="cbi-value-field"><%=mac%></td>
-                                               <td class="cbi-value-field"><%=arpcache[mac] or "n/a"%></td>
+                                               <td class="cbi-value-field"><%=arpcache[mac:lower()] or "n/a"%></td>
                                                <td class="cbi-value-field"><%=info.signal%> dBm</td>
                                                <td class="cbi-value-field"><%=info.noise%> dBm</td>
                                        </tr>
                                        <% end %>
                                <% end %>
                        <% end %>
-                       <% if count <= 0 then %>
+                       <% if count < 0 then %>
                        <tr class="cbi-section-table-row cbi-rowstyle-2">
                                <td class="cbi-value-field" colspan="6">
                                        <em>No information available</em>