modules/base: provide disable state in luci.tools.status.wifi_network()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2014-10-03 17:28:21 +00:00
parent cee38c1177
commit 4fcb6d56bc

View file

@ -166,6 +166,8 @@ function wifi_network(id)
country = net:country(),
txpower = net:txpower(),
txpoweroff = net:txpower_offset(),
disabled = (dev:get("disabled") == "1" or
net:get("disabled") == "1"),
device = {
up = dev:is_up(),
device = dev:name(),