#include <linux/interrupt.h>
#include <linux/wireless.h>
Go to the source code of this file.
#define WLAN_DEVICE_CLOSED 0 |
Definition at line 62 of file p80211netdev.h.
#define WLAN_DEVICE_OPEN 1 |
Definition at line 63 of file p80211netdev.h.
#define WLAN_MACMODE_NONE 0 |
Definition at line 65 of file p80211netdev.h.
#define WLAN_MACMODE_IBSS_STA 1 |
Definition at line 66 of file p80211netdev.h.
#define WLAN_MACMODE_ESS_STA 2 |
Definition at line 67 of file p80211netdev.h.
#define WLAN_MACMODE_ESS_AP 3 |
Definition at line 68 of file p80211netdev.h.
#define WLAN_MSD_START -1 |
Definition at line 71 of file p80211netdev.h.
#define WLAN_MSD_DRIVERLOADED 0 |
Definition at line 72 of file p80211netdev.h.
#define WLAN_MSD_HWPRESENT_PENDING 1 |
Definition at line 73 of file p80211netdev.h.
#define WLAN_MSD_HWFAIL 2 |
Definition at line 74 of file p80211netdev.h.
#define WLAN_MSD_HWPRESENT 3 |
Definition at line 75 of file p80211netdev.h.
#define WLAN_MSD_FWLOAD_PENDING 4 |
Definition at line 76 of file p80211netdev.h.
#define WLAN_MSD_FWLOAD 5 |
Definition at line 77 of file p80211netdev.h.
#define WLAN_MSD_RUNNING_PENDING 6 |
Definition at line 78 of file p80211netdev.h.
#define WLAN_MSD_RUNNING 7 |
Definition at line 79 of file p80211netdev.h.
#define ETH_P_ECONET 0x0018 |
Definition at line 82 of file p80211netdev.h.
#define ETH_P_80211_RAW (ETH_P_ECONET + 1) |
Definition at line 85 of file p80211netdev.h.
#define ARPHRD_IEEE80211 801 |
Definition at line 88 of file p80211netdev.h.
#define ARPHRD_IEEE80211_PRISM 802 |
Definition at line 92 of file p80211netdev.h.
#define P80211_NSDCAP_HARDWAREWEP 0x01 |
Definition at line 96 of file p80211netdev.h.
#define P80211_NSDCAP_TIEDWEP 0x02 |
Definition at line 97 of file p80211netdev.h.
#define P80211_NSDCAP_NOHOSTWEP 0x04 |
Definition at line 98 of file p80211netdev.h.
#define P80211_NSDCAP_PBCC 0x08 |
Definition at line 99 of file p80211netdev.h.
#define P80211_NSDCAP_SHORT_PREAMBLE 0x10 |
Definition at line 100 of file p80211netdev.h.
#define P80211_NSDCAP_AGILITY 0x20 |
Definition at line 101 of file p80211netdev.h.
#define P80211_NSDCAP_AP_RETRANSMIT 0x40 |
Definition at line 102 of file p80211netdev.h.
#define P80211_NSDCAP_HWFRAGMENT 0x80 |
Definition at line 103 of file p80211netdev.h.
#define P80211_NSDCAP_AUTOJOIN 0x100 |
Definition at line 104 of file p80211netdev.h.
#define P80211_NSDCAP_NOSCAN 0x200 |
Definition at line 105 of file p80211netdev.h.
#define NUM_WEPKEYS 4 |
Definition at line 165 of file p80211netdev.h.
#define MAX_KEYLEN 32 |
Definition at line 166 of file p80211netdev.h.
#define HOSTWEP_DEFAULTKEY_MASK (BIT1|BIT0) |
Definition at line 168 of file p80211netdev.h.
#define HOSTWEP_DECRYPT BIT4 |
Definition at line 169 of file p80211netdev.h.
#define HOSTWEP_ENCRYPT BIT5 |
Definition at line 170 of file p80211netdev.h.
#define HOSTWEP_PRIVACYINVOKED BIT6 |
Definition at line 171 of file p80211netdev.h.
#define HOSTWEP_EXCLUDEUNENCRYPTED BIT7 |
Definition at line 172 of file p80211netdev.h.
typedef struct wlandevice wlandevice_t |
int wep_change_key | ( | wlandevice_t * | wlandev, | |
int | keynum, | |||
UINT8 * | key, | |||
int | keylen | |||
) |
int wep_decrypt | ( | wlandevice_t * | wlandev, | |
UINT8 * | buf, | |||
UINT32 | len, | |||
int | key_override, | |||
UINT8 * | iv, | |||
UINT8 * | icv | |||
) |
int wep_encrypt | ( | wlandevice_t * | wlandev, | |
UINT8 * | buf, | |||
UINT8 * | dst, | |||
UINT32 | len, | |||
int | keynum, | |||
UINT8 * | iv, | |||
UINT8 * | icv | |||
) |
void p80211netdev_startup | ( | void | ) |
void p80211netdev_shutdown | ( | void | ) |
int wlan_setup | ( | wlandevice_t * | wlandev | ) |
int 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 | ) |
void p80211_suspend | ( | wlandevice_t * | wlandev | ) |
void p80211_resume | ( | wlandevice_t * | wlandev | ) |
static void p80211netdev_stop_queue | ( | wlandevice_t * | wlandev | ) | [inline, static] |
Definition at line 288 of file p80211netdev.h.
References wlandevice::netdev.
00289 { 00290 if ( !wlandev ) return; 00291 if ( !wlandev->netdev ) return; 00292 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,38) ) 00293 wlandev->netdev->tbusy = 1; 00294 wlandev->netdev->start = 0; 00295 #else 00296 netif_stop_queue(wlandev->netdev); 00297 #endif 00298 }
static void p80211netdev_start_queue | ( | wlandevice_t * | wlandev | ) | [inline, static] |
Definition at line 301 of file p80211netdev.h.
References wlandevice::netdev.
00302 { 00303 if ( !wlandev ) return; 00304 if ( !wlandev->netdev ) return; 00305 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,38) ) 00306 wlandev->netdev->tbusy = 0; 00307 wlandev->netdev->start = 1; 00308 #else 00309 netif_start_queue(wlandev->netdev); 00310 #endif 00311 }
static void p80211netdev_wake_queue | ( | wlandevice_t * | wlandev | ) | [inline, static] |
Definition at line 314 of file p80211netdev.h.
References wlandevice::netdev.
00315 { 00316 if ( !wlandev ) return; 00317 if ( !wlandev->netdev ) return; 00318 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,38) ) 00319 wlandev->netdev->tbusy = 0; 00320 mark_bh(NET_BH); 00321 #else 00322 netif_wake_queue(wlandev->netdev); 00323 #endif 00324 }
int wlan_watchdog |
int wlan_wext_write |