modules/admin-core: expose txpower offset in wifi json status
[project/luci.git] / modules / admin-core / luasrc / tools / status.lua
index ff98d45..2eef3e0 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(),