modules/admin-full: add requested network id in wifi status JSON response
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Nov 2010 18:48:05 +0000 (18:48 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Nov 2010 18:48:05 +0000 (18:48 +0000)
modules/admin-full/luasrc/controller/admin/network.lua

index a6324f427d7026928350cec68945fdbcfac82501..df4529d3413b2a7969400c1cab9e120ca4a164ea 100644 (file)
@@ -231,7 +231,7 @@ function wifi_status()
                local iw = luci.sys.wifi.getiwinfo(dev)
                if iw then
                        local f
-                       local j = { }
+                       local j = { id = dev }
                        for _, f in ipairs({
                                "channel", "frequency", "txpower", "bitrate", "signal", "noise",
                                "quality", "quality_max", "mode", "ssid", "bssid", "country",