diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-03 17:28:21 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-03 17:28:21 +0000 |
commit | 4fcb6d56bcbf6a04801eba10c2f661c8aca41633 (patch) | |
tree | d6e9d7e5a5a6af7d05cb3f5075bb14b91a818ea2 /modules/base | |
parent | cee38c117770ba76604778d3940ba7d354abd1a4 (diff) |
modules/base: provide disable state in luci.tools.status.wifi_network()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/luasrc/tools/status.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/base/luasrc/tools/status.lua b/modules/base/luasrc/tools/status.lua index 27bc925bd..0efc51be2 100644 --- a/modules/base/luasrc/tools/status.lua +++ b/modules/base/luasrc/tools/status.lua @@ -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(), |