Skip to content

Commit 7bf0028

Browse files
author
Mika Leppänen
committed
Corrected system time jump detection on BR startup
If jump occurred during first second after startup reference time was not yet set and jump was not detected.
1 parent e60974d commit 7bf0028

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/6LoWPAN/ws/ws_pae_auth.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ void ws_pae_auth_start(protocol_interface_info_entry_t *interface_ptr)
390390

391391
// Sets active key index
392392
ws_pae_auth_network_key_index_set(pae_auth, index);
393+
394+
pae_auth->prev_system_time = ws_pae_current_time_get();
395+
pae_auth->prev_system_time_set = true;
393396
}
394397

395398
void ws_pae_auth_gtks_updated(protocol_interface_info_entry_t *interface_ptr)

0 commit comments

Comments
 (0)