From 01d99250aed1801fdcd05e332b0e53b9741871f3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 22 Sep 2011 02:49:03 +0000 Subject: modules/admin-full: clear radio wide disable flag when toggling wifinet --- modules/admin-full/luasrc/controller/admin/network.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/admin-full/luasrc/controller') diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index d2f17a4fa1..85476fffe3 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -350,7 +350,9 @@ function wifi_reconnect() local netmd = require "luci.model.network".init() local net = netmd:get_wifinet(wnet) - if net then + local dev = net:get_device() + if dev and net then + dev:set("disabled", nil) net:set("disabled", (mode == "wireless_shutdown") and 1 or nil) netmd:commit("wireless") -- cgit v1.2.3