Skip to content

Commit faa19e1

Browse files
author
Mika Leppänen
committed
Corrected next address set
1 parent 8a917fb commit faa19e1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/6LoWPAN/ws/ws_pae_supp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,7 @@ void ws_pae_supp_slow_timer(uint16_t seconds)
771771
if (pae_supp->auth_requested && pae_supp->tx_failure_on_initial_key) {
772772
// Returns same target if no other valid targets found
773773
const uint8_t *next_target = pae_supp->auth_next_target(pae_supp->interface_ptr, kmp_address_eui_64_get(&pae_supp->target_addr), &pae_supp->sec_keys_nw_info->key_pan_id);
774-
kmp_address_init(KMP_ADDR_EUI_64, &pae_supp->target_addr, next_target);
775-
// Sets target address in use
776-
ws_pae_supp_address_set(pae_supp, &pae_supp->target_addr);
774+
kmp_address_eui_64_set(&pae_supp->target_addr, next_target);
777775
}
778776
pae_supp->tx_failure_on_initial_key = false;
779777
// Sends initial EAPOL-key

0 commit comments

Comments
 (0)