Classes | Defines | Functions | Variables
driver_ipw.c File Reference
#include "includes.h"
#include <sys/ioctl.h>
#include "wireless_copy.h"
#include "common.h"
#include "driver.h"
#include "driver_wext.h"
Include dependency graph for driver_ipw.c:

Go to the source code of this file.

Classes

struct  ipw_param
struct  wpa_driver_ipw_data

Defines

#define IPW_CMD_MLME   4
#define IPW_CMD_SET_ENCRYPTION   3
#define IPW_CMD_SET_WPA_IE   2
#define IPW_CMD_SET_WPA_PARAM   1
#define IPW_CRYPT_ALG_NAME_LEN   16
#define IPW_CRYPT_ERR_CARD_CONF_FAILED   7
#define IPW_CRYPT_ERR_CRYPT_INIT_FAILED   4
#define IPW_CRYPT_ERR_KEY_SET_FAILED   5
#define IPW_CRYPT_ERR_TX_KEY_SET_FAILED   6
#define IPW_CRYPT_ERR_UNKNOWN_ADDR   3
#define IPW_CRYPT_ERR_UNKNOWN_ALG   2
#define IPW_IOCTL_WPA_SUPPLICANT   SIOCIWFIRSTPRIV+30
#define IPW_MLME_STA_DEAUTH   1
#define IPW_MLME_STA_DISASSOC   2
#define IPW_PARAM_AUTH_ALGS   5
#define IPW_PARAM_DROP_UNENCRYPTED   3
#define IPW_PARAM_IEEE_802_1X   6
#define IPW_PARAM_PRIVACY_INVOKED   4
#define IPW_PARAM_TKIP_COUNTERMEASURES   2
#define IPW_PARAM_WPA_ENABLED   1

Functions

