$search

driver_ralink.c File Reference

#include "includes.h"
#include <sys/ioctl.h>
#include "wireless_copy.h"
#include "common.h"
#include "driver.h"
#include "l2_packet/l2_packet.h"
#include "eloop.h"
#include "common/ieee802_11_defs.h"
#include "priv_netlink.h"
#include "netlink.h"
#include "linux_ioctl.h"
#include "driver_ralink.h"
Include dependency graph for driver_ralink.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wpa_driver_ralink_data

Defines

#define MAX_SSID_LEN   32

Functions

static int ralink_get_new_driver_flag (struct wpa_driver_ralink_data *drv)
static int ralink_get_we_version_compiled (struct wpa_driver_ralink_data *drv)
static void ralink_interface_up (struct wpa_driver_ralink_data *drv)
static int ralink_set_auth_mode (struct wpa_driver_ralink_data *drv, NDIS_802_11_AUTHENTICATION_MODE mode)
static int ralink_set_encr_type (struct wpa_driver_ralink_data *drv, NDIS_802_11_WEP_STATUS encr_type)
static int ralink_set_oid (struct wpa_driver_ralink_data *drv, unsigned short oid, char *data, int len)
static int wpa_driver_ralink_add_pmkid (void *priv, const u8 *bssid, const u8 *pmkid)
static int wpa_driver_ralink_add_wep (struct wpa_driver_ralink_data *drv, int pairwise, int key_idx, int set_tx, const u8 *key, size_t key_len)
static int wpa_driver_ralink_associate (void *priv, struct wpa_driver_associate_params *params)
static int wpa_driver_ralink_deauthenticate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_ralink_deinit (void *priv)
static int wpa_driver_ralink_disassociate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_ralink_event_pmkid (struct wpa_driver_ralink_data *drv, const u8 *data, size_t data_len)
static void wpa_driver_ralink_event_rtm_newlink (void *ctx, struct ifinfomsg *ifi, u8 *buf, size_t len)
static void wpa_driver_ralink_event_wireless (struct wpa_driver_ralink_data *drv, void *ctx, char *data, int len)
static void wpa_driver_ralink_event_wireless_custom (struct wpa_driver_ralink_data *drv, void *ctx, char *custom)
static int wpa_driver_ralink_flush_pmkid (void *priv)
static int wpa_driver_ralink_get_bssid (void *priv, u8 *bssid)
static struct wpa_scan_resultswpa_driver_ralink_get_scan_results (void *priv)
static int wpa_driver_ralink_get_ssid (void *priv, u8 *ssid)
static void * wpa_driver_ralink_init (void *ctx, const char *ifname)
static int wpa_driver_ralink_remove_key (struct wpa_driver_ralink_data *drv, int key_idx, const u8 *addr, const u8 *bssid, int pairwise)
static int wpa_driver_ralink_remove_pmkid (void *priv, const u8 *bssid, const u8 *pmkid)
static int wpa_driver_ralink_scan (void *priv, struct wpa_driver_scan_params *params)
static void wpa_driver_ralink_scan_timeout (void *eloop_ctx, void *timeout_ctx)
static int wpa_driver_ralink_set_countermeasures (void *priv, int enabled)
static int wpa_driver_ralink_set_gen_ie (void *priv, const u8 *ie, size_t ie_len)
static int wpa_driver_ralink_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_ralink_set_pmkid (struct wpa_driver_ralink_data *drv)
static int wpa_driver_ralink_set_ssid (struct wpa_driver_ralink_data *drv, const u8 *ssid, size_t ssid_len)

Variables

struct wpa_driver_ops wpa_driver_ralink_ops

Define Documentation

#define MAX_SSID_LEN   32

Definition at line 33 of file driver_ralink.c.


Function Documentation

static int ralink_get_new_driver_flag ( struct wpa_driver_ralink_data drv  )  [static]

Definition at line 84 of file driver_ralink.c.

static int ralink_get_we_version_compiled ( struct wpa_driver_ralink_data drv  )  [static]

Definition at line 746 of file driver_ralink.c.

static void ralink_interface_up ( struct wpa_driver_ralink_data drv  )  [static]

Definition at line 523 of file driver_ralink.c.

static int ralink_set_auth_mode ( struct wpa_driver_ralink_data drv,
NDIS_802_11_AUTHENTICATION_MODE  mode 
) [static]

Definition at line 1059 of file driver_ralink.c.

