Frontend for WPA using a pre-shared key.
Definition in file wpa_psk.c.
Start WPA-PSK authentication.
- Parameters
-
- Return values
-
Definition at line 50 of file wpa_psk.c.
52 char passphrase[64+1];
58 &net80211_key_setting, passphrase,
62 DBGC (
ctx,
"WPA-PSK %p: no passphrase provided!\n",
ctx );
70 DBGC (
ctx,
"WPA-PSK %p: derived PMK from passphrase `%s':\n",
ctx,
struct net80211_device * dev
802.11 device we are authenticating for
#define EACCES
Permission denied.
struct golan_eq_context ctx
void net80211_deauthenticate(struct net80211_device *dev, int rc)
Deauthenticate from current network and try again.
static struct settings * netdev_settings(struct net_device *netdev)
Get per-netdevice configuration settings block.
u8 pmk[WPA_PMK_LEN]
The Pairwise Master Key to use in handshaking.
char essid[IEEE80211_MAX_SSID_LEN+1]
SSID of the access point we are or will be associated with.
#define WPA_PMK_LEN
Usual length of a Pairwise Master Key.
void * priv
Pointer to private data.
Common context for WPA security handshaking.
int fetch_string_setting(struct settings *settings, const struct setting *setting, char *data, size_t len)
Fetch value of string setting.
size_t strlen(const char *src)
Get length of string.
struct net80211_handshaker * handshaker
Security handshaker being used.
int wpa_start(struct net80211_device *dev, struct wpa_common_ctx *ctx, const void *pmk, size_t pmk_len)
Set up generic WPA support to handle 4-Way Handshake.
struct net_device * netdev
The net_device that wraps us.
References ctx, DBGC, DBGC_HD, wpa_common_ctx::dev, EACCES, net80211_device::essid, fetch_string_setting(), net80211_device::handshaker, len, net80211_deauthenticate(), net80211_device::netdev, netdev_settings(), pbkdf2_sha1(), wpa_common_ctx::pmk, net80211_handshaker::priv, strlen(), WPA_PMK_LEN, and wpa_start().