Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
p80211wep.c File Reference
#include <linux/netdevice.h>
#include <linux/wireless.h>
#include <linux/random.h>
#include <linux/kernel.h>
#include "p80211hdr.h"
#include "p80211types.h"
#include "p80211msg.h"
#include "p80211conv.h"
#include "p80211netdev.h"

Go to the source code of this file.

Macros

#define WEP_KEY(x)   (((x) & 0xC0) >> 6)
 

Functions

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)
 

Macro Definition Documentation

#define WEP_KEY (   x)    (((x) & 0xC0) >> 6)

Definition at line 64 of file p80211wep.c.

Function Documentation

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.