modules/freifunk: fix wifi overview on public status page
This commit is contained in:
parent
b5ade8195a
commit
5c311e3e78
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ end
|
||||||
|
|
||||||
if luci.http.formvalue("status") == "1" then
|
if luci.http.formvalue("status") == "1" then
|
||||||
local rv = { }
|
local rv = { }
|
||||||
for dev in ipairs(netdevs) do
|
for dev in pairs(netdevs) do
|
||||||
local j = { id = dev }
|
local j = { id = dev }
|
||||||
local iw = luci.sys.wifi.getiwinfo(dev)
|
local iw = luci.sys.wifi.getiwinfo(dev)
|
||||||
if iw then
|
if iw then
|
||||||
|
@ -271,7 +271,7 @@ end
|
||||||
netlist[#netlist+1] = net:ifname()
|
netlist[#netlist+1] = net:ifname()
|
||||||
netdevs[net:ifname()] = dev:name()
|
netdevs[net:ifname()] = dev:name()
|
||||||
|
|
||||||
if net.iwdata.ifname then
|
if net.iwdata.device then
|
||||||
local signal = net.iwinfo.signal or "N/A"
|
local signal = net.iwinfo.signal or "N/A"
|
||||||
local noise = net.iwinfo.noise or "N/A"
|
local noise = net.iwinfo.noise or "N/A"
|
||||||
local q = net.iwinfo.quality or "0"
|
local q = net.iwinfo.quality or "0"
|
||||||
|
|
Loading…
Reference in a new issue