From da80dcc407d62834c16c5c96963e3411812bf82b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 21 Feb 2020 20:53:42 +0100 Subject: [PATCH] luci-mod-network: explicitely configure "none" encryption in wifi join Fixes: #3663 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 9b024767d7604c5a17b1e70df45231f134282003) --- .../htdocs/luci-static/resources/view/network/wireless.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index 00e2fd889..2519a68ae 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -1824,6 +1824,9 @@ return L.view.extend({ uci.set('wireless', section_id, 'key', '1'); uci.set('wireless', section_id, 'key1', passval); } + else { + uci.set('wireless', section_id, 'encryption', 'none'); + } return network.addNetwork(nameval, { proto: 'dhcp' }).then(function(net) { firewall.deleteNetwork(net.getName()); -- 2.25.1