[PATCH v2 11/20] common: Add PASN parsing to ieee802_11_parse_extension()
Ilan Peer
ilan.peer at intel.com
Wed Dec 16 06:00:24 EST 2020
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
src/common/ieee802_11_common.c | 4 ++++
src/common/ieee802_11_common.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index c90e04ce7e..41f1023d80 100644
--- a/src/common/ieee802_11_common.c
+++ b/src/common/ieee802_11_common.c
@@ -303,6 +303,10 @@ static int ieee802_11_parse_extension(const u8 *pos, size_t elen,
break;
elems->he_6ghz_band_cap = pos;
break;
+ case WLAN_EID_EXT_PASN_PARAMS:
+ elems->pasn_params = pos;
+ elems->pasn_params_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 6bbe3b7a34..8a16f16662 100644
--- a/src/common/ieee802_11_common.h
+++ b/src/common/ieee802_11_common.h
@@ -116,6 +116,7 @@ struct ieee802_11_elems {
const u8 *he_6ghz_band_cap;
const u8 *sae_pk;
const u8 *s1g_capab;
+ const u8 *pasn_params;
u8 ssid_len;
u8 supp_rates_len;
@@ -169,6 +170,7 @@ struct ieee802_11_elems {
u8 he_operation_len;
u8 short_ssid_list_len;
u8 sae_pk_len;
+ u8 pasn_params_len;
struct mb_ies_info mb_ies;
struct frag_ies_info frag_ies;
--
2.17.1
More information about the Hostap
mailing list