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

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

index adfdaa797537cc1c96cdfce3e917a99b15198871..21ca1945e6cd31aa5b932ba2269c1d0d26609b93 100644 (file)
@@ -365,6 +365,10 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
                        elems->rsn_ie = pos;
                        elems->rsn_ie_len = elen;
                        break;
+               case WLAN_EID_RSNX:
+                       elems->rsnxe = pos;
+                       elems->rsnxe_len = elen;
+                       break;
                case WLAN_EID_PWR_CAPABILITY:
                        if (elen < 2)
                                break;
index 3a54aa0872689824ee3d12455ab68b28b58b66c8..052f333025fc31c32c65cd014c605cdbdfe3fde3 100644 (file)
@@ -40,6 +40,7 @@ struct ieee802_11_elems {
        const u8 *ext_supp_rates;
        const u8 *wpa_ie;
        const u8 *rsn_ie;
+       const u8 *rsnxe;
        const u8 *wmm; /* WMM Information or Parameter Element */
        const u8 *wmm_tspec;
        const u8 *wps_ie;
@@ -102,6 +103,7 @@ struct ieee802_11_elems {
        u8 ext_supp_rates_len;
        u8 wpa_ie_len;
        u8 rsn_ie_len;
+       u8 rsnxe_len;
        u8 wmm_len; /* 7 = WMM Information; 24 = WMM Parameter */
        u8 wmm_tspec_len;
        u8 wps_ie_len;