huangcm
2025-07-01 676035278781360996553c427a12bf358249ebf7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 * wpa_supplicant - WPA/RSN IE and KDE definitions
 * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
 *
 * This software may be distributed under the terms of the BSD license.
 * See README for more details.
 */
 
#ifndef WPA_IE_H
#define WPA_IE_H
 
struct wpa_sm;
 
struct wpa_eapol_ie_parse {
   const u8 *wpa_ie;
   size_t wpa_ie_len;
   const u8 *rsn_ie;
   size_t rsn_ie_len;
   const u8 *pmkid;
   const u8 *gtk;
   size_t gtk_len;
   const u8 *mac_addr;
   size_t mac_addr_len;
#ifdef CONFIG_IEEE80211W
   const u8 *igtk;
   size_t igtk_len;
#endif /* CONFIG_IEEE80211W */
   const u8 *mdie;
   size_t mdie_len;
   const u8 *ftie;
   size_t ftie_len;
   const u8 *reassoc_deadline;
   const u8 *key_lifetime;
   const u8 *lnkid;
   size_t lnkid_len;
   const u8 *ext_capab;
   size_t ext_capab_len;
   const u8 *supp_rates;
   size_t supp_rates_len;
   const u8 *ext_supp_rates;
   size_t ext_supp_rates_len;
   const u8 *ht_capabilities;
   const u8 *vht_capabilities;
   const u8 *supp_channels;
   size_t supp_channels_len;
   const u8 *supp_oper_classes;
   size_t supp_oper_classes_len;
   u8 qosinfo;
   u16 aid;
   const u8 *wmm;
   size_t wmm_len;
#ifdef CONFIG_P2P
   const u8 *ip_addr_req;
   const u8 *ip_addr_alloc;
#endif /* CONFIG_P2P */
#ifdef CONFIG_OCV
   const u8 *oci;
   size_t oci_len;
#endif /* CONFIG_OCV */
};
 
int wpa_supplicant_parse_ies(const u8 *buf, size_t len,
                struct wpa_eapol_ie_parse *ie);
int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
 
#endif /* WPA_IE_H */