summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2014-08-10 15:27:23 +0000
committerManuel Munz <freifunk@somakoma.de>2014-08-10 15:27:23 +0000
commit5c311e3e78a94a50ea68c7c0e57f1212ba37bf17 (patch)
tree0fdcc3d3a93295b0fb36ba92abca64f4f5953d2a
parentb5ade8195ade3f927c812cb20278e66de29a472f (diff)
modules/freifunk: fix wifi overview on public status page
-rw-r--r--modules/freifunk/luasrc/view/freifunk/public_status.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/freifunk/luasrc/view/freifunk/public_status.htm b/modules/freifunk/luasrc/view/freifunk/public_status.htm
index f6572cf32e..10bd849d7d 100644
--- a/modules/freifunk/luasrc/view/freifunk/public_status.htm
+++ b/modules/freifunk/luasrc/view/freifunk/public_status.htm
@@ -67,7 +67,7 @@ end
if luci.http.formvalue("status") == "1" then
local rv = { }
- for dev in ipairs(netdevs) do
+ for dev in pairs(netdevs) do
local j = { id = dev }
local iw = luci.sys.wifi.getiwinfo(dev)
if iw then
@@ -271,7 +271,7 @@ end
netlist[#netlist+1] = net:ifname()
netdevs[net:ifname()] = dev:name()
- if net.iwdata.ifname then
+ if net.iwdata.device then
local signal = net.iwinfo.signal or "N/A"
local noise = net.iwinfo.noise or "N/A"
local q = net.iwinfo.quality or "0"