diff options
author | Jouni Malinen <j@w1.fi> | 2019-05-04 16:17:45 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2019-05-04 21:57:37 (GMT) |
commit | de94be0acde87f727ab8482761127d24fae71a73 (patch) | |
tree | 5d65ec54fb1468c88056a6385db47e80c57fe964 /src/ap/hostapd.h | |
parent | 1cefd89b37be43cf98f9f6291671b32b01ef5c93 (diff) | |
download | hostap-de94be0acde87f727ab8482761127d24fae71a73.zip hostap-de94be0acde87f727ab8482761127d24fae71a73.tar.gz hostap-de94be0acde87f727ab8482761127d24fae71a73.tar.bz2 |
Enforce that IEEE 802.1X EAPOL-Key Replay Counter increases
While this should not happen in practical use cases,
wpa_get_ntp_timestamp() could return the same value when called twice in
a row quickly. Work around that case by enforcing a new Replay Counter
value based on stored last value.
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/hostapd.h')
-rw-r--r-- | src/ap/hostapd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h index 594699f..f573717 100644 --- a/src/ap/hostapd.h +++ b/src/ap/hostapd.h @@ -384,6 +384,8 @@ struct hostapd_data { unsigned int num_backlogged_sta; unsigned int airtime_weight; #endif /* CONFIG_AIRTIME_POLICY */ + + u8 last_1x_eapol_key_replay_counter[8]; }; |