Classes | Defines | Typedefs | Functions | Variables
driver_broadcom.c File Reference
#include "includes.h"
#include <sys/ioctl.h>
#include "common.h"
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <net/if.h>
#include <typedefs.h>
#include <wlioctl.h>
#include "driver.h"
#include "eloop.h"
Include dependency graph for driver_broadcom.c:

Go to the source code of this file.

Classes

struct  bss_ie_hdr
struct  wlc_deauth_t
struct  wpa_driver_broadcom_data

Defines

#define PSK_ENABLED   2
#define WAUTH_ENABLED(wauth)   ((wauth) & (WPA_ENABLED | PSK_ENABLED))
#define WAUTH_PSK_ENABLED(wauth)   ((wauth) & PSK_ENABLED)
#define WAUTH_WPA_ENABLED(wauth)   ((wauth) & WPA_ENABLED)
#define WL_VERSION   360130
#define WLC_DEAUTHENTICATE   143
#define WLC_DEAUTHENTICATE_WITH_REASON   201
#define WLC_SET_TKIP_COUNTERMEASURES   202
#define WPA_ENABLED   1
#define WSEC_PRIMARY_KEY   WL_PRIMARY_KEY

Typedefs

typedef wl_wsec_key_t wsec_key_t

Functions

struct bss_ie_hdr __attribute__ ((packed))
static int broadcom_ioctl (struct wpa_driver_broadcom_data *drv, int cmd, void *buf, int len)
static int wpa_driver_broadcom_associate (void *priv, struct wpa_driver_associate_params *params)
static int wpa_driver_broadcom_deauthenticate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_broadcom_deinit (void *priv)
static int wpa_driver_broadcom_disassociate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_broadcom_event_receive (int sock, void *ctx, void *sock_ctx)
static int wpa_driver_broadcom_get_bssid (void *priv, u8 *bssid)
static struct wpa_scan_resultswpa_driver_broadcom_get_scan_results (void *priv)
static int wpa_driver_broadcom_get_ssid (void *priv, u8 *ssid)
static void * wpa_driver_broadcom_init (void *ctx, const char *ifname)
static int wpa_driver_broadcom_scan (void *priv, struct wpa_driver_scan_params *params)
static void wpa_driver_broadcom_scan_timeout (void *eloop_ctx, void *timeout_ctx)
static int wpa_driver_broadcom_set_countermeasures (void *priv, int enabled)
static int wpa_driver_broadcom_set_drop_unencrypted (void *priv, int enabled)
static int wpa_driver_broadcom_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_broadcom_set_wpa (void *priv, int enable)

Variables

u8 elem_id
static const int frequency_list []
u8 len
u8 oui [3]
struct wpa_driver_ops wpa_driver_broadcom_ops

Define Documentation

#define PSK_ENABLED   2

Definition at line 65 of file driver_broadcom.c.

#define WAUTH_ENABLED (   wauth)    ((wauth) & (WPA_ENABLED | PSK_ENABLED))

Definition at line 69 of file driver_broadcom.c.

#define WAUTH_PSK_ENABLED (   wauth)    ((wauth) & PSK_ENABLED)

Definition at line 68 of file driver_broadcom.c.

#define WAUTH_WPA_ENABLED (   wauth)    ((wauth) & WPA_ENABLED)

Definition at line 67 of file driver_broadcom.c.

#define WL_VERSION   360130

Definition at line 62 of file driver_broadcom.c.

#define WLC_DEAUTHENTICATE   143

Definition at line 52 of file driver_broadcom.c.

Definition at line 55 of file driver_broadcom.c.

#define WLC_SET_TKIP_COUNTERMEASURES   202

Definition at line 58 of file driver_broadcom.c.

#define WPA_ENABLED   1

Definition at line 64 of file driver_broadcom.c.

#define WSEC_PRIMARY_KEY   WL_PRIMARY_KEY

Definition at line 71 of file driver_broadcom.c.


Typedef Documentation

typedef wl_wsec_key_t wsec_key_t

Definition at line 73 of file driver_broadcom.c.


Function Documentation

struct bss_ie_hdr __attribute__ ( (packed)  )
static int broadcom_ioctl ( struct wpa_driver_broadcom_data drv,
int  cmd,
void *  buf,
int  len 
) [static]

Definition at line 86 of file driver_broadcom.c.

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

Definition at line 516 of file driver_broadcom.c.

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

Definition at line 496 of file driver_broadcom.c.

static void wpa_driver_broadcom_deinit ( void *  priv) [static]

Definition at line 352 of file driver_broadcom.c.

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

Definition at line 508 of file driver_broadcom.c.

static void wpa_driver_broadcom_event_receive ( int  sock,
void *  ctx,
void *  sock_ctx 
) [static]

Definition at line 229 of file driver_broadcom.c.

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

Definition at line 112 of file driver_broadcom.c.

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

Definition at line 435 of file driver_broadcom.c.

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

Definition at line 122 of file driver_broadcom.c.

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

Definition at line 293 of file driver_broadcom.c.

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

Definition at line 398 of file driver_broadcom.c.

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

Definition at line 391 of file driver_broadcom.c.

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

Definition at line 363 of file driver_broadcom.c.

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

Definition at line 376 of file driver_broadcom.c.

static int wpa_driver_broadcom_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 165 of file driver_broadcom.c.

static int wpa_driver_broadcom_set_wpa ( void *  priv,
int  enable 
) [static]

Definition at line 134 of file driver_broadcom.c.


Variable Documentation

u8 elem_id

Definition at line 433 of file driver_broadcom.c.

const int frequency_list[] [static]
Initial value:
 { 
        2412, 2417, 2422, 2427, 2432, 2437, 2442,
        2447, 2452, 2457, 2462, 2467, 2472, 2484 
}

Definition at line 421 of file driver_broadcom.c.

u8 len

Definition at line 434 of file driver_broadcom.c.

u8 oui[3]

Definition at line 435 of file driver_broadcom.c.

Initial value:
 {
        .name = "broadcom",
        .desc = "Broadcom wl.o driver",
        .get_bssid = wpa_driver_broadcom_get_bssid,
        .get_ssid = wpa_driver_broadcom_get_ssid,
        .set_key = wpa_driver_broadcom_set_key,
        .init = wpa_driver_broadcom_init,
        .deinit = wpa_driver_broadcom_deinit,
        .set_countermeasures = wpa_driver_broadcom_set_countermeasures,
        .scan2 = wpa_driver_broadcom_scan,
        .get_scan_results2 = wpa_driver_broadcom_get_scan_results,
        .deauthenticate = wpa_driver_broadcom_deauthenticate,
        .disassociate = wpa_driver_broadcom_disassociate,
        .associate = wpa_driver_broadcom_associate,
}

Definition at line 585 of file driver_broadcom.c.



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