Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
p80211netdev.h File Reference
#include <linux/interrupt.h>
#include <linux/wireless.h>
#include <linux/netdevice.h>

Go to the source code of this file.

Data Structures

struct  p80211_frmrx_t
 
struct  wlandevice
 

Macros

#define WLAN_RELEASE   "0.3.0-staging"
 
#define WLAN_DEVICE_CLOSED   0
 
#define WLAN_DEVICE_OPEN   1
 
#define WLAN_MACMODE_NONE   0
 
#define WLAN_MACMODE_IBSS_STA   1
 
#define WLAN_MACMODE_ESS_STA   2
 
#define WLAN_MACMODE_ESS_AP   3
 
#define WLAN_MSD_HWPRESENT_PENDING   1
 
#define WLAN_MSD_HWFAIL   2
 
#define WLAN_MSD_HWPRESENT   3
 
#define WLAN_MSD_FWLOAD_PENDING   4
 
#define WLAN_MSD_FWLOAD   5
 
#define WLAN_MSD_RUNNING_PENDING   6
 
#define WLAN_MSD_RUNNING   7
 
#define ETH_P_ECONET   0x0018 /* needed for 2.2.x kernels */
 
#define ETH_P_80211_RAW   (ETH_P_ECONET + 1)
 
#define ARPHRD_IEEE80211   801 /* kernel 2.4.6 */
 
#define ARPHRD_IEEE80211_PRISM   802
 
#define P80211_NSDCAP_HARDWAREWEP   0x01 /* hardware wep engine */
 
#define P80211_NSDCAP_SHORT_PREAMBLE   0x10 /* hardware supports */
 
#define P80211_NSDCAP_HWFRAGMENT   0x80 /* nsd handles frag/defrag */
 
#define P80211_NSDCAP_AUTOJOIN   0x100 /* nsd does autojoin */
 
#define P80211_NSDCAP_NOSCAN   0x200 /* nsd can scan */
 
#define NUM_WEPKEYS   4
 
#define MAX_KEYLEN   32
 
#define HOSTWEP_DEFAULTKEY_MASK   (BIT(1)|BIT(0))
 
#define HOSTWEP_SHAREDKEY   BIT(3)
 
#define HOSTWEP_DECRYPT   BIT(4)
 
#define HOSTWEP_ENCRYPT   BIT(5)
 
#define HOSTWEP_PRIVACYINVOKED   BIT(6)
 
#define HOSTWEP_EXCLUDEUNENCRYPTED   BIT(7)
 

Typedefs

typedef struct net_device netdevice_t
 
typedef struct p80211_frmrx_t p80211_frmrx_t
 
typedef struct wlandevice wlandevice_t
 

Functions

struct iw_statisticsp80211wext_get_wireless_stats (netdevice_t *dev)
 
int p80211wext_event_associated (struct wlandevice *wlandev, int assoc)
 
int wep_change_key (wlandevice_t *wlandev, int keynum, u8 *key, int keylen)
 
int wep_decrypt (wlandevice_t *wlandev, u8 *buf, u32 len, int key_override, u8 *iv, u8 *icv)
 
int wep_encrypt (wlandevice_t *wlandev, u8 *buf, u8 *dst, u32 len, int keynum, u8 *iv, u8 *icv)
 
int wlan_setup (wlandevice_t *wlandev, struct device *physdev)
 
void wlan_unsetup (wlandevice_t *wlandev)
 
int register_wlandev (wlandevice_t *wlandev)
 
int unregister_wlandev (wlandevice_t *wlandev)
 
void p80211netdev_rx (wlandevice_t *wlandev, struct sk_buff *skb)
 
void p80211netdev_hwremoved (wlandevice_t *wlandev)
 

Variables

struct iw_handler_def p80211wext_handler_def
 
int wlan_watchdog
 
int wlan_wext_write
 

Macro Definition Documentation

#define ARPHRD_IEEE80211   801 /* kernel 2.4.6 */

Definition at line 89 of file p80211netdev.h.

#define ARPHRD_IEEE80211_PRISM   802

Definition at line 93 of file p80211netdev.h.

#define ETH_P_80211_RAW   (ETH_P_ECONET + 1)

Definition at line 86 of file p80211netdev.h.

#define ETH_P_ECONET   0x0018 /* needed for 2.2.x kernels */

Definition at line 83 of file p80211netdev.h.

#define HOSTWEP_DECRYPT   BIT(4)

Definition at line 152 of file p80211netdev.h.

#define HOSTWEP_DEFAULTKEY_MASK   (BIT(1)|BIT(0))

Definition at line 150 of file p80211netdev.h.

