From 97e27a0bcf5eb9c388a05f73dc13867ef8703e4c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 8 Nov 2010 22:40:04 +0000 Subject: modules/admin-full: properly handle disabled radios in live overview --- modules/admin-full/luasrc/controller/admin/network.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/admin-full/luasrc/controller') diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index b9d9d845ef..b271e20d24 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -224,14 +224,15 @@ end function wifi_status() local path = luci.dispatcher.context.requestpath + local arp = luci.sys.net.arptable() local rv = { } local dev for dev in path[#path]:gmatch("[%w%.%-]+") do + local j = { id = dev } local iw = luci.sys.wifi.getiwinfo(dev) if iw then local f - local j = { id = dev } for _, f in ipairs({ "channel", "frequency", "txpower", "bitrate", "signal", "noise", "quality", "quality_max", "mode", "ssid", "bssid", "country", @@ -239,9 +240,8 @@ function wifi_status() }) do j[f] = iw[f] end - - rv[#rv+1] = j end + rv[#rv+1] = j end if #rv > 0 then -- cgit v1.2.3