modules/base: provide disable state in luci.tools.status.wifi_network()
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2014 17:28:21 +0000 (17:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2014 17:28:21 +0000 (17:28 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/base/luasrc/tools/status.lua

index 27bc925..0efc51b 100644 (file)
@@ -166,6 +166,8 @@ function wifi_network(id)
                                country    = net:country(),
                                txpower    = net:txpower(),
                                txpoweroff = net:txpower_offset(),
                                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(),
                                device     = {
                                        up     = dev:is_up(),
                                        device = dev:name(),