Add RSNXE into IE parser

This is needed for SAE hash-to-element implementation.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-10-17 16:53:09 +03:00 committed by Jouni Malinen
parent 0b0ed907d1
commit 8401cdc8d4
2 changed files with 6 additions and 0 deletions

View 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;

View 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;