summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-05 18:35:00 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-05 18:35:00 +0000
commit2221b44d98cb3f80d65d4be5d1a83b3b024bace8 (patch)
treedbed24c8af38a70f3aa12433404dd2c2469e4256
parentfd130ead814c4137798b61f4114c64320c592925 (diff)
modules/admin-core: expose txpower offset in wifi json status
-rw-r--r--modules/admin-core/luasrc/tools/status.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/admin-core/luasrc/tools/status.lua b/modules/admin-core/luasrc/tools/status.lua
index ff98d459ba..2eef3e0e1c 100644
--- a/modules/admin-core/luasrc/tools/status.lua
+++ b/modules/admin-core/luasrc/tools/status.lua
@@ -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(),