Skip to content

Commit cd9efa4

Browse files
committed
[airos] added support for access point in wpa2_enterprise mode to module
1 parent e7386af commit cd9efa4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

netjsonconfig/backends/airos/wpasupplicant.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,41 @@ def ap_wpa2_personal(interface):
3535
}
3636

3737

38+
def ap_wpa2_enterprise(interface):
39+
"""
40+
Returns the wpasupplicant.profile.1.network
41+
for wpa2_personal as the indernediate dict
42+
in ``access_point`` mode
43+
"""
44+
return {
45+
'ssid': ssid(interface),
46+
'phase2=auth': 'MSCHAPV2',
47+
'eap': [
48+
{
49+
'name': 'TTLS',
50+
'status': 'enabled',
51+
},
52+
],
53+
'anonymous_identity': 'TODO',
54+
'pairwise': [
55+
{
56+
'name': 'CCMP',
57+
},
58+
],
59+
'proto': [
60+
{
61+
'name': 'RSN',
62+
},
63+
],
64+
'priority': 100,
65+
'key_mgmt': [
66+
{
67+
'name': 'WPA-EAP',
68+
},
69+
],
70+
}
71+
72+
3873
def sta_no_encryption(interface):
3974
"""
4075
Returns the wpasupplicant.profile.1.network
@@ -130,6 +165,7 @@ def sta_wpa2_enterprise(interface):
130165
'access_point': {
131166
'none': ap_no_encryption,
132167
'wpa2_personal': ap_wpa2_personal,
168+
'wpa2_enterprise': ap_wpa2_enterprise,
133169
},
134170
'station': {
135171
'none': sta_no_encryption,

0 commit comments

Comments
 (0)