modules/admin-core: expose txpower offset in wifi json status
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 5 Dec 2011 18:35:00 +0000 (18:35 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 5 Dec 2011 18:35:00 +0000 (18:35 +0000)
modules/admin-core/luasrc/tools/status.lua

index ff98d459baa82435a4cddac054eb5ab39fa26940..2eef3e0e1c7f1c700f9cd56a02bc853b29e773ad 100644 (file)
@@ -85,7 +85,8 @@ function wifi_networks()
                                ifname     = net:ifname(),
                                assoclist  = net:assoclist(),
                                country    = net:country(),
-                               txpower    = net:txpower()
+                               txpower    = net:txpower(),
+                               txpoweroff = net:txpower_offset()
                        }
                end
 
@@ -120,6 +121,7 @@ function wifi_network(id)
                                assoclist  = net:assoclist(),
                                country    = net:country(),
                                txpower    = net:txpower(),
+                               txpoweroff = net:txpower_offset(),
                                device     = {
                                        up     = dev:is_up(),
                                        device = dev:name(),