Skip to content

Commit f6dbdf4

Browse files
author
Ritwick DSouza
committed
[raspbian] Updated wep station mode
1 parent 51eef52 commit f6dbdf4

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

netjsonconfig/backends/raspbian/converters/wireless.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ def _get_encryption(self, wireless):
9292
new_encryption.update({
9393
'protocol': 'wep',
9494
'method': method,
95-
'option': encryption.get('options', None).split('_')[1],
9695
'key': encryption.get('key', None)
9796
})
9897
return new_encryption

netjsonconfig/backends/raspbian/templates/wpasupplicant.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{% elif 'wep' in wireless.encryption.protocol %}
3838
key_mgmt=NONE
3939
wep_key0="{{ wireless.encryption.key }}"
40-
{% if wireless.encryption.option == 'shared' %}
40+
{% if wireless.encryption.method == 'shared' %}
4141
auth_algs=shared
4242
{% endif %}
4343
{% else %}

0 commit comments

Comments
 (0)