static int ipw_ioctl (struct wpa_driver_ipw_data *drv, struct ipw_param *param, int len, int show_err)
static int ipw_mlme (struct wpa_driver_ipw_data *drv, const u8 *addr, int cmd, int reason)
static int ipw_set_wpa_ie (struct wpa_driver_ipw_data *drv, const u8 *wpa_ie, size_t wpa_ie_len)
static int ipw_set_wpa_param (struct wpa_driver_ipw_data *drv, u8 name, u32 value)
static void ipw_show_set_key_error (struct ipw_param *param)
static int wpa_driver_ipw_associate (void *priv, struct wpa_driver_associate_params *params)
static int wpa_driver_ipw_deauthenticate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_ipw_deinit (void *priv)
static int wpa_driver_ipw_disassociate (void *priv, const u8 *addr, int reason_code)
static int wpa_driver_ipw_get_bssid (void *priv, u8 *bssid)
static struct wpa_scan_resultswpa_driver_ipw_get_scan_results (void *priv)
static int wpa_driver_ipw_get_ssid (void *priv, u8 *ssid)
static void * wpa_driver_ipw_init (void *ctx, const char *ifname)
static int wpa_driver_ipw_scan (void *priv, struct wpa_driver_scan_params *params)
static int wpa_driver_ipw_set_auth_alg (void *priv, int auth_alg)
static int wpa_driver_ipw_set_countermeasures (void *priv, int enabled)
static int wpa_driver_ipw_set_drop_unencrypted (void *priv, int enabled)
static int wpa_driver_ipw_set_key (const char *ifname, void *priv, 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 int wpa_driver_ipw_set_operstate (void *priv, int state)
static int wpa_driver_ipw_set_wpa (void *priv, int enabled)

Variables

struct wpa_driver_ops wpa_driver_ipw_ops

Define Documentation

#define IPW_CMD_MLME   4

Definition at line 43 of file driver_ipw.c.

#define IPW_CMD_SET_ENCRYPTION   3

Definition at line 42 of file driver_ipw.c.

#define IPW_CMD_SET_WPA_IE   2

Definition at line 41 of file driver_ipw.c.

#define IPW_CMD_SET_WPA_PARAM   1

Definition at line 40 of file driver_ipw.c.

#define IPW_CRYPT_ALG_NAME_LEN   16

Definition at line 62 of file driver_ipw.c.

Definition at line 60 of file driver_ipw.c.

Definition at line 57 of file driver_ipw.c.

Definition at line 58 of file driver_ipw.c.

Definition at line 59 of file driver_ipw.c.

Definition at line 56 of file driver_ipw.c.

#define IPW_CRYPT_ERR_UNKNOWN_ALG   2

Definition at line 55 of file driver_ipw.c.

Definition at line 38 of file driver_ipw.c.

#define IPW_MLME_STA_DEAUTH   1

Definition at line 52 of file driver_ipw.c.

#define IPW_MLME_STA_DISASSOC   2

Definition at line 53 of file driver_ipw.c.

#define IPW_PARAM_AUTH_ALGS   5

Definition at line 49 of file driver_ipw.c.

Definition at line 47 of file driver_ipw.c.

#define IPW_PARAM_IEEE_802_1X   6

Definition at line 50 of file driver_ipw.c.

#define IPW_PARAM_PRIVACY_INVOKED   4

Definition at line 48 of file driver_ipw.c.

Definition at line 46 of file driver_ipw.c.

#define IPW_PARAM_WPA_ENABLED   1

Definition at line 45 of file driver_ipw.c.


Function Documentation

static int ipw_ioctl ( struct wpa_driver_ipw_data drv,
struct ipw_param param,
int  len,
int  show_err 
) [static]

Definition at line 98 of file driver_ipw.c.

static int ipw_mlme ( struct wpa_driver_ipw_data drv,
const u8 *  addr,
int  cmd,
int  reason 
) [static]

Definition at line 186 of file driver_ipw.c.

static int ipw_set_wpa_ie ( struct wpa_driver_ipw_data drv,
const u8 *  wpa_ie,
size_t  wpa_ie_len 
) [static]

Definition at line 150 of file driver_ipw.c.

static int ipw_set_wpa_param ( struct wpa_driver_ipw_data drv,
u8  name,
u32  value 
) [static]

Definition at line 172 of file driver_ipw.c.

static void ipw_show_set_key_error ( struct ipw_param param) [static]

Definition at line 119 of file driver_ipw.c.

static int wpa_driver_ipw_associate ( void *  priv,
struct wpa_driver_associate_params params 
) [static]

Definition at line 318 of file driver_ipw.c.

static int wpa_driver_ipw_deauthenticate ( void *  priv,
const u8 *  addr,
int  reason_code 
) [static]

Definition at line 301 of file driver_ipw.c.

static void wpa_driver_ipw_deinit ( void *  priv) [static]

Definition at line 446 of file driver_ipw.c.

static int wpa_driver_ipw_disassociate ( void *  priv,
const u8 *  addr,
int  reason_code 
) [static]

Definition at line 309 of file driver_ipw.c.

static int wpa_driver_ipw_get_bssid ( void *  priv,
u8 *  bssid 
) [static]

Definition at line 372 of file driver_ipw.c.

static struct wpa_scan_results* wpa_driver_ipw_get_scan_results ( void *  priv) [static, read]

Definition at line 394 of file driver_ipw.c.

static int wpa_driver_ipw_get_ssid ( void *  priv,
u8 *  ssid 
) [static]

Definition at line 379 of file driver_ipw.c.

static void* wpa_driver_ipw_init ( void *  ctx,
const char *  ifname 
) [static]

Definition at line 408 of file driver_ipw.c.

static int wpa_driver_ipw_scan ( void *  priv,
struct wpa_driver_scan_params params 
) [static]

Definition at line 386 of file driver_ipw.c.

static int wpa_driver_ipw_set_auth_alg ( void *  priv,
int  auth_alg 
) [static]

Definition at line 353 of file driver_ipw.c.

static int wpa_driver_ipw_set_countermeasures ( void *  priv,
int  enabled 
) [static]

Definition at line 282 of file driver_ipw.c.

static int wpa_driver_ipw_set_drop_unencrypted ( void *  priv,
int  enabled 
) [static]

Definition at line 292 of file driver_ipw.c.

static int wpa_driver_ipw_set_key ( const char *  ifname,
void *  priv,
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]

Definition at line 218 of file driver_ipw.c.

static int wpa_driver_ipw_set_operstate ( void *  priv,
int  state 
) [static]

Definition at line 401 of file driver_ipw.c.

static int wpa_driver_ipw_set_wpa ( void *  priv,
int  enabled 
) [static]

Definition at line 201 of file driver_ipw.c.


Variable Documentation

Initial value:
 {
        .name = "ipw",
        .desc = "Intel ipw2100/2200 driver (old; use wext with Linux 2.6.13 "
        "or newer)",
        .get_bssid = wpa_driver_ipw_get_bssid,
        .get_ssid = wpa_driver_ipw_get_ssid,
        .set_key = wpa_driver_ipw_set_key,
        .set_countermeasures = wpa_driver_ipw_set_countermeasures,
        .scan2 = wpa_driver_ipw_scan,
        .get_scan_results2 = wpa_driver_ipw_get_scan_results,
        .deauthenticate = wpa_driver_ipw_deauthenticate,
        .disassociate = wpa_driver_ipw_disassociate,
        .associate = wpa_driver_ipw_associate,
        .init = wpa_driver_ipw_init,
        .deinit = wpa_driver_ipw_deinit,
        .set_operstate = wpa_driver_ipw_set_operstate,
}

Definition at line 456 of file driver_ipw.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:25:16