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 21:20:07 +0000 (22:20 +0100)
Fixes: #3663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9b024767d7604c5a17b1e70df45231f134282003)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 00e2fd889dd19e0a24fbe81766376c397b35abda..2519a68ae91c22f4cc9033189e811859210668a9 100644 (file)
@@ -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());