Classes | Defines | Enumerations | Functions | Variables
driver_atmel.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_atmel.c:

Go to the source code of this file.

Classes

struct  atmel_param
struct  wpa_driver_atmel_data

Defines

#define ATMEL_WPA_IOCTL   (SIOCIWFIRSTPRIV + 2)
#define ATMEL_WPA_IOCTL_GET_PARAM   (SIOCIWFIRSTPRIV + 4)
#define ATMEL_WPA_IOCTL_PARAM   (SIOCIWFIRSTPRIV + 3)
#define MAX_KEY_LENGTH   40

Enumerations

enum  { SET_WPA_ENCRYPTION = 1, SET_CIPHER_SUITES = 2, MLME_STA_DEAUTH = 3, MLME_STA_DISASSOC = 4 }
enum  { ATMEL_PARAM_WPA = 1, ATMEL_PARAM_PRIVACY_INVOKED = 2, ATMEL_PARAM_WPA_TYPE = 3 }

Functions

static int atmel2param (struct wpa_driver_atmel_data *drv, int param, int value)
static int atmel_ioctl (struct wpa_driver_atmel_data *drv, struct atmel_param *param, int len, int show_err)
static int wpa_driver_atmel_associate (void *priv, struct wpa_driver_associate_params *params)
static int wpa_driver_atmel_deauthenticate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_atmel_deinit (void *priv)
static int wpa_driver_atmel_disassociate (void *priv, const u8 *addr, int reason_code)
static int wpa_driver_atmel_get_bssid (void *priv, u8 *bssid)
static struct wpa_scan_resultswpa_driver_atmel_get_scan_results (void *priv)
static int wpa_driver_atmel_get_ssid (void *priv, u8 *ssid)
static void * wpa_driver_atmel_init (void *ctx, const char *ifname)
static int wpa_driver_atmel_mlme (void *priv, const u8 *addr, int cmd, int reason_code)
static int wpa_driver_atmel_scan (void *priv, struct wpa_driver_scan_params *params)
static int wpa_driver_atmel_set_countermeasures (void *priv, int enabled)
static int wpa_driver_atmel_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_atmel_set_operstate (void *priv, int state)
static int wpa_driver_atmel_set_wpa (void *priv, int enabled)

Variables

struct wpa_driver_ops wpa_driver_atmel_ops

Define Documentation

#define ATMEL_WPA_IOCTL   (SIOCIWFIRSTPRIV + 2)

Definition at line 58 of file driver_atmel.c.

Definition at line 60 of file driver_atmel.c.

Definition at line 59 of file driver_atmel.c.

#define MAX_KEY_LENGTH   40

Definition at line 78 of file driver_atmel.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
SET_WPA_ENCRYPTION 
SET_CIPHER_SUITES 
MLME_STA_DEAUTH 
MLME_STA_DISASSOC 

Definition at line 64 of file driver_atmel.c.

anonymous enum
Enumerator:
ATMEL_PARAM_WPA 
ATMEL_PARAM_PRIVACY_INVOKED 
ATMEL_PARAM_WPA_TYPE 

Definition at line 72 of file driver_atmel.c.


Function Documentation

static int atmel2param ( struct wpa_driver_atmel_data drv,
int  param,
int  value 
) [static]

Definition at line 124 of file driver_atmel.c.

static int atmel_ioctl ( struct wpa_driver_atmel_data drv,
struct atmel_param param,
int  len,
int  show_err 
) [static]

Definition at line 101 of file driver_atmel.c.

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

Definition at line 371 of file driver_atmel.c.

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

Definition at line 315 of file driver_atmel.c.

static void wpa_driver_atmel_deinit ( void *  priv) [static]

Definition at line 474 of file driver_atmel.c.

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

Definition at line 327 of file driver_atmel.c.

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

Definition at line 410 of file driver_atmel.c.

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

Definition at line 432 of file driver_atmel.c.

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

Definition at line 417 of file driver_atmel.c.

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

Definition at line 446 of file driver_atmel.c.

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

Definition at line 277 of file driver_atmel.c.

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

Definition at line 424 of file driver_atmel.c.

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

Definition at line 267 of file driver_atmel.c.

static int wpa_driver_atmel_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 191 of file driver_atmel.c.

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

Definition at line 439 of file driver_atmel.c.

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

Definition at line 169 of file driver_atmel.c.


Variable Documentation

Initial value:
 {
        .name = "atmel",
        .desc = "ATMEL AT76C5XXx (USB, PCMCIA)",
        .get_bssid = wpa_driver_atmel_get_bssid,
        .get_ssid = wpa_driver_atmel_get_ssid,
        .set_key = wpa_driver_atmel_set_key,
        .init = wpa_driver_atmel_init,
        .deinit = wpa_driver_atmel_deinit,
        .set_countermeasures = wpa_driver_atmel_set_countermeasures,
        .scan2 = wpa_driver_atmel_scan,
        .get_scan_results2 = wpa_driver_atmel_get_scan_results,
        .deauthenticate = wpa_driver_atmel_deauthenticate,
        .disassociate = wpa_driver_atmel_disassociate,
        .associate = wpa_driver_atmel_associate,
        .set_operstate = wpa_driver_atmel_set_operstate,
}

Definition at line 484 of file driver_atmel.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:37