File tree Expand file tree Collapse file tree
netjsonconfig/backends/airos Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
3873def 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 ,
You can’t perform that action at this time.
0 commit comments