summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/model
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2016-09-07 16:41:04 +0000
committerKarl Palsson <karlp@etactica.com>2016-09-23 17:05:47 +0000
commit4a5cee22ed769623ce8c51e87eed32ad2c7b4e0e (patch)
tree0500aed12ca1295dfb6dcb297585ed88b7376bb1 /modules/luci-mod-admin-full/luasrc/model
parentccc9970c24fd9db110a62d47852d7d11247d2f13 (diff)
wifi_add: allow multi SSID by default if supported.
Instead of defaulting to replace, even on hardware that supports multi SSID, make the default to add. This reduces the chance of locking oneself out when adding a second network. If you intended to replace, ending up with two networks then deleting one is easier than recovering when the old network configuration is gone. Signed-off-by: Karl Palsson <karlp@etactica.com>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/model')
-rw-r--r--modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
index 55c970d1b6..05b27a9f0c 100644
--- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
+++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
@@ -46,7 +46,7 @@ if iw and iw.mbssid_support then
replace = m:field(Flag, "replace", translate("Replace wireless configuration"),
translate("An additional network will be created if you leave this checked."))
- function replace.cfgvalue() return "1" end
+ function replace.cfgvalue() return "0" end
else
replace = m:field(DummyValue, "replace", translate("Replace wireless configuration"))
replace.default = translate("The hardware is not multi-SSID capable and the existing " ..