$search

wpa_i.h File Reference

#include "utils/list.h"
Include dependency graph for wpa_i.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wpa_sm

Functions

int wpa_derive_ptk_ft (struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, struct wpa_ptk *ptk, size_t ptk_len)
void wpa_eapol_key_send (struct wpa_sm *sm, const u8 *kck, int ver, const u8 *dest, u16 proto, u8 *msg, size_t msg_len, u8 *key_mic)
static int wpa_sm_add_pmkid (struct wpa_sm *sm, const u8 *bssid, const u8 *pmkid)
static u8wpa_sm_alloc_eapol (struct wpa_sm *sm, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos)
static void wpa_sm_cancel_auth_timeout (struct wpa_sm *sm)
static void wpa_sm_deauthenticate (struct wpa_sm *sm, int reason_code)
static void wpa_sm_disassociate (struct wpa_sm *sm, int reason_code)
static int wpa_sm_ether_send (struct wpa_sm *sm, const u8 *dest, u16 proto, const u8 *buf, size_t len)
static int wpa_sm_get_beacon_ie (struct wpa_sm *sm)
static int wpa_sm_get_bssid (struct wpa_sm *sm, u8 *bssid)
static void * wpa_sm_get_network_ctx (struct wpa_sm *sm)
static enum wpa_states wpa_sm_get_state (struct wpa_sm *sm)
static int wpa_sm_mark_authenticated (struct wpa_sm *sm, const u8 *target_ap)
static int wpa_sm_mlme_setprotection (struct wpa_sm *sm, const u8 *addr, int protect_type, int key_type)
static int wpa_sm_remove_pmkid (struct wpa_sm *sm, const u8 *bssid, const u8 *pmkid)
static int wpa_sm_send_ft_action (struct wpa_sm *sm, u8 action, const u8 *target_ap, const u8 *ies, size_t ies_len)
static int wpa_sm_set_key (struct wpa_sm *sm, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len)
static void wpa_sm_set_state (struct wpa_sm *sm, enum wpa_states state)
static int wpa_sm_update_ft_ies (struct wpa_sm *sm, const u8 *md, const u8 *ies, size_t ies_len)
int wpa_supplicant_send_2_of_4 (struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, int ver, const u8 *nonce, const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ptk *ptk)
int wpa_supplicant_send_4_of_4 (struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, u16 ver, u16 key_info, const u8 *kde, size_t kde_len, struct wpa_ptk *ptk)

Function Documentation

int wpa_derive_ptk_ft ( struct wpa_sm sm,
const unsigned char *  src_addr,
const struct wpa_eapol_key key,
struct wpa_ptk ptk,
size_t  ptk_len 
)
void wpa_eapol_key_send ( struct wpa_sm sm,
const u8 kck,
int  ver,
const u8 dest,
u16  proto,
u8 msg,
size_t  msg_len,
u8 key_mic 
)

wpa_eapol_key_send - Send WPA/RSN EAPOL-Key message : Pointer to WPA state machine data from wpa_sm_init() : Key Confirmation Key (KCK, part of PTK) : Version field from Key Info : Destination address for the frame : Ethertype (usually ETH_P_EAPOL) : EAPOL-Key message : Length of message : Pointer to the buffer to which the EAPOL-Key MIC is written

Definition at line 42 of file wpa.c.

static int wpa_sm_add_pmkid ( struct wpa_sm sm,
const u8 bssid,
const u8 pmkid 
) [inline, static]

Definition at line 192 of file wpa_i.h.

static u8* wpa_sm_alloc_eapol ( struct wpa_sm sm,
u8  type,
const void *  data,
u16  data_len,
size_t *  msg_len,
void **  data_pos 
) [inline, static]

Definition at line 183 of file wpa_i.h.

static void wpa_sm_cancel_auth_timeout ( struct wpa_sm sm  )  [inline, static]

Definition at line 177 of file wpa_i.h.

static void wpa_sm_deauthenticate ( struct wpa_sm sm,
int  reason_code 
) [inline, static]

Definition at line 130 of file wpa_i.h.

