$search

driver_atheros.c File Reference

#include "includes.h"
#include <net/if.h>
#include <sys/ioctl.h>
#include "common.h"
#include "os/linux/include/ieee80211_external.h"
#include "wireless_copy.h"
#include <sys/types.h>
#include "common/defs.h"
#include "eloop.h"
#include "l2_packet/l2_packet.h"
#include "common/ieee802_11_defs.h"
Include dependency graph for driver_atheros.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  madwifi_driver_data

Defines

#define _BYTE_ORDER   _LITTLE_ENDIAN
#define ATH_WPS_IE
#define madwifi_set_ap_wps_ie   NULL

Functions

static const char * athr_get_ioctl_name (int op)
static const char * athr_get_param_name (int op)
static const char * ether_sprintf (const u8 *addr)
static void handle_read (void *ctx, const u8 *src_addr, const u8 *buf, size_t len)
static int madwifi_commit (void *priv)
static int madwifi_configure_wpa (struct madwifi_driver_data *drv, struct wpa_bss_params *params)
static void madwifi_deinit (void *priv)
static int madwifi_del_key (void *priv, const u8 *addr, int key_idx)
static int madwifi_flush (void *priv)
static int madwifi_get_seqnum (const char *ifname, void *priv, const u8 *addr, int idx, u8 *seq)
static int madwifi_get_ssid (void *priv, u8 *buf, int len)
static int madwifi_get_we_version (struct madwifi_driver_data *drv)
static void * madwifi_init (struct hostapd_data *hapd, struct wpa_init_params *params)
static void madwifi_new_sta (struct madwifi_driver_data *drv, u8 addr[IEEE80211_ADDR_LEN])
static int madwifi_read_sta_driver_data (void *priv, struct hostap_sta_driver_data *data, const u8 *addr)
static int madwifi_receive_probe_req (struct madwifi_driver_data *drv)
static int madwifi_send_eapol (void *priv, const u8 *addr, const u8 *data, size_t data_len, int encrypt, const u8 *own_addr)
static int madwifi_set_countermeasures (void *priv, int enabled)
static int madwifi_set_ieee8021x (void *priv, struct wpa_bss_params *params)
static int madwifi_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 madwifi_set_opt_ie (void *priv, const u8 *ie, size_t ie_len)
static int madwifi_set_privacy (void *priv, int enabled)
static int madwifi_set_ssid (void *priv, const u8 *buf, int len)
static int madwifi_set_sta_authorized (void *priv, const u8 *addr, int authorized)
static int madwifi_sta_clear_stats (void *priv, const u8 *addr)
static int madwifi_sta_deauth (void *priv, const u8 *own_addr, const u8 *addr, int reason_code)
static int madwifi_sta_disassoc (void *priv, const u8 *own_addr, const u8 *addr, int reason_code)
static int madwifi_sta_set_flags (void *priv, const u8 *addr, int total_flags, int flags_or, int flags_and)
static int madwifi_wireless_event_init (struct madwifi_driver_data *drv)
static void madwifi_wireless_event_rtm_newlink (void *ctx, struct ifinfomsg *ifi, u8 *buf, size_t len)
static void madwifi_wireless_event_wireless (struct madwifi_driver_data *drv, char *data, int len)
static void madwifi_wireless_event_wireless_custom (struct madwifi_driver_data *drv, char *custom, char *end)
static int set80211param (struct madwifi_driver_data *drv, int op, int arg)
static int set80211priv (struct madwifi_driver_data *drv, int op, void *data, int len)

Variables

struct wpa_driver_ops wpa_driver_atheros_ops

Define Documentation

#define _BYTE_ORDER   _LITTLE_ENDIAN

Definition at line 27 of file driver_atheros.c.

#define ATH_WPS_IE

Definition at line 35 of file driver_atheros.c.

#define madwifi_set_ap_wps_ie   NULL

Definition at line 765 of file driver_atheros.c.


Function Documentation

static const char* athr_get_ioctl_name ( int  op  )  [static]

Definition at line 78 of file driver_atheros.c.

static const char* athr_get_param_name ( int  op  )  [static]

Definition at line 153 of file driver_atheros.c.

static const char* ether_sprintf ( const u8 addr  )  [static]

Definition at line 241 of file driver_atheros.c.

static void handle_read ( void *  ctx,
const u8 src_addr,
const u8 buf,
size_t  len 
) [static]

Definition at line 1104 of file driver_atheros.c.

static int madwifi_commit ( void *  priv  )  [static]

Definition at line 1265 of file driver_atheros.c.

static int madwifi_configure_wpa ( struct madwifi_driver_data drv,
struct wpa_bss_params params 
) [static]

Definition at line 257 of file driver_atheros.c.

static void madwifi_deinit ( void *  priv  )  [static]

Definition at line 1198 of file driver_atheros.c.

static int madwifi_del_key ( void *  priv,
const u8 addr,
int  key_idx 
) [static]

Definition at line 417 of file driver_atheros.c.

