wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
wpa_ie.h
Go to the documentation of this file.
1 
5 #ifndef WPA_IE_H
6 #define WPA_IE_H
7 
8 struct wpa_sm;
9 
10 struct wpa_eapol_ie_parse {
11  const u8 *wpa_ie;
12  size_t wpa_ie_len;
13  const u8 *rsn_ie;
14  size_t rsn_ie_len;
15  const u8 *pmkid;
16  const u8 *gtk;
17  size_t gtk_len;
18  const u8 *mac_addr;
19  size_t mac_addr_len;
20 #ifdef CONFIG_PEERKEY
21  const u8 *smk;
22  size_t smk_len;
23  const u8 *nonce;
24  size_t nonce_len;
25  const u8 *lifetime;
26  size_t lifetime_len;
27  const u8 *error;
28  size_t error_len;
29 #endif /* CONFIG_PEERKEY */
30 #ifdef CONFIG_IEEE80211W
31  const u8 *igtk;
32  size_t igtk_len;
33 #endif /* CONFIG_IEEE80211W */
34  const u8 *mdie;
35  size_t mdie_len;
36  const u8 *ftie;
37  size_t ftie_len;
38  const u8 *reassoc_deadline;
39  const u8 *key_lifetime;
40  const u8 *lnkid;
41  size_t lnkid_len;
42  const u8 *ext_capab;
43  size_t ext_capab_len;
44  const u8 *supp_rates;
45  size_t supp_rates_len;
46  const u8 *ext_supp_rates;
47  size_t ext_supp_rates_len;
48  const u8 *ht_capabilities;
49  const u8 *vht_capabilities;
50  const u8 *supp_channels;
51  size_t supp_channels_len;
52  const u8 *supp_oper_classes;
53  size_t supp_oper_classes_len;
54  u8 qosinfo;
55  u16 aid;
56  const u8 *wmm;
57  size_t wmm_len;
58 #ifdef CONFIG_P2P
59  const u8 *ip_addr_req;
60  const u8 *ip_addr_alloc;
61 #endif /* CONFIG_P2P */
62 };
63 
64 int wpa_supplicant_parse_ies(const u8 *buf, size_t len,
65  struct wpa_eapol_ie_parse *ie);
66 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
67 
68 #endif /* WPA_IE_H */
int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len)
Generate WPA/RSN IE based on current security policy.
Definition: wpa_ie.c:294
int wpa_supplicant_parse_ies(const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie)
Parse EAPOL-Key Key Data IEs.
Definition: wpa_ie.c:483
Definition: wpa_auth_ie.h:8
Internal WPA state machine data.
Definition: wpa_i.h:18