Skip to content

Commit

Permalink
Corrected system time jump detection on BR startup
Browse files Browse the repository at this point in the history
If jump occurred during first second after startup reference time
was not yet set and jump was not detected.
  • Loading branch information
Mika Leppänen committed Sep 1, 2021
1 parent e60974d commit 7bf0028
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/6LoWPAN/ws/ws_pae_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ void ws_pae_auth_start(protocol_interface_info_entry_t *interface_ptr)

// Sets active key index
ws_pae_auth_network_key_index_set(pae_auth, index);

pae_auth->prev_system_time = ws_pae_current_time_get();
pae_auth->prev_system_time_set = true;
}

void ws_pae_auth_gtks_updated(protocol_interface_info_entry_t *interface_ptr)
Expand Down

0 comments on commit 7bf0028

Please sign in to comment.