diff options
author | Georgi Valkov <gvalkov@abv.bg> | 2015-07-18 02:28:54 +0300 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-07-27 11:37:09 +0200 |
commit | ec170d62821579dea84e9333a7c7561dd7d59157 (patch) | |
tree | f0a2f4a1454700d2e91141cc6d82a3c8e5469bd2 /modules/luci-base | |
parent | 159b60f449b50d3069478c95203ebbaa90861ff5 (diff) |
Fix: A disabled wireless network may be shown as enabled, when multiple networks are defined on the same radio.
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/luasrc/tools/status.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 |