aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp/wpa.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-28 09:40:23 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-28 14:32:54 (GMT)
commitdb76aa64f1a292561eccc8a1ca93849034d1aa9f (patch)
tree2320c06c19e79ccc08a8de32ff0caacefd79ae10 /src/rsn_supp/wpa.h
parent773272989a71f772ee675bd7e92c131aaa323903 (diff)
downloadhostap-db76aa64f1a292561eccc8a1ca93849034d1aa9f.zip
hostap-db76aa64f1a292561eccc8a1ca93849034d1aa9f.tar.gz
hostap-db76aa64f1a292561eccc8a1ca93849034d1aa9f.tar.bz2
Fix PeerKey 4-way handshake
The earlier changes to buffer EAPOL frames when not associated to avoid race conditions (especially commit 3ab35a660364dc68eaebfc0df6130071bbee6be5 but maybe something even before that) broke PeerKey 4-way handshake. Fix this by using a separate check before the race condition workaround to process PeerKey 4-way handshake EAPOL-Key messages differently. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/rsn_supp/wpa.h')
-rw-r--r--src/rsn_supp/wpa.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rsn_supp/wpa.h b/src/rsn_supp/wpa.h
index db7f0db..e189a58 100644
--- a/src/rsn_supp/wpa.h
+++ b/src/rsn_supp/wpa.h
@@ -306,11 +306,19 @@ static inline void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm,
#ifdef CONFIG_PEERKEY
int wpa_sm_stkstart(struct wpa_sm *sm, const u8 *peer);
+int wpa_sm_rx_eapol_peerkey(struct wpa_sm *sm, const u8 *src_addr,
+ const u8 *buf, size_t len);
#else /* CONFIG_PEERKEY */
static inline int wpa_sm_stkstart(struct wpa_sm *sm, const u8 *peer)
{
return -1;
}
+
+static inline int wpa_sm_rx_eapol_peerkey(struct wpa_sm *sm, const u8 *src_addr,
+ const u8 *buf, size_t len)
+{
+ return 0;
+}
#endif /* CONFIG_PEERKEY */
#ifdef CONFIG_IEEE80211R