]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/ap/wpa_auth_ie.h
Remove CONFIG_IEEE80211W build parameter
[thirdparty/hostap.git] / src / ap / wpa_auth_ie.h
CommitLineData
6fc6879b
JM
1/*
2 * hostapd - WPA/RSN IE and KDE definitions
3 * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
6fc6879b
JM
7 */
8
9#ifndef WPA_AUTH_IE_H
10#define WPA_AUTH_IE_H
11
12struct wpa_eapol_ie_parse {
13 const u8 *wpa_ie;
14 size_t wpa_ie_len;
15 const u8 *rsn_ie;
16 size_t rsn_ie_len;
17 const u8 *pmkid;
18 const u8 *gtk;
19 size_t gtk_len;
20 const u8 *mac_addr;
21 size_t mac_addr_len;
6fc6879b
JM
22 const u8 *igtk;
23 size_t igtk_len;
4ec1fd8e 24#ifdef CONFIG_IEEE80211R_AP
6fc6879b
JM
25 const u8 *mdie;
26 size_t mdie_len;
0f857f43
JM
27 const u8 *ftie;
28 size_t ftie_len;
4ec1fd8e 29#endif /* CONFIG_IEEE80211R_AP */
25ef8529
JM
30#ifdef CONFIG_P2P
31 const u8 *ip_addr_req;
32 const u8 *ip_addr_alloc;
33#endif /* CONFIG_P2P */
f53aeff4
MV
34#ifdef CONFIG_OCV
35 const u8 *oci;
36 size_t oci_len;
37#endif /* CONFIG_OCV */
a14896e8
JM
38
39 const u8 *osen;
40 size_t osen_len;
6fc6879b
JM
41};
42
43int wpa_parse_kde_ies(const u8 *buf, size_t len,
44 struct wpa_eapol_ie_parse *ie);
45u8 * wpa_add_kde(u8 *pos, u32 kde, const u8 *data, size_t data_len,
46 const u8 *data2, size_t data2_len);
47int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
48
49#endif /* WPA_AUTH_IE_H */