From 9981d5bf314cb9b0d0cb04d8822ab3b6a78afb5d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 18 Oct 2019 00:13:32 +0300 Subject: [PATCH] Add RSNXE into AP KDE parser This is needed for SAE hash-to-element implementation. Signed-off-by: Jouni Malinen --- src/ap/wpa_auth_ie.c | 3 +++ src/ap/wpa_auth_ie.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/ap/wpa_auth_ie.c b/src/ap/wpa_auth_ie.c index c0f57aa7f..76f3aa972 100644 --- a/src/ap/wpa_auth_ie.c +++ b/src/ap/wpa_auth_ie.c @@ -1121,6 +1121,9 @@ int wpa_parse_kde_ies(const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie) if (*pos == WLAN_EID_RSN) { ie->rsn_ie = pos; ie->rsn_ie_len = pos[1] + 2; + } else if (*pos == WLAN_EID_RSNX) { + ie->rsnxe = pos; + ie->rsnxe_len = pos[1] + 2; #ifdef CONFIG_IEEE80211R_AP } else if (*pos == WLAN_EID_MOBILITY_DOMAIN) { ie->mdie = pos; diff --git a/src/ap/wpa_auth_ie.h b/src/ap/wpa_auth_ie.h index ad9409e94..e29e49681 100644 --- a/src/ap/wpa_auth_ie.h +++ b/src/ap/wpa_auth_ie.h @@ -38,6 +38,8 @@ struct wpa_eapol_ie_parse { const u8 *osen; size_t osen_len; + const u8 *rsnxe; + size_t rsnxe_len; }; int wpa_parse_kde_ies(const u8 *buf, size_t len,