static int ralink_set_encr_type ( struct wpa_driver_ralink_data drv,
NDIS_802_11_WEP_STATUS  encr_type 
) [static]

Definition at line 1076 of file driver_ralink.c.

static int ralink_set_oid ( struct wpa_driver_ralink_data drv,
unsigned short  oid,
char *  data,
int  len 
) [static]

Definition at line 53 of file driver_ralink.c.

static int wpa_driver_ralink_add_pmkid ( void *  priv,
const u8 bssid,
const u8 pmkid 
) [static]

Definition at line 341 of file driver_ralink.c.

static int wpa_driver_ralink_add_wep ( struct wpa_driver_ralink_data drv,
int  pairwise,
int  key_idx,
int  set_tx,
const u8 key,
size_t  key_len 
) [static]

Definition at line 1129 of file driver_ralink.c.

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

Definition at line 1312 of file driver_ralink.c.

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

Definition at line 1264 of file driver_ralink.c.

static void wpa_driver_ralink_deinit ( void *  priv  )  [static]

Definition at line 847 of file driver_ralink.c.

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

Definition at line 1248 of file driver_ralink.c.

static void wpa_driver_ralink_event_pmkid ( struct wpa_driver_ralink_data drv,
const u8 data,
size_t  data_len 
) [static]

Definition at line 257 of file driver_ralink.c.

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

Definition at line 714 of file driver_ralink.c.

static void wpa_driver_ralink_event_wireless ( struct wpa_driver_ralink_data drv,
void *  ctx,
char *  data,
int  len 
) [static]

Definition at line 552 of file driver_ralink.c.

static void wpa_driver_ralink_event_wireless_custom ( struct wpa_driver_ralink_data drv,
void *  ctx,
char *  custom 
) [static]

Definition at line 452 of file driver_ralink.c.

static int wpa_driver_ralink_flush_pmkid ( void *  priv  )  [static]

Definition at line 421 of file driver_ralink.c.

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

Definition at line 102 of file driver_ralink.c.

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

Definition at line 940 of file driver_ralink.c.

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

Definition at line 125 of file driver_ralink.c.

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

Definition at line 766 of file driver_ralink.c.

static int wpa_driver_ralink_remove_key ( struct wpa_driver_ralink_data drv,
int  key_idx,
const u8 addr,
const u8 bssid,
int  pairwise 
) [static]

Definition at line 1094 of file driver_ralink.c.

static int wpa_driver_ralink_remove_pmkid ( void *  priv,
const u8 bssid,
const u8 pmkid 
) [static]

Definition at line 387 of file driver_ralink.c.

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

Definition at line 891 of file driver_ralink.c.

static void wpa_driver_ralink_scan_timeout ( void *  eloop_ctx,
void *  timeout_ctx 
) [static]

Definition at line 878 of file driver_ralink.c.

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

Definition at line 1472 of file driver_ralink.c.

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

Definition at line 1288 of file driver_ralink.c.

static int wpa_driver_ralink_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 1162 of file driver_ralink.c.

static int wpa_driver_ralink_set_pmkid ( struct wpa_driver_ralink_data drv  )  [static]

Definition at line 306 of file driver_ralink.c.

static int wpa_driver_ralink_set_ssid ( struct wpa_driver_ralink_data drv,
const u8 ssid,
size_t  ssid_len 
) [static]

Definition at line 226 of file driver_ralink.c.


Variable Documentation

Initial value:
 {
        .name = "ralink",
        .desc = "Ralink Wireless Client driver",
        .get_bssid = wpa_driver_ralink_get_bssid,
        .get_ssid = wpa_driver_ralink_get_ssid,
        .set_key = wpa_driver_ralink_set_key,
        .init = wpa_driver_ralink_init,
        .deinit = wpa_driver_ralink_deinit,
        .set_countermeasures    = wpa_driver_ralink_set_countermeasures,
        .scan2 = wpa_driver_ralink_scan,
        .get_scan_results2 = wpa_driver_ralink_get_scan_results,
        .deauthenticate = wpa_driver_ralink_deauthenticate,
        .disassociate = wpa_driver_ralink_disassociate,
        .associate = wpa_driver_ralink_associate,
        .add_pmkid = wpa_driver_ralink_add_pmkid,
        .remove_pmkid = wpa_driver_ralink_remove_pmkid,
        .flush_pmkid = wpa_driver_ralink_flush_pmkid,
}

Definition at line 1482 of file driver_ralink.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:05 2013