luci-mod-network: explicitely configure "none" encryption in wifi join
authorJo-Philipp Wich <jo@mein.io>
Fri, 21 Feb 2020 19:53:42 +0000 (20:53 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 21 Feb 2020 19:54:26 +0000 (20:54 +0100)
Fixes: #3663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 4c75a2f0c951d5e489021ff99d0d56dd8d57c8cf..a4de1c17c048bb0f098c347eeb3c4f3d657551a6 100644 (file)
@@ -1902,6 +1902,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());