From 340c0e2122a29f66431e0fe979a1f4d666f9fc45 Mon Sep 17 00:00:00 2001 From: Aloka Dixit Date: Tue, 19 Apr 2022 11:04:11 -0700 Subject: [PATCH] EHT: Parse elements received in Management frames Parse and store pointers to EHT Capabilities and Operation elements received in Management frames. Signed-off-by: Aloka Dixit Signed-off-by: Pradeep Kumar Chitrapu --- src/common/ieee802_11_common.c | 8 ++++++++ src/common/ieee802_11_common.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c index 8a41c06cb..9e348a21c 100644 --- a/src/common/ieee802_11_common.c +++ b/src/common/ieee802_11_common.c @@ -307,6 +307,14 @@ static int ieee802_11_parse_extension(const u8 *pos, size_t elen, elems->pasn_params = pos; elems->pasn_params_len = elen; break; + case WLAN_EID_EXT_EHT_CAPABILITIES: + elems->eht_capabilities = pos; + elems->eht_capabilities_len = elen; + break; + case WLAN_EID_EXT_EHT_OPERATION: + elems->eht_operation = pos; + elems->eht_operation_len = elen; + break; default: if (show_errors) { wpa_printf(MSG_MSGDUMP, diff --git a/src/common/ieee802_11_common.h b/src/common/ieee802_11_common.h index e4e4c613e..743c5a03c 100644 --- a/src/common/ieee802_11_common.h +++ b/src/common/ieee802_11_common.h @@ -117,6 +117,8 @@ struct ieee802_11_elems { const u8 *sae_pk; const u8 *s1g_capab; const u8 *pasn_params; + const u8 *eht_capabilities; + const u8 *eht_operation; u8 ssid_len; u8 supp_rates_len; @@ -171,6 +173,8 @@ struct ieee802_11_elems { u8 short_ssid_list_len; u8 sae_pk_len; u8 pasn_params_len; + u8 eht_capabilities_len; + u8 eht_operation_len; struct mb_ies_info mb_ies; struct frag_ies_info frag_ies;