@@ -332,15 +332,15 @@ int8_t ws_pae_auth_node_keys_remove(protocol_interface_info_entry_t *interface_p
332
332
sec_prot_keys_pmk_delete (& supp -> sec_keys );
333
333
sec_prot_keys_ptk_delete (& supp -> sec_keys );
334
334
supp -> access_revoked = true;
335
- tr_info ("Access revoked; keys removed, eui-64: %s" , trace_array (kmp_address_eui_64_get ( supp -> addr ) , 8 ));
335
+ tr_info ("Access revoked; keys removed, eui-64: %s" , trace_array (supp -> addr . eui_64 , 8 ));
336
336
return 0 ;
337
337
}
338
338
339
339
// Checks if supplicant is inactive
340
340
supp = ws_pae_lib_supp_list_entry_eui_64_get (& pae_auth -> inactive_supp_list , eui_64 );
341
341
if (supp ) {
342
342
// Deletes supplicant
343
- tr_info ("Access revoked; deleted, eui-64: %s" , trace_array (kmp_address_eui_64_get ( supp -> addr ) , 8 ));
343
+ tr_info ("Access revoked; deleted, eui-64: %s" , trace_array (supp -> addr . eui_64 , 8 ));
344
344
ws_pae_lib_supp_list_remove (& pae_auth -> inactive_supp_list , supp );
345
345
return 0 ;
346
346
}
@@ -720,8 +720,8 @@ static void ws_pae_auth_kmp_service_addr_get(kmp_service_t *service, kmp_api_t *
720
720
721
721
// Get supplicant address
722
722
supp_entry_t * entry = kmp_api_data_get (kmp );
723
- if (entry && entry -> addr ) {
724
- kmp_address_copy (remote_addr , entry -> addr );
723
+ if (entry ) {
724
+ kmp_address_copy (remote_addr , & entry -> addr );
725
725
}
726
726
}
727
727
@@ -767,7 +767,7 @@ static kmp_api_t *ws_pae_auth_kmp_incoming_ind(kmp_service_t *service, kmp_type_
767
767
sec_prot_keys_ptk_eui_64_write (& supp_entry -> sec_keys , kmp_address_eui_64_get (addr ));
768
768
} else {
769
769
// Updates relay address
770
- kmp_address_copy (supp_entry -> addr , addr );
770
+ kmp_address_copy (& supp_entry -> addr , addr );
771
771
}
772
772
773
773
// Increases waiting time for supplicant authentication
@@ -788,7 +788,7 @@ static kmp_api_t *ws_pae_auth_kmp_incoming_ind(kmp_service_t *service, kmp_type_
788
788
789
789
kmp_api_data_set (kmp , supp_entry );
790
790
// Sets address to KMP
791
- kmp_api_addr_set (kmp , supp_entry -> addr );
791
+ kmp_api_addr_set (kmp , & supp_entry -> addr );
792
792
793
793
// Sets security keys to KMP
794
794
kmp_api_sec_keys_set (kmp , & supp_entry -> sec_keys );
@@ -864,7 +864,7 @@ static void ws_pae_auth_next_kmp_trigger(pae_auth_t *pae_auth, supp_entry_t *sup
864
864
return ;
865
865
} else {
866
866
if (ws_pae_lib_kmp_list_type_get (& supp_entry -> kmp_list , next_type ) != NULL ) {
867
- tr_info ("KMP already ongoing; ignored, eui-64: %s" , trace_array (kmp_address_eui_64_get ( supp_entry -> addr ) , 8 ));
867
+ tr_info ("KMP already ongoing; ignored, eui-64: %s" , trace_array (supp_entry -> addr . eui_64 , 8 ));
868
868
return ;
869
869
}
870
870
}
@@ -882,7 +882,7 @@ static void ws_pae_auth_next_kmp_trigger(pae_auth_t *pae_auth, supp_entry_t *sup
882
882
uint16_t ongoing_eap_tls_cnt = ws_pae_lib_supp_list_kmp_count (& pae_auth -> active_supp_list , IEEE_802_1X_MKA );
883
883
if (ongoing_eap_tls_cnt >= MAX_SIMULTANEOUS_EAP_TLS_NEGOTIATIONS ) {
884
884
supp_entry -> retry_ticks = EAP_TLS_NEGOTIATION_TRIGGER_TIMEOUT ;
885
- tr_info ("EAP-TLS max ongoing reached, count %i, delayed: eui-64: %s" , ongoing_eap_tls_cnt , trace_array (kmp_address_eui_64_get ( supp_entry -> addr ) , 8 ));
885
+ tr_info ("EAP-TLS max ongoing reached, count %i, delayed: eui-64: %s" , ongoing_eap_tls_cnt , trace_array (supp_entry -> addr . eui_64 , 8 ));
886
886
return ;
887
887
}
888
888
}
@@ -907,7 +907,7 @@ static void ws_pae_auth_next_kmp_trigger(pae_auth_t *pae_auth, supp_entry_t *sup
907
907
}
908
908
}
909
909
910
- kmp_api_create_request (new_kmp , next_type , supp_entry -> addr , & supp_entry -> sec_keys );
910
+ kmp_api_create_request (new_kmp , next_type , & supp_entry -> addr , & supp_entry -> sec_keys );
911
911
}
912
912
913
913
static kmp_type_e ws_pae_auth_next_protocol_get (supp_entry_t * supp_entry )
@@ -920,11 +920,11 @@ static kmp_type_e ws_pae_auth_next_protocol_get(supp_entry_t *supp_entry)
920
920
sec_keys -> ptk_mismatch = true;
921
921
// start EAP-TLS towards supplicant
922
922
next_type = IEEE_802_1X_MKA ;
923
- tr_info ("PAE start EAP-TLS, eui-64: %s" , trace_array (kmp_address_eui_64_get ( supp_entry -> addr ) , 8 ));
923
+ tr_info ("PAE start EAP-TLS, eui-64: %s" , trace_array (supp_entry -> addr . eui_64 , 8 ));
924
924
} else if (sec_keys -> ptk_mismatch ) {
925
925
// start 4WH towards supplicant
926
926
next_type = IEEE_802_11_4WH ;
927
- tr_info ("PAE start 4WH, eui-64: %s" , trace_array (kmp_address_eui_64_get ( supp_entry -> addr ) , 8 ));
927
+ tr_info ("PAE start 4WH, eui-64: %s" , trace_array (supp_entry -> addr . eui_64 , 8 ));
928
928
}
929
929
930
930
int8_t gtk_index = -1 ;
@@ -942,14 +942,14 @@ static kmp_type_e ws_pae_auth_next_protocol_get(supp_entry_t *supp_entry)
942
942
if (next_type == KMP_TYPE_NONE && gtk_index >= 0 ) {
943
943
// Update just GTK
944
944
next_type = IEEE_802_11_GKH ;
945
- tr_info ("PAE start GKH, eui-64: %s" , trace_array (kmp_address_eui_64_get ( supp_entry -> addr ) , 8 ));
945
+ tr_info ("PAE start GKH, eui-64: %s" , trace_array (supp_entry -> addr . eui_64 , 8 ));
946
946
}
947
947
948
- tr_info ("PAE update GTK index: %i, eui-64: %s" , gtk_index , trace_array (kmp_address_eui_64_get ( supp_entry -> addr ) , 8 ));
948
+ tr_info ("PAE update GTK index: %i, eui-64: %s" , gtk_index , trace_array (supp_entry -> addr . eui_64 , 8 ));
949
949
}
950
950
951
951
if (next_type == KMP_TYPE_NONE ) {
952
- tr_info ("PAE authenticated, eui-64: %s" , trace_array (kmp_address_eui_64_get ( supp_entry -> addr ) , 8 ));
952
+ tr_info ("PAE authenticated, eui-64: %s" , trace_array (supp_entry -> addr . eui_64 , 8 ));
953
953
}
954
954
955
955
return next_type ;
@@ -1009,7 +1009,7 @@ static void ws_pae_auth_kmp_api_finished(kmp_api_t *kmp)
1009
1009
ws_pae_lib_kmp_list_delete (& supp_entry -> kmp_list , kmp );
1010
1010
1011
1011
if (retry_supp ) {
1012
- tr_info ("PAE next KMP trigger, eui-64: %s" , trace_array (kmp_address_eui_64_get ( retry_supp -> addr ) , 8 ));
1012
+ tr_info ("PAE next KMP trigger, eui-64: %s" , trace_array (retry_supp -> addr . eui_64 , 8 ));
1013
1013
ws_pae_auth_next_kmp_trigger (pae_auth , retry_supp );
1014
1014
}
1015
1015
0 commit comments