static int madwifi_flush ( void *  priv  )  [static]

Definition at line 556 of file driver_atheros.c.

static int madwifi_get_seqnum ( const char *  ifname,
void *  priv,
const u8 addr,
int  idx,
u8 seq 
) [static]

Definition at line 509 of file driver_atheros.c.

static int madwifi_get_ssid ( void *  priv,
u8 buf,
int  len 
) [static]

Definition at line 1236 of file driver_atheros.c.

static int madwifi_get_we_version ( struct madwifi_driver_data drv  )  [static]

Definition at line 995 of file driver_atheros.c.

static void* madwifi_init ( struct hostapd_data hapd,
struct wpa_init_params params 
) [static]

Definition at line 1112 of file driver_atheros.c.

static void madwifi_new_sta ( struct madwifi_driver_data drv,
u8  addr[IEEE80211_ADDR_LEN] 
) [static]

Definition at line 769 of file driver_atheros.c.

static int madwifi_read_sta_driver_data ( void *  priv,
struct hostap_sta_driver_data data,
const u8 addr 
) [static]

Definition at line 566 of file driver_atheros.c.

static int madwifi_receive_probe_req ( struct madwifi_driver_data drv  )  [static]

Definition at line 709 of file driver_atheros.c.

static int madwifi_send_eapol ( void *  priv,
const u8 addr,
const u8 data,
size_t  data_len,
int  encrypt,
const u8 own_addr 
) [static]

Definition at line 1063 of file driver_atheros.c.

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

Definition at line 1257 of file driver_atheros.c.

static int madwifi_set_ieee8021x ( void *  priv,
struct wpa_bss_params params 
) [static]

Definition at line 338 of file driver_atheros.c.

static int madwifi_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 445 of file driver_atheros.c.

static int madwifi_set_opt_ie ( void *  priv,
const u8 ie,
size_t  ie_len 
) [static]

Definition at line 623 of file driver_atheros.c.

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

Definition at line 370 of file driver_atheros.c.

static int madwifi_set_ssid ( void *  priv,
const u8 buf,
int  len 
) [static]

Definition at line 1216 of file driver_atheros.c.

static int madwifi_set_sta_authorized ( void *  priv,
const u8 addr,
int  authorized 
) [static]

Definition at line 380 of file driver_atheros.c.

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

Definition at line 601 of file driver_atheros.c.

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

Definition at line 633 of file driver_atheros.c.

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

Definition at line 657 of file driver_atheros.c.

static int madwifi_sta_set_flags ( void *  priv,
const u8 addr,
int  total_flags,
int  flags_or,
int  flags_and 
) [static]

Definition at line 405 of file driver_atheros.c.

static int madwifi_wireless_event_init ( struct madwifi_driver_data drv  )  [static]

Definition at line 1041 of file driver_atheros.c.

static void madwifi_wireless_event_rtm_newlink ( void *  ctx,
struct ifinfomsg ifi,
u8 buf,
size_t  len 
) [static]

Definition at line 969 of file driver_atheros.c.

static void madwifi_wireless_event_wireless ( struct madwifi_driver_data drv,
char *  data,
int  len 
) [static]

Definition at line 903 of file driver_atheros.c.

static void madwifi_wireless_event_wireless_custom ( struct madwifi_driver_data drv,
char *  custom,
char *  end 
) [static]

Definition at line 824 of file driver_atheros.c.

static int set80211param ( struct madwifi_driver_data drv,
int  op,
int  arg 
) [static]

Definition at line 220 of file driver_atheros.c.

static int set80211priv ( struct madwifi_driver_data drv,
int  op,
void *  data,
int  len 
) [static]

Definition at line 181 of file driver_atheros.c.


Variable Documentation

Initial value:
 {
        .name                   = "atheros",
        .hapd_init              = madwifi_init,
        .deinit                 = madwifi_deinit,
        .set_ieee8021x          = madwifi_set_ieee8021x,
        .set_privacy            = madwifi_set_privacy,
        .set_key                = madwifi_set_key,
        .get_seqnum             = madwifi_get_seqnum,
        .flush                  = madwifi_flush,
        .set_generic_elem       = madwifi_set_opt_ie,
        .sta_set_flags          = madwifi_sta_set_flags,
        .read_sta_data          = madwifi_read_sta_driver_data,
        .hapd_send_eapol        = madwifi_send_eapol,
        .sta_disassoc           = madwifi_sta_disassoc,
        .sta_deauth             = madwifi_sta_deauth,
        .hapd_set_ssid          = madwifi_set_ssid,
        .hapd_get_ssid          = madwifi_get_ssid,
        .set_countermeasures    = madwifi_set_countermeasures,
        .sta_clear_stats        = madwifi_sta_clear_stats,
        .commit                 = madwifi_commit,
        .set_ap_wps_ie          = madwifi_set_ap_wps_ie,
}

Definition at line 1271 of file driver_atheros.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Mar 1 16:00:03 2013