From 4fcb6d56bcbf6a04801eba10c2f661c8aca41633 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 3 Oct 2014 17:28:21 +0000 Subject: [PATCH] modules/base: provide disable state in luci.tools.status.wifi_network() Signed-off-by: Jo-Philipp Wich --- modules/base/luasrc/tools/status.lua | 2 ++ 1 file changed, 2 insertions(+) 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(), -- 2.25.1