diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-22 02:49:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-22 02:49:03 +0000 |
commit | 01d99250aed1801fdcd05e332b0e53b9741871f3 (patch) | |
tree | 66cd40283690bd49039329f7b73824139f41ffee /modules/admin-full/luasrc | |
parent | 659a8bdf014a617cd8f254e90d73bed07b4d1e15 (diff) |
modules/admin-full: clear radio wide disable flag when toggling wifinet
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/network.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index d2f17a4fa..85476fffe 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") |