/* This is part of rtl8187 OpenSource driver. Copyright (C) Andrea Merello 2004-2005 <andreamrl@tiscali.it> Released under the terms of GPL (General Public Licence) Parts of this driver are based on the GPL part of the official realtek driver Parts of this driver are based on the rtl8192 driver skeleton from Patric Schenke & Andres Salomon Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver We want to tanks the Authors of those projects and the Ndiswrapper project Authors.*/#ifndef R819xU_H#define R819xU_H#include<linux/module.h>#include<linux/kernel.h>//#include <linux/config.h>#include<linux/init.h>#include<linux/ioport.h>#include<linux/sched.h>#include<linux/types.h>#include<linux/slab.h>#include<linux/netdevice.h>#include<linux/pci.h>//#include <linux/usb.h>#include<linux/etherdevice.h>#include<linux/delay.h>#include<linux/rtnetlink.h> //for rtnl_lock()#include<linux/wireless.h>#include<linux/timer.h>#include<linux/proc_fs.h> // Necessary because we use the proc fs#include<linux/if_arp.h>#include<linux/random.h>#include<linux/version.h>#include<asm/io.h>#include"ieee80211.h"#define RTL819xE_MODULE_NAME "rtl819xE"//added for HW security, john.0629#define FALSE 0#define TRUE 1#define MAX_KEY_LEN 61#define KEY_BUF_SIZE 5#define BIT0 0x00000001#define BIT1 0x00000002#define BIT2 0x00000004#define BIT3 0x00000008#define BIT4 0x00000010#define BIT5 0x00000020#define BIT6 0x00000040#define BIT7 0x00000080#define BIT8 0x00000100#define BIT9 0x00000200#define BIT10 0x00000400#define BIT11 0x00000800#define BIT12 0x00001000#define BIT13 0x00002000#define BIT14 0x00004000#define BIT15 0x00008000#define BIT16 0x00010000#defi