File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
netjsonconfig/backends/airos Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,41 @@ def ap_wpa2_personal(interface):
35
35
}
36
36
37
37
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
+
38
73
def sta_no_encryption (interface ):
39
74
"""
40
75
Returns the wpasupplicant.profile.1.network
@@ -130,6 +165,7 @@ def sta_wpa2_enterprise(interface):
130
165
'access_point' : {
131
166
'none' : ap_no_encryption ,
132
167
'wpa2_personal' : ap_wpa2_personal ,
168
+ 'wpa2_enterprise' : ap_wpa2_enterprise ,
133
169
},
134
170
'station' : {
135
171
'none' : sta_no_encryption ,
You can’t perform that action at this time.
0 commit comments