#include "defs.h"
Include dependency graph for wpa.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | BIT(n) (1 << (n)) |
#define | EAPOL_VERSION 2 |
#define | WPA_CAPABILITY_PREAUTH BIT(0) |
#define | GENERIC_INFO_ELEM 0xdd |
#define | RSN_INFO_ELEM 0x30 |
#define | PMKID_LEN 16 |
Enumerations | |
enum | { IEEE802_1X_TYPE_EAP_PACKET = 0, IEEE802_1X_TYPE_EAPOL_START = 1, IEEE802_1X_TYPE_EAPOL_LOGOFF = 2, IEEE802_1X_TYPE_EAPOL_KEY = 3, IEEE802_1X_TYPE_EAPOL_ENCAPSULATED_ASF_ALERT = 4 } |
enum | { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2, EAPOL_KEY_TYPE_WPA = 254 } |
enum | { REASON_UNSPECIFIED = 1, REASON_DEAUTH_LEAVING = 3, REASON_INVALID_IE = 13, REASON_MICHAEL_MIC_FAILURE = 14, REASON_4WAY_HANDSHAKE_TIMEOUT = 15, REASON_GROUP_KEY_UPDATE_TIMEOUT = 16, REASON_IE_IN_4WAY_DIFFERS = 17, REASON_GROUP_CIPHER_NOT_VALID = 18, REASON_PAIRWISE_CIPHER_NOT_VALID = 19, REASON_AKMP_NOT_VALID = 20, REASON_UNSUPPORTED_RSN_IE_VERSION = 21, REASON_INVALID_RSN_IE_CAPAB = 22, REASON_IEEE_802_1X_AUTH_FAILED = 23, REASON_CIPHER_SUITE_REJECTED = 24 } |
enum | wpa_sm_conf_params { RSNA_PMK_LIFETIME, RSNA_PMK_REAUTH_THRESHOLD, RSNA_SA_TIMEOUT, WPA_PARAM_PROTO, WPA_PARAM_PAIRWISE, WPA_PARAM_GROUP, WPA_PARAM_KEY_MGMT } |
Functions | |
wpa_sm * | wpa_sm_init (struct wpa_sm_ctx *ctx) |
Initialize WPA state machine. | |
void | wpa_sm_deinit (struct wpa_sm *sm) |
Deinitialize WPA state machine. | |
void | wpa_sm_notify_assoc (struct wpa_sm *sm, const u8 *bssid) |
Notify WPA state machine about association. | |
void | wpa_sm_notify_disassoc (struct wpa_sm *sm) |
Notify WPA state machine about disassociation. | |
void | wpa_sm_set_pmk (struct wpa_sm *sm, const u8 *pmk, size_t pmk_len) |
Set PMK. | |
void | wpa_sm_set_pmk_from_pmksa (struct wpa_sm *sm) |
Set PMK based on the current PMKSA. | |
void | wpa_sm_set_fast_reauth (struct wpa_sm *sm, int fast_reauth) |
Set fast reauthentication (EAP) enabled/disabled. | |
void | wpa_sm_set_scard_ctx (struct wpa_sm *sm, void *scard_ctx) |
Set context pointer for smartcard callbacks. | |
void | wpa_sm_set_config (struct wpa_sm *sm, struct wpa_ssid *config) |
Notification of current configration change. | |
void | wpa_sm_set_own_addr (struct wpa_sm *sm, const u8 *addr) |
Set own MAC address. | |
void | wpa_sm_set_ifname (struct wpa_sm *sm, const char *ifname) |
Set network interface name. | |
void | wpa_sm_set_eapol (struct wpa_sm *sm, struct eapol_sm *eapol) |
Set EAPOL state machine pointer. | |
int | wpa_sm_set_assoc_wpa_ie (struct wpa_sm *sm, const u8 *ie, size_t len) |
Set own WPA/RSN IE from (Re)AssocReq. | |
int | wpa_sm_set_assoc_wpa_ie_default (struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) |
Generate own WPA/RSN IE from configuration. | |
int | wpa_sm_set_ap_wpa_ie (struct wpa_sm *sm, const u8 *ie, size_t len) |
Set AP WPA IE from Beacon/ProbeResp. | |
int | wpa_sm_set_ap_rsn_ie (struct wpa_sm *sm, const u8 *ie, size_t len) |
Set AP RSN IE from Beacon/ProbeResp. | |
int | wpa_sm_get_mib (struct wpa_sm *sm, char *buf, size_t buflen) |
Dump text list of MIB entries. | |
int | wpa_sm_set_param (struct wpa_sm *sm, enum wpa_sm_conf_params param, unsigned int value) |
Set WPA state machine parameters. | |
unsigned int | wpa_sm_get_param (struct wpa_sm *sm, enum wpa_sm_conf_params param) |
Get WPA state machine parameters. | |
int | wpa_sm_get_status (struct wpa_sm *sm, char *buf, size_t buflen, int verbose) |
Get WPA state machine. | |
void | wpa_sm_key_request (struct wpa_sm *sm, int error, int pairwise) |
Send EAPOL-Key Request. | |
int | wpa_parse_wpa_ie (const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ie_data *data) |
Parse WPA/RSN IE. | |
void | wpa_sm_aborted_cached (struct wpa_sm *sm) |
Notify WPA that PMKSA caching was aborted. | |
int | wpa_sm_rx_eapol (struct wpa_sm *sm, const u8 *src_addr, const u8 *buf, size_t len) |
Process received WPA EAPOL frames. | |
int | wpa_sm_parse_own_wpa_ie (struct wpa_sm *sm, struct wpa_ie_data *data) |
Parse own WPA/RSN IE. | |
Variables | |
ieee802_1x_hdr | packed |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file wpa.h.
|
Parse WPA/RSN IE.
|
|
Notify WPA that PMKSA caching was aborted.
Definition at line 1905 of file wpa.c. Here is the call graph for this function: |
|
Deinitialize WPA state machine.
Definition at line 2296 of file wpa.c. Here is the call graph for this function: |
|
Dump text list of MIB entries.
|
|
Get WPA state machine parameters.
|
|
Get WPA state machine.
|
|
Initialize WPA state machine.
|
|
Send EAPOL-Key Request.
Definition at line 796 of file wpa.c. Here is the call graph for this function: |
|
Notify WPA state machine about association.
Definition at line 2318 of file wpa.c. Here is the call graph for this function: |
|
Notify WPA state machine about disassociation.
Definition at line 2341 of file wpa.c. Here is the call graph for this function: |
|
Parse own WPA/RSN IE.
Definition at line 2753 of file wpa.c. Here is the call graph for this function: |
|
Process received WPA EAPOL frames.
The received EAPOL-Key packets are validated and valid packets are replied to. In addition, key material (PTK, GTK) is configured at the end of a successful key handshake. Definition at line 1965 of file wpa.c. Here is the call graph for this function: |
|
Set AP RSN IE from Beacon/ProbeResp.
Definition at line 2719 of file wpa.c. Here is the call graph for this function: |
|
Set AP WPA IE from Beacon/ProbeResp.
Definition at line 2684 of file wpa.c. Here is the call graph for this function: |
|
Set own WPA/RSN IE from (Re)AssocReq.
Definition at line 2649 of file wpa.c. Here is the call graph for this function: |
|
Generate own WPA/RSN IE from configuration.
Definition at line 2603 of file wpa.c. Here is the call graph for this function: |
|
Notification of current configration change.
|
|
Set EAPOL state machine pointer.
|
|
Set fast reauthentication (EAP) enabled/disabled.
|
|
Set network interface name.
|
|
Set own MAC address.
|
|
Set WPA state machine parameters.
|
|
Set PMK.
|
|
Set PMK based on the current PMKSA.
|
|
Set context pointer for smartcard callbacks.
Definition at line 2410 of file wpa.c. Here is the call graph for this function: |