From: Manuel Munz Date: Sun, 10 Aug 2014 15:27:23 +0000 (+0000) Subject: modules/freifunk: fix wifi overview on public status page X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5c311e3e78a94a50ea68c7c0e57f1212ba37bf17;p=project%2Fluci.git modules/freifunk: fix wifi overview on public status page --- 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"