luci-mod-network: explicitely configure "none" encryption in wifi join

Fixes: #3663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-02-21 20:53:42 +01:00
parent 253dc658f3
commit 9b024767d7

View 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());