#include "utils/list.h"
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 u8 * | wpa_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) |
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
static void wpa_sm_cancel_auth_timeout | ( | struct wpa_sm * | sm | ) | [inline, static] |
static void wpa_sm_deauthenticate | ( | struct wpa_sm * | sm, | |
int | reason_code | |||
) | [inline, static] |
static void wpa_sm_disassociate | ( | struct wpa_sm * | sm, | |
int | reason_code | |||
) | [inline, static] |
static int wpa_sm_get_beacon_ie | ( | struct wpa_sm * | sm | ) | [inline, static] |
static void* wpa_sm_get_network_ctx | ( | struct wpa_sm * | sm | ) | [inline, static] |
static enum wpa_states wpa_sm_get_state | ( | struct wpa_sm * | sm | ) | [inline, static] |
static void wpa_sm_set_state | ( | struct wpa_sm * | sm, | |
enum wpa_states | state | |||
) | [inline, static] |
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
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