#define HOSTWEP_ENCRYPT   BIT(5)

Definition at line 153 of file p80211netdev.h.

#define HOSTWEP_EXCLUDEUNENCRYPTED   BIT(7)

Definition at line 155 of file p80211netdev.h.

#define HOSTWEP_PRIVACYINVOKED   BIT(6)

Definition at line 154 of file p80211netdev.h.

#define HOSTWEP_SHAREDKEY   BIT(3)

Definition at line 151 of file p80211netdev.h.

#define MAX_KEYLEN   32

Definition at line 148 of file p80211netdev.h.

#define NUM_WEPKEYS   4

Definition at line 147 of file p80211netdev.h.

#define P80211_NSDCAP_AUTOJOIN   0x100 /* nsd does autojoin */

Definition at line 100 of file p80211netdev.h.

#define P80211_NSDCAP_HARDWAREWEP   0x01 /* hardware wep engine */

Definition at line 97 of file p80211netdev.h.

#define P80211_NSDCAP_HWFRAGMENT   0x80 /* nsd handles frag/defrag */

Definition at line 99 of file p80211netdev.h.

#define P80211_NSDCAP_NOSCAN   0x200 /* nsd can scan */

Definition at line 101 of file p80211netdev.h.

#define P80211_NSDCAP_SHORT_PREAMBLE   0x10 /* hardware supports */

Definition at line 98 of file p80211netdev.h.

#define WLAN_DEVICE_CLOSED   0

Definition at line 65 of file p80211netdev.h.

#define WLAN_DEVICE_OPEN   1

Definition at line 66 of file p80211netdev.h.

#define WLAN_MACMODE_ESS_AP   3

Definition at line 71 of file p80211netdev.h.

#define WLAN_MACMODE_ESS_STA   2

Definition at line 70 of file p80211netdev.h.

#define WLAN_MACMODE_IBSS_STA   1

Definition at line 69 of file p80211netdev.h.

#define WLAN_MACMODE_NONE   0

Definition at line 68 of file p80211netdev.h.

#define WLAN_MSD_FWLOAD   5

Definition at line 78 of file p80211netdev.h.

#define WLAN_MSD_FWLOAD_PENDING   4

Definition at line 77 of file p80211netdev.h.

#define WLAN_MSD_HWFAIL   2

Definition at line 75 of file p80211netdev.h.

#define WLAN_MSD_HWPRESENT   3

Definition at line 76 of file p80211netdev.h.

#define WLAN_MSD_HWPRESENT_PENDING   1

Definition at line 74 of file p80211netdev.h.

#define WLAN_MSD_RUNNING   7

Definition at line 80 of file p80211netdev.h.

#define WLAN_MSD_RUNNING_PENDING   6

Definition at line 79 of file p80211netdev.h.

#define WLAN_RELEASE   "0.3.0-staging"

Definition at line 63 of file p80211netdev.h.

Typedef Documentation

Definition at line 61 of file p80211netdev.h.

Function Documentation

void p80211netdev_hwremoved ( wlandevice_t wlandev)

Definition at line 911 of file p80211netdev.c.

void p80211netdev_rx ( wlandevice_t wlandev,
struct sk_buff skb 
)

Definition at line 239 of file p80211netdev.c.

int p80211wext_event_associated ( struct wlandevice wlandev,
int  assoc 
)
struct iw_statistics* p80211wext_get_wireless_stats ( netdevice_t dev)
read
int register_wlandev ( wlandevice_t wlandev)

Definition at line 846 of file p80211netdev.c.

int unregister_wlandev ( wlandevice_t wlandev)

Definition at line 868 of file p80211netdev.c.

int wep_change_key ( wlandevice_t wlandev,
int  keynum,
u8 key,
int  keylen 
)

Definition at line 123 of file p80211wep.c.

int wep_decrypt ( wlandevice_t wlandev,
u8 buf,
u32  len,
int  key_override,
u8 iv,
u8 icv 
)

Definition at line 151 of file p80211wep.c.

int wep_encrypt ( wlandevice_t wlandev,
u8 buf,
u8 dst,
u32  len,
int  keynum,
u8 iv,
u8 icv 
)

Definition at line 228 of file p80211wep.c.

int wlan_setup ( wlandevice_t wlandev,
struct device physdev 
)

Definition at line 746 of file p80211netdev.c.

void wlan_unsetup ( wlandevice_t wlandev)

Definition at line 812 of file p80211netdev.c.

Variable Documentation

struct iw_handler_def p80211wext_handler_def
int wlan_watchdog

Definition at line 110 of file p80211netdev.c.

int wlan_wext_write

Definition at line 114 of file p80211netdev.c.