diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-08 22:40:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-08 22:40:04 +0000 |
commit | 97e27a0bcf5eb9c388a05f73dc13867ef8703e4c (patch) | |
tree | 5742a692a60cce317bb30bcb1f807fad663127df /modules/admin-full/luasrc/controller | |
parent | b9c9b7ffeb5e9670590e9dfc1a5a35caf6e11212 (diff) |
modules/admin-full: properly handle disabled radios in live overview
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/network.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |