2008-02-27 20:34:43 -05:00
|
|
|
/*
|
|
|
|
* wpa_supplicant - WPA/RSN IE and KDE definitions
|
|
|
|
* Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 09:46:35 -05:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-27 20:34:43 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WPA_IE_H
|
|
|
|
#define WPA_IE_H
|
|
|
|
|
2010-11-09 13:29:12 -05:00
|
|
|
struct wpa_sm;
|
|
|
|
|
2008-02-27 20:34:43 -05:00
|
|
|
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_PEERKEY
|
|
|
|
const u8 *smk;
|
|
|
|
size_t smk_len;
|
|
|
|
const u8 *nonce;
|
|
|
|
size_t nonce_len;
|
|
|
|
const u8 *lifetime;
|
|
|
|
size_t lifetime_len;
|
|
|
|
const u8 *error;
|
|
|
|
size_t error_len;
|
|
|
|
#endif /* CONFIG_PEERKEY */
|
|
|
|
#ifdef CONFIG_IEEE80211W
|
|
|
|
const u8 *igtk;
|
|
|
|
size_t igtk_len;
|
|
|
|
#endif /* CONFIG_IEEE80211W */
|
|
|
|
const u8 *mdie;
|
|
|
|
size_t mdie_len;
|
2010-04-10 14:42:01 -04:00
|
|
|
const u8 *ftie;
|
|
|
|
size_t ftie_len;
|
|
|
|
const u8 *reassoc_deadline;
|
|
|
|
const u8 *key_lifetime;
|
2010-10-07 03:26:56 -04:00
|
|
|
const u8 *lnkid;
|
|
|
|
size_t lnkid_len;
|
2011-01-28 12:27:28 -05:00
|
|
|
const u8 *ext_capab;
|
|
|
|
size_t ext_capab_len;
|
2011-09-26 06:55:31 -04:00
|
|
|
const u8 *supp_rates;
|
|
|
|
size_t supp_rates_len;
|
|
|
|
const u8 *ext_supp_rates;
|
|
|
|
size_t ext_supp_rates_len;
|
2013-02-05 09:41:01 -05:00
|
|
|
const u8 *ht_capabilities;
|
2013-02-25 03:31:50 -05:00
|
|
|
const u8 *vht_capabilities;
|
2014-01-06 08:06:13 -05:00
|
|
|
const u8 *supp_channels;
|
|
|
|
size_t supp_channels_len;
|
|
|
|
const u8 *supp_oper_classes;
|
|
|
|
size_t supp_oper_classes_len;
|
2013-02-05 09:41:01 -05:00
|
|
|
u8 qosinfo;
|
2013-05-06 08:47:44 -04:00
|
|
|
u16 aid;
|
2014-02-10 02:02:32 -05:00
|
|
|
const u8 *wmm;
|
|
|
|
size_t wmm_len;
|
2013-03-16 13:13:31 -04:00
|
|
|
#ifdef CONFIG_P2P
|
|
|
|
const u8 *ip_addr_req;
|
|
|
|
const u8 *ip_addr_alloc;
|
|
|
|
#endif /* CONFIG_P2P */
|
2008-02-27 20:34:43 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
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 */
|