From 2221b44d98cb3f80d65d4be5d1a83b3b024bace8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 5 Dec 2011 18:35:00 +0000 Subject: [PATCH] modules/admin-core: expose txpower offset in wifi json status --- modules/admin-core/luasrc/tools/status.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/admin-core/luasrc/tools/status.lua b/modules/admin-core/luasrc/tools/status.lua index ff98d459b..2eef3e0e1 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(), -- 2.25.1