static void wpa_sm_disassociate ( struct wpa_sm sm,
int  reason_code 
) [inline, static]

Definition at line 136 of file wpa_i.h.

static int wpa_sm_ether_send ( struct wpa_sm sm,
const u8 dest,
u16  proto,
const u8 buf,
size_t  len 
) [inline, static]

Definition at line 164 of file wpa_i.h.

static int wpa_sm_get_beacon_ie ( struct wpa_sm sm  )  [inline, static]

Definition at line 171 of file wpa_i.h.

static int wpa_sm_get_bssid ( struct wpa_sm sm,
u8 bssid 
) [inline, static]

Definition at line 158 of file wpa_i.h.

static void* wpa_sm_get_network_ctx ( struct wpa_sm sm  )  [inline, static]

Definition at line 152 of file wpa_i.h.

static enum wpa_states wpa_sm_get_state ( struct wpa_sm sm  )  [inline, static]

Definition at line 124 of file wpa_i.h.

static int wpa_sm_mark_authenticated ( struct wpa_sm sm,
const u8 target_ap 
) [inline, static]

Definition at line 232 of file wpa_i.h.

static int wpa_sm_mlme_setprotection ( struct wpa_sm sm,
const u8 addr,
int  protect_type,
int  key_type 
) [inline, static]

Definition at line 206 of file wpa_i.h.

static int wpa_sm_remove_pmkid ( struct wpa_sm sm,
const u8 bssid,
const u8 pmkid 
) [inline, static]

Definition at line 199 of file wpa_i.h.

static int wpa_sm_send_ft_action ( struct wpa_sm sm,
u8  action,
const u8 target_ap,
const u8 ies,
size_t  ies_len 
) [inline, static]

Definition at line 222 of file wpa_i.h.

static int wpa_sm_set_key ( struct wpa_sm sm,
enum wpa_alg  alg,
const u8 addr,
int  key_idx,
int  set_tx,
const u8 seq,
size_t  seq_len,
const u8 key,
size_t  key_len 
) [inline, static]

Definition at line 142 of file wpa_i.h.

static void wpa_sm_set_state ( struct wpa_sm sm,
enum wpa_states  state 
) [inline, static]

Definition at line 118 of file wpa_i.h.

static int wpa_sm_update_ft_ies ( struct wpa_sm sm,
const u8 md,
const u8 ies,
size_t  ies_len 
) [inline, static]

Definition at line 214 of file wpa_i.h.

int wpa_supplicant_send_2_of_4 ( struct wpa_sm sm,
const unsigned char *  dst,
const struct wpa_eapol_key key,
int  ver,
const u8 nonce,
const u8 wpa_ie,
size_t  wpa_ie_len,
struct wpa_ptk ptk 
)

wpa_supplicant_send_2_of_4 - Send message 2 of WPA/RSN 4-Way Handshake : Pointer to WPA state machine data from wpa_sm_init() : Destination address for the frame : Pointer to the EAPOL-Key frame header : Version bits from EAPOL-Key Key Info : Nonce value for the EAPOL-Key frame : WPA/RSN IE : Length of the WPA/RSN IE : PTK to use for keyed hash and encryption Returns: 0 on success, -1 on failure

Definition at line 255 of file wpa.c.

int wpa_supplicant_send_4_of_4 ( struct wpa_sm sm,
const unsigned char *  dst,
const struct wpa_eapol_key key,
u16  ver,
u16  key_info,
const u8 kde,
size_t  kde_len,
struct wpa_ptk ptk 
)

wpa_supplicant_send_4_of_4 - Send message 4 of WPA/RSN 4-Way Handshake : Pointer to WPA state machine data from wpa_sm_init() : Destination address for the frame : Pointer to the EAPOL-Key frame header : Version bits from EAPOL-Key Key Info : Key Info : KDEs to include the EAPOL-Key frame : Length of KDEs : PTK to use for keyed hash and encryption Returns: 0 on success, -1 on failure

Definition at line 994 of file wpa.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Mar 1 16:00:48 2013