From: Florian Eckert Date: Mon, 16 Jul 2018 12:39:55 +0000 (+0200) Subject: luci-mod-network: disable setup on new wifi-iface add X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F2177%2Fhead;p=project%2Fluci.git 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 --- diff --git a/modules/luci-mod-network/luasrc/controller/admin/network.lua b/modules/luci-mod-network/luasrc/controller/admin/network.lua index a587b7e513..a200f79b51 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")