[05/14] common: Add PASN parsing to ieee802_11_parse_extension()
diff mbox series

Message ID 20200224091529.15259-6-ilan.peer@intel.com
State Changes Requested
Headers show
Series
  • Support base Pre association Security Negotiation (PASN)
Related show

Commit Message

Peer, Ilan Feb. 24, 2020, 9:15 a.m. UTC
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
---
 src/common/ieee802_11_common.c | 4 ++++
 src/common/ieee802_11_common.h | 2 ++
 2 files changed, 6 insertions(+)

Comments

Jouni Malinen Feb. 29, 2020, 10:22 p.m. UTC | #1
On Mon, Feb 24, 2020 at 11:15:20AM +0200, Ilan Peer wrote:
> diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
> +	case WLAN_EID_EXT_PASN_PARAMS:

That has not yet been assigned by ANA, so I'd rather not apply this yet.

Patch
diff mbox series

diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index 213f6a8553..2c813d0f09 100644
--- a/src/common/ieee802_11_common.c
+++ b/src/common/ieee802_11_common.c
@@ -288,6 +288,10 @@  static int ieee802_11_parse_extension(const u8 *pos, size_t elen,
 		elems->short_ssid_list = pos;
 		elems->short_ssid_list_len = elen;
 		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 ed22d53698..dc1d96145f 100644
--- a/src/common/ieee802_11_common.h
+++ b/src/common/ieee802_11_common.h
@@ -113,6 +113,7 @@  struct ieee802_11_elems {
 	const u8 *he_capabilities;
 	const u8 *he_operation;
 	const u8 *short_ssid_list;
+	const u8 *pasn_params;
 
 	u8 ssid_len;
 	u8 supp_rates_len;
@@ -165,6 +166,7 @@  struct ieee802_11_elems {
 	u8 he_capabilities_len;
 	u8 he_operation_len;
 	u8 short_ssid_list_len;
+	u8 pasn_params_len;
 
 	struct mb_ies_info mb_ies;
 	struct frag_ies_info frag_ies;