File tree 2 files changed +12
-32
lines changed
netjsonconfig/backends/airos
2 files changed +12
-32
lines changed Original file line number Diff line number Diff line change @@ -710,9 +710,9 @@ def _access_point_intermediate(self, original):
710
710
'profile' : 'AUTO' ,
711
711
}
712
712
wpasupplicant_status = {
713
+ 'none' : 'enabled' ,
713
714
'wpa2_personal' : 'disabled' ,
714
715
'wpa2_enterprise' : 'disabled' ,
715
- 'none' : 'enabled' ,
716
716
}
717
717
result = []
718
718
@@ -725,15 +725,18 @@ def _access_point_intermediate(self, original):
725
725
})
726
726
temp_dev ['status' ] = status
727
727
network = ap_auth_protocols [proto ](head )
728
+ profile = {
729
+ 'name' : 'AUTO' ,
730
+ 'network' : [network , self .secondary_network ()],
731
+ }
732
+
733
+ if proto == 'wpa2_enterprise' :
734
+ del temp_dev ['profile' ]
735
+ del profile ['name' ]
728
736
729
737
result .append ({
730
738
'device' : [temp_dev ],
731
- 'profile' : [
732
- {
733
- 'name' : 'AUTO' ,
734
- 'network' : [network , self .secondary_network ()],
735
- },
736
- ],
739
+ 'profile' : [profile ],
737
740
})
738
741
return (('wpasupplicant' , result ),)
739
742
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ def ap_wpa2_personal(interface):
26
26
return {
27
27
'psk' : encryption (interface )['key' ],
28
28
'ssid' : ssid (interface ),
29
+ 'priority' : 100 ,
29
30
'key_mgmt' : [
30
31
{
31
32
'name' : 'NONE' ,
32
33
},
33
34
],
34
- 'priority' : 100 ,
35
35
}
36
36
37
37
@@ -43,33 +43,10 @@ def ap_wpa2_enterprise(interface):
43
43
"""
44
44
return {
45
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
46
}
71
47
72
48
49
+ # STATION
73
50
def sta_no_encryption (interface ):
74
51
"""
75
52
Returns the wpasupplicant.profile.1.network
You can’t perform that action at this time.
0 commit comments