wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Functions
wpa_ie.h File Reference

wpa_supplicant - WPA/RSN IE and KDE definitions More...

Go to the source code of this file.

Data Structures

struct  wpa_eapol_ie_parse
 

Functions

int wpa_supplicant_parse_ies (const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie)
 Parse EAPOL-Key Key Data IEs. More...
 
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. More...
 

Detailed Description

wpa_supplicant - WPA/RSN IE and KDE definitions

Function Documentation

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.

Parameters
smPointer to WPA state machine data from wpa_sm_init()
wpa_iePointer to memory area for the generated WPA/RSN IE
wpa_ie_lenMaximum length of the generated WPA/RSN IE
Returns
Length of the generated WPA/RSN IE or -1 on failure
int wpa_supplicant_parse_ies ( const u8 *  buf,
size_t  len,
struct wpa_eapol_ie_parse ie 
)

Parse EAPOL-Key Key Data IEs.

Parameters
bufPointer to the Key Data buffer
lenKey Data Length
iePointer to parsed IE data
Returns
0 on success, -1 on failure