]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add RSNXE into AP KDE parser
authorJouni Malinen <jouni@codeaurora.org>
Thu, 17 Oct 2019 21:13:32 +0000 (00:13 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 17 Oct 2019 21:20:29 +0000 (00:20 +0300)
This is needed for SAE hash-to-element implementation.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/wpa_auth_ie.c
src/ap/wpa_auth_ie.h

index c0f57aa7fed11c08e2a2f8ac83c14d7ce86078fe..76f3aa972c8eb484099b742dee17c2330b32d582 100644 (file)
@@ -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;
index ad9409e94f42d1c2d522233203cb0d29971ae114..e29e49681d38a5a09cad0d7bc87c5418d501ba88 100644 (file)
@@ -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,