#include <ieee80211.h>
Data Fields | |
| u8 | id |
| Information element ID. | |
| u8 | len |
| Information element length. | |
| u16 | version |
| RSN information element version. | |
| u32 | group_cipher |
| Cipher ID for the cipher used in multicast/broadcast frames. | |
| u16 | pairwise_count |
| Number of unicast ciphers supported. | |
| u32 | pairwise_cipher [1] |
| List of cipher IDs for supported unicast frame ciphers. | |
| u16 | akm_count |
| Number of authentication types supported. | |
| u32 | akm_list [1] |
| List of authentication type IDs for supported types. | |
| u16 | rsn_capab |
| Security capabilities field (RSN only). | |
| u16 | pmkid_count |
| Number of PMKIDs included (present only in association frames). | |
| u8 | pmkid_list [0] |
| List of PMKIDs included, each a 16-byte SHA1 hash. | |
Showing once again a striking clarity of design, the IEEE folks put dynamically-sized data in the middle of this structure. As such, the below structure definition only works for IEs we create ourselves, which always have one pairwise cipher and one AKM; received IEs should be parsed piecemeal.
Also inspired was IEEE's choice of 16-bit fields to count the number of 4-byte elements in a structure with a maximum length of 255 bytes.
Many fields reference a cipher or authentication-type ID; this is a three-byte OUI followed by one byte identifying the cipher with respect to that OUI. For all standard ciphers the OUI is 00:0F:AC, except in old-style WPA IEs encapsulated in vendor-specific IEs, where it's 00:50:F2.
Definition at line 797 of file ieee80211.h.
RSN information element version.
Definition at line 805 of file ieee80211.h.
Referenced by wpa_make_rsn_ie().
Cipher ID for the cipher used in multicast/broadcast frames.
Definition at line 808 of file ieee80211.h.
Referenced by wpa_make_rsn_ie().
Number of unicast ciphers supported.
Definition at line 811 of file ieee80211.h.
Referenced by wpa_make_rsn_ie().
List of cipher IDs for supported unicast frame ciphers.
Definition at line 814 of file ieee80211.h.
Referenced by wpa_make_rsn_ie().
Number of authentication types supported.
Definition at line 817 of file ieee80211.h.
Referenced by wpa_make_rsn_ie().
List of authentication type IDs for supported types.
Definition at line 820 of file ieee80211.h.
Referenced by wpa_make_rsn_ie().
Security capabilities field (RSN only).
Definition at line 823 of file ieee80211.h.
Referenced by wpa_make_rsn_ie().
Number of PMKIDs included (present only in association frames).
Definition at line 826 of file ieee80211.h.
Referenced by wpa_make_rsn_ie().
1.5.7.1