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 27bc925bd290003a343cedd8477b3085b5b69a9b..0efc51be23a5145f5586074f1ce4fbf6ef214421 100644 (file)
@@ -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(),