summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua4
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 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")