From ec170d62821579dea84e9333a7c7561dd7d59157 Mon Sep 17 00:00:00 2001 From: Georgi Valkov Date: Sat, 18 Jul 2015 02:28:54 +0300 Subject: Fix: A disabled wireless network may be shown as enabled, when multiple networks are defined on the same radio. --- modules/luci-base/luasrc/tools/status.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/luci-base/luasrc/tools/status.lua') diff --git a/modules/luci-base/luasrc/tools/status.lua b/modules/luci-base/luasrc/tools/status.lua index 6e588fe71d..0dd092c6df 100644 --- a/modules/luci-base/luasrc/tools/status.lua +++ b/modules/luci-base/luasrc/tools/status.lua @@ -120,7 +120,9 @@ function wifi_networks() assoclist = net:assoclist(), country = net:country(), txpower = net:txpower(), - txpoweroff = net:txpower_offset() + txpoweroff = net:txpower_offset(), + disabled = (dev:get("disabled") == "1" or + net:get("disabled") == "1") } end -- cgit v1.2.3