summaryrefslogtreecommitdiffhomepage
path: root/modules/base/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-10-03 17:28:21 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-10-03 17:28:21 +0000
commit4fcb6d56bcbf6a04801eba10c2f661c8aca41633 (patch)
treed6e9d7e5a5a6af7d05cb3f5075bb14b91a818ea2 /modules/base/luasrc
parentcee38c117770ba76604778d3940ba7d354abd1a4 (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/luasrc')
-rw-r--r--modules/base/luasrc/tools/status.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/base/luasrc/tools/status.lua b/modules/base/luasrc/tools/status.lua
index 27bc925bd2..0efc51be23 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(),