git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
659a8bd
)
modules/admin-full: clear radio wide disable flag when toggling wifinet
author
Jo-Philipp Wich
<redacted>
Thu, 22 Sep 2011 02:49:03 +0000
(
02:49
+0000)
committer
Jo-Philipp Wich
<redacted>
Thu, 22 Sep 2011 02:49:03 +0000
(
02:49
+0000)
modules/admin-full/luasrc/controller/admin/network.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/controller/admin/network.lua
b/modules/admin-full/luasrc/controller/admin/network.lua
index d2f17a4fa16727d27a9542a75054d0a8091293da..85476fffe3999b74329801bdeb20b18bf69b3854 100644
(file)
--- 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")
git clone https://git.99rst.org/PROJECT