]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PASN: PASN Encrypted Data element parsing
authorShivani Baranwal <quic_shivbara@quicinc.com>
Sun, 4 Aug 2024 21:13:59 +0000 (02:43 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 5 Sep 2024 22:06:32 +0000 (01:06 +0300)
Add the PASN Encrypted Data element from IEEE P802.11bh/D6.0 into the
element parser. This is needed for P2P2.

Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
src/common/ieee802_11_common.c
src/common/ieee802_11_common.h
src/common/ieee802_11_defs.h

index 56d38a5fd0c91203cf2be0f13891da56e752b0cc..56d556980e17988d5fff47617653f629ac104404 100644 (file)
@@ -413,6 +413,10 @@ static int ieee802_11_parse_extension(const u8 *pos, size_t elen,
                elems->mbssid_known_bss = pos;
                elems->mbssid_known_bss_len = elen;
                break;
+       case WLAN_EID_EXT_PASN_ENCRYPTED_DATA:
+               elems->pasn_encrypted_data = pos;
+               elems->pasn_encrypted_data_len = elen;
+               break;
        default:
                if (show_errors) {
                        wpa_printf(MSG_MSGDUMP,
index e4321b5c5d9550481f7e20e3e975387439167648..b8cecab0d1e726d5dc8ab73315ab1f70adf47109 100644 (file)
@@ -66,6 +66,7 @@ struct ieee802_11_elems {
        const u8 *vendor_vht;
        const u8 *p2p;
        const u8 *p2p2_ie;
+       const u8 *pasn_encrypted_data;
        const u8 *wfd;
        const u8 *link_id;
        const u8 *interworking;
@@ -141,6 +142,7 @@ struct ieee802_11_elems {
        u8 vendor_vht_len;
        u8 p2p_len;
        u8 p2p2_ie_len;
+       u8 pasn_encrypted_data_len;
        u8 wfd_len;
        u8 interworking_len;
        u8 qos_map_set_len;
index 4e09f005599ab90b9e2daecc04bc01b46d58f8bf..d25e2b9067d665459490a6597ac4ec66974430fb 100644 (file)
 #define WLAN_EID_EXT_QOS_CHARACTERISTICS 113
 #define WLAN_EID_EXT_AKM_SUITE_SELECTOR 114
 #define WLAN_EID_EXT_BANDWIDTH_INDICATION 135
+#define WLAN_EID_EXT_PASN_ENCRYPTED_DATA 140
 
 /* Extended Capabilities field */
 #define WLAN_EXT_CAPAB_20_40_COEX 0