modules/admin-core: expose txpower offset in wifi json status

This commit is contained in:
Jo-Philipp Wich 2011-12-05 18:35:00 +00:00
parent fd130ead81
commit 2221b44d98

View file

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