aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/hostapd.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-05-04 16:17:45 (GMT)
committerJouni Malinen <j@w1.fi>2019-05-04 21:57:37 (GMT)
commitde94be0acde87f727ab8482761127d24fae71a73 (patch)
tree5d65ec54fb1468c88056a6385db47e80c57fe964 /src/ap/hostapd.h
parent1cefd89b37be43cf98f9f6291671b32b01ef5c93 (diff)
downloadhostap-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.h2
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];
};