summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-09-25 07:32:50 +0200
committerGitHub <noreply@github.com>2018-09-25 07:32:50 +0200
commit136fba752cb02e22339481f1a4d33593445d124f (patch)
tree33a1a2bed7d2f913a76a4e5393d5ece78e4fe64d /modules
parentb6306b1f49e4974007b7a517a0dd22b3d059af9f (diff)
parent99ebb788cff5d22ce04c267d2818b562b68e8801 (diff)
Merge pull request #2177 from TDT-AG/pr/20180924-luci-mod-network
luci-mod-network: disable wifi config on new wifi-iface add
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-network/luasrc/controller/admin/network.lua3
1 files changed, 2 insertions, 1 deletions
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")