luci-mod-network: disable setup on new wifi-iface add 2177/head
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 16 Jul 2018 12:39:55 +0000 (14:39 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 24 Sep 2018 09:28:51 +0000 (11:28 +0200)
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 <fe@dev.tdt.de>
modules/luci-mod-network/luasrc/controller/admin/network.lua

index a587b7e513ab98720bbcc1125a095b058fabd27f..a200f79b51680e3ea8d03708df776ebc8ad9bd91 100644 (file)
@@ -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")