|
@@ -56,23 +56,14 @@
|
|
|
|
|
|
/* #define WEP_DEBUG */
|
|
|
|
|
|
-/*================================================================*/
|
|
|
-/* Project Includes */
|
|
|
-
|
|
|
#include "p80211hdr.h"
|
|
|
#include "p80211types.h"
|
|
|
#include "p80211msg.h"
|
|
|
#include "p80211conv.h"
|
|
|
#include "p80211netdev.h"
|
|
|
|
|
|
-/*================================================================*/
|
|
|
-/* Local Constants */
|
|
|
-
|
|
|
#define WEP_KEY(x) (((x) & 0xC0) >> 6)
|
|
|
|
|
|
-/*================================================================*/
|
|
|
-/* Local Static Definitions */
|
|
|
-
|
|
|
static const u32 wep_crc32_table[256] = {
|
|
|
0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L,
|
|
|
0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L,
|
|
@@ -128,12 +119,6 @@ static const u32 wep_crc32_table[256] = {
|
|
|
0x2d02ef8dL
|
|
|
};
|
|
|
|
|
|
-/*================================================================*/
|
|
|
-/* Local Function Declarations */
|
|
|
-
|
|
|
-/*================================================================*/
|
|
|
-/* Function Definitions */
|
|
|
-
|
|
|
/* keylen in bytes! */
|
|
|
|
|
|
int wep_change_key(wlandevice_t *wlandev, int keynum, u8 *key, int keylen)
|