modules/freifunk: fix wifi overview on public status page
authorManuel Munz <freifunk@somakoma.de>
Sun, 10 Aug 2014 15:27:23 +0000 (15:27 +0000)
committerManuel Munz <freifunk@somakoma.de>
Sun, 10 Aug 2014 15:27:23 +0000 (15:27 +0000)
modules/freifunk/luasrc/view/freifunk/public_status.htm

index f6572cf32e6d8c03dd148338759c0a92a45b9e00..10bd849d7dab110314fc29a5dcfe8893c316ef20 100644 (file)
@@ -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"