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:
parent
253dc658f3
commit
9b024767d7
1 changed files with 3 additions and 0 deletions
|
@ -1902,6 +1902,9 @@ return L.view.extend({
|
||||||
uci.set('wireless', section_id, 'key', '1');
|
uci.set('wireless', section_id, 'key', '1');
|
||||||
uci.set('wireless', section_id, 'key1', passval);
|
uci.set('wireless', section_id, 'key1', passval);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
uci.set('wireless', section_id, 'encryption', 'none');
|
||||||
|
}
|
||||||
|
|
||||||
return network.addNetwork(nameval, { proto: 'dhcp' }).then(function(net) {
|
return network.addNetwork(nameval, { proto: 'dhcp' }).then(function(net) {
|
||||||
firewall.deleteNetwork(net.getName());
|
firewall.deleteNetwork(net.getName());
|
||||||
|
|
Loading…
Reference in a new issue