File tree Expand file tree Collapse file tree 2 files changed +12
-32
lines changed
netjsonconfig/backends/airos Expand file tree Collapse file tree 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):
710710 'profile' : 'AUTO' ,
711711 }
712712 wpasupplicant_status = {
713+ 'none' : 'enabled' ,
713714 'wpa2_personal' : 'disabled' ,
714715 'wpa2_enterprise' : 'disabled' ,
715- 'none' : 'enabled' ,
716716 }
717717 result = []
718718
@@ -725,15 +725,18 @@ def _access_point_intermediate(self, original):
725725 })
726726 temp_dev ['status' ] = status
727727 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' ]
728736
729737 result .append ({
730738 'device' : [temp_dev ],
731- 'profile' : [
732- {
733- 'name' : 'AUTO' ,
734- 'network' : [network , self .secondary_network ()],
735- },
736- ],
739+ 'profile' : [profile ],
737740 })
738741 return (('wpasupplicant' , result ),)
739742
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ def ap_wpa2_personal(interface):
2626 return {
2727 'psk' : encryption (interface )['key' ],
2828 'ssid' : ssid (interface ),
29+ 'priority' : 100 ,
2930 'key_mgmt' : [
3031 {
3132 'name' : 'NONE' ,
3233 },
3334 ],
34- 'priority' : 100 ,
3535 }
3636
3737
@@ -43,33 +43,10 @@ def ap_wpa2_enterprise(interface):
4343 """
4444 return {
4545 '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- ],
7046 }
7147
7248
49+ # STATION
7350def sta_no_encryption (interface ):
7451 """
7552 Returns the wpasupplicant.profile.1.network
You can’t perform that action at this time.
0 commit comments