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:
parent
85a6f07455
commit
da80dcc407
1 changed files with 3 additions and 0 deletions
|
@ -1824,6 +1824,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