Classes | Defines | Functions | Variables
driver_ndiswrapper.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_ndiswrapper.c:

Go to the source code of this file.

Classes

struct  wpa_assoc_info
struct  wpa_driver_ndiswrapper_data
struct  wpa_key

Defines

#define PRIV_RESET   SIOCIWFIRSTPRIV+0
#define WPA_ASSOCIATE   SIOCIWFIRSTPRIV+3
#define WPA_DEAUTHENTICATE   SIOCIWFIRSTPRIV+7
#define WPA_DEINIT   SIOCIWFIRSTPRIV+10
#define WPA_DISASSOCIATE   SIOCIWFIRSTPRIV+4
#define WPA_DROP_UNENCRYPTED   SIOCIWFIRSTPRIV+5
#define WPA_GET_CAPA   SIOCIWFIRSTPRIV+11
#define WPA_INIT   SIOCIWFIRSTPRIV+9
#define WPA_SET_AUTH_ALG   SIOCIWFIRSTPRIV+8
#define WPA_SET_COUNTERMEASURES   SIOCIWFIRSTPRIV+6
#define WPA_SET_KEY   SIOCIWFIRSTPRIV+2
#define WPA_SET_WPA   SIOCIWFIRSTPRIV+1

Functions

static int get_socket (void)
static int iw_set_ext (struct wpa_driver_ndiswrapper_data *drv, int request, struct iwreq *pwrq)
static int wpa_ndiswrapper_associate (void *priv, struct wpa_driver_associate_params *params)
static int wpa_ndiswrapper_deauthenticate (void *priv, const u8 *addr, int reason_code)
static void wpa_ndiswrapper_deinit (void *priv)
static int wpa_ndiswrapper_disassociate (void *priv, const u8 *addr, int reason_code)
static int wpa_ndiswrapper_get_bssid (void *priv, u8 *bssid)
static int wpa_ndiswrapper_get_capa (void *priv, struct wpa_driver_capa *capa)
static struct wpa_scan_resultswpa_ndiswrapper_get_scan_results (void *priv)
static int wpa_ndiswrapper_get_ssid (void *priv, u8 *ssid)
static void * wpa_ndiswrapper_init (void *ctx, const char *ifname)
static int wpa_ndiswrapper_scan (void *priv, struct wpa_driver_scan_params *params)
static int wpa_ndiswrapper_set_auth_alg (void *priv, int auth_alg)
static int wpa_ndiswrapper_set_countermeasures (void *priv, int enabled)
static int wpa_ndiswrapper_set_drop_unencrypted (void *priv, int enabled)
static int wpa_ndiswrapper_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_ndiswrapper_set_operstate (void *priv, int state)
static int wpa_ndiswrapper_set_wpa (void *priv, int enabled)

Variables

struct wpa_driver_ops wpa_driver_ndiswrapper_ops

Define Documentation

#define PRIV_RESET   SIOCIWFIRSTPRIV+0

Definition at line 61 of file driver_ndiswrapper.c.

Definition at line 64 of file driver_ndiswrapper.c.

Definition at line 68 of file driver_ndiswrapper.c.

#define WPA_DEINIT   SIOCIWFIRSTPRIV+10

Definition at line 71 of file driver_ndiswrapper.c.

Definition at line 65 of file driver_ndiswrapper.c.

Definition at line 66 of file driver_ndiswrapper.c.

#define WPA_GET_CAPA   SIOCIWFIRSTPRIV+11

Definition at line 72 of file driver_ndiswrapper.c.

#define WPA_INIT   SIOCIWFIRSTPRIV+9

Definition at line 70 of file driver_ndiswrapper.c.

Definition at line 69 of file driver_ndiswrapper.c.

Definition at line 67 of file driver_ndiswrapper.c.

#define WPA_SET_KEY   SIOCIWFIRSTPRIV+2

Definition at line 63 of file driver_ndiswrapper.c.

#define WPA_SET_WPA   SIOCIWFIRSTPRIV+1

Definition at line 62 of file driver_ndiswrapper.c.


Function Documentation

static int get_socket ( void  ) [static]

Definition at line 76 of file driver_ndiswrapper.c.

static int iw_set_ext ( struct wpa_driver_ndiswrapper_data drv,
int  request,
struct iwreq pwrq 
) [static]

Definition at line 93 of file driver_ndiswrapper.c.

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

Definition at line 219 of file driver_ndiswrapper.c.

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

Definition at line 187 of file driver_ndiswrapper.c.

static void wpa_ndiswrapper_deinit ( void *  priv) [static]

Definition at line 351 of file driver_ndiswrapper.c.

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

Definition at line 203 of file driver_ndiswrapper.c.

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

Definition at line 270 of file driver_ndiswrapper.c.

static int wpa_ndiswrapper_get_capa ( void *  priv,
struct wpa_driver_capa capa 
) [static]

Definition at line 299 of file driver_ndiswrapper.c.

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

Definition at line 292 of file driver_ndiswrapper.c.

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

Definition at line 277 of file driver_ndiswrapper.c.

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

Definition at line 323 of file driver_ndiswrapper.c.

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

Definition at line 284 of file driver_ndiswrapper.c.

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

Definition at line 256 of file driver_ndiswrapper.c.

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

Definition at line 157 of file driver_ndiswrapper.c.

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

Definition at line 172 of file driver_ndiswrapper.c.

static int wpa_ndiswrapper_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 114 of file driver_ndiswrapper.c.

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

Definition at line 316 of file driver_ndiswrapper.c.

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

Definition at line 100 of file driver_ndiswrapper.c.


Variable Documentation

Initial value:
 {
        .name = "ndiswrapper",
        .desc = "Linux ndiswrapper (deprecated; use wext)",
        .set_key = wpa_ndiswrapper_set_key,
        .set_countermeasures = wpa_ndiswrapper_set_countermeasures,
        .deauthenticate = wpa_ndiswrapper_deauthenticate,
        .disassociate = wpa_ndiswrapper_disassociate,
        .associate = wpa_ndiswrapper_associate,

        .get_bssid = wpa_ndiswrapper_get_bssid,
        .get_ssid = wpa_ndiswrapper_get_ssid,
        .scan2 = wpa_ndiswrapper_scan,
        .get_scan_results2 = wpa_ndiswrapper_get_scan_results,
        .init = wpa_ndiswrapper_init,
        .deinit = wpa_ndiswrapper_deinit,
        .get_capa = wpa_ndiswrapper_get_capa,
        .set_operstate = wpa_ndiswrapper_set_operstate,
}

Definition at line 361 of file driver_ndiswrapper.c.



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