From 99ebb788cff5d22ce04c267d2818b562b68e8801 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 16 Jul 2018 14:39:55 +0200 Subject: [PATCH] luci-mod-network: disable setup on new wifi-iface add If we add a new wifi-iface to the config then the iface will start at once. But normaly we would configure the wireless security in the next step. Signed-off-by: Florian Eckert --- modules/luci-mod-network/luasrc/controller/admin/network.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/luci-mod-network/luasrc/controller/admin/network.lua b/modules/luci-mod-network/luasrc/controller/admin/network.lua index a587b7e51..a200f79b5 100644 --- a/modules/luci-mod-network/luasrc/controller/admin/network.lua +++ b/modules/luci-mod-network/luasrc/controller/admin/network.lua @@ -175,7 +175,8 @@ function wifi_add() local net = dev:add_wifinet({ mode = "ap", ssid = "OpenWrt", - encryption = "none" + encryption = "none", + disabled = 1 }) ntm:save("wireless") -- 2.25.1