#include "includes.h"
#include <sys/ioctl.h>
#include "wireless_copy.h"
#include "common.h"
#include "driver.h"
#include "driver_wext.h"
#include <net/if.h>
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_results * | wpa_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 ATMEL_WPA_IOCTL (SIOCIWFIRSTPRIV + 2) |
Definition at line 58 of file driver_atmel.c.
#define ATMEL_WPA_IOCTL_GET_PARAM (SIOCIWFIRSTPRIV + 4) |
Definition at line 60 of file driver_atmel.c.
#define ATMEL_WPA_IOCTL_PARAM (SIOCIWFIRSTPRIV + 3) |
Definition at line 59 of file driver_atmel.c.
#define MAX_KEY_LENGTH 40 |
Definition at line 78 of file driver_atmel.c.
anonymous enum |
Definition at line 64 of file driver_atmel.c.
anonymous enum |
Definition at line 72 of file driver_atmel.c.
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.
{ .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.