Use monotonic clock for last_sae_token_key_update
Just the usual, with a new function os_reltime_initialized() thrown in that checks whether time has ever been retrieved (time can't be completely zero). Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
100298e896
commit
fe52c210cf
3 changed files with 12 additions and 6 deletions
|
@ -241,7 +241,7 @@ struct hostapd_data {
|
|||
#ifdef CONFIG_SAE
|
||||
/** Key used for generating SAE anti-clogging tokens */
|
||||
u8 sae_token_key[8];
|
||||
os_time_t last_sae_token_key_update;
|
||||
struct os_reltime last_sae_token_key_update;
|
||||
#endif /* CONFIG_SAE */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue