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

Fixes: #3663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9b024767d7)
This commit is contained in:
Jo-Philipp Wich 2020-02-21 20:53:42 +01:00
parent 85a6f07455
commit da80dcc407

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