📄 cb20_cb.h
字号:
u16 fastListenInterval; u16 listenDecay; u16 fastListenDelay; u16 _reserved2[2]; /*---------- Ap/Ibss config items ----------*/ u16 beaconPeriod; u16 atimDuration; u16 hopPeriod; u16 channelSet; u16 channel; u16 dtimPeriod; u16 bridgeDistance; u16 radioID; /*---------- Radio configuration ----------*/ u16 radioType;#define RADIOTYPE_DEFAULT 0#define RADIOTYPE_802_11 1#define RADIOTYPE_LEGACY 2 u8 rxDiversity; u8 txDiversity; u16 txPower;#define TXPOWER_DEFAULT 0 u16 rssiThreshold;#define RSSI_DEFAULT 0 u16 modulation; u16 shortPreamble; u16 homeProduct; u16 radioSpecific; /*---------- Aironet Extensions ----------*/ u8 nodeName[16]; u16 arlThreshold; u16 arlDecay; u16 arlDelay; u16 _reserved4[1]; /*---------- Aironet Extensions ----------*/ u16 magicAction;#define MAGIC_ACTION_STSCHG 1#define MACIC_ACTION_RESUME 2#define MAGIC_IGNORE_MCAST (1<<8)#define MAGIC_IGNORE_BCAST (1<<9)#define MAGIC_SWITCH_TO_PSP (0<<10)#define MAGIC_STAY_IN_CAM (1<<10) u16 magicControl; u16 autoWake;} ConfigRid;typedef struct { u16 len; u8 mac[6]; u16 mode; u16 errorCode; u16 sigQuality; u16 SSIDlen; char SSID[32]; char apName[16]; char bssid[4][6]; u16 beaconPeriod; u16 dimPeriod; u16 atimDuration; u16 hopPeriod; /* Changed below to work with * brain dead compilers */ union { u16 u16DsChannel; u16 u16HopSet; }frq; u16 u16HopPattern; // 0x0062 u16 u16HopsToBackbone; // 0x0064 u16 apTotalLoad; u16 generatedLoad; u16 accumulatedArl; u16 signalQuality; u16 currentXmitRate; u16 apDevExtensions; u16 normalizedSignalStrength;} StatRid; /* ns-collision *///: Capabilitiestypedef struct _STCAPS{ u16 u16RidLen; //0x0000 u8 au8OUI[3]; //0x0002 u8 nothing; //0x0005 u16 ProuctNum; //0x0006 u8 au8ManufacturerName[32]; //0x0008 u8 au8ProductName[16]; //0x0028 u8 au8ProductVersion[8]; //0x0038 u8 au8FactoryAddress[6]; //0x0040 u8 au8AironetAddress[6]; //0x0046 u16 u16RadioType; //0x004C u16 u16RegDomain; //0x004E u8 au8Callid[6]; //0x0050 u8 au8SupportedRates[8]; //0x0056 u8 u8RxDiversity; //0x005E u8 u8TxDiversity; //0x005F u16 au16TxPowerLevels[8]; //0x0060 u16 u16HardwareVersion; //0x0070 u16 u16HardwareCapabilities; //0x0072 u16 u16TemperatureRange; //0x0074 u16 u16SoftwareVersion; //0x0076 u16 u16SoftwareSubVersion; //0x0078 u16 u16InterfaceVersion ; //0x007A u16 u16SoftwareCapabilities; //0x007C u16 u16BootBlockVersion; //0x007E u16 u16SupportedHardwareRev; //0x0080 u16 u16SoftwareCapabilities2; //0x0082 u8 au8SerialNumber[12]; //0x0084 u16 u16AllowedFrequencies[14]; //0x0090}STCAPS;// Extended capabilities.typedef struct _EXSTCAPS{ u16 u16RidLen; //0x0000 u8 au8OUI[3]; //0x0002 u8 nothing; //0x0005 u16 ProuctNum; //0x0006 u8 au8ManufacturerName[32]; //0x0008 u8 au8ProductName[16]; //0x0028 u8 au8ProductVersion[8]; //0x0038 u8 au8FactoryAddress[6]; //0x0040 u8 au8AironetAddress[6]; //0x0046 u16 u16RadioType; //0x004C u16 u16RegDomain; //0x004E u8 au8Callid[6]; //0x0050 u8 au8SupportedRates[8]; //0x0056 u8 u8RxDiversity; //0x005E u8 u8TxDiversity; //0x005F u16 au16TxPowerLevels[8]; //0x0060 u16 u16HardwareVersion; //0x0070 u16 u16HardwareCapabilities; //0x0072 u16 u16TemperatureRange; //0x0074 u16 u16SoftwareVersion; //0x0076 u16 u16SoftwareSubVersion; //0x0078 u16 u16InterfaceVersion ; //0x007A u16 u16SoftwareCapabilities; //0x007C u16 u16BootBlockVersion; //0x007E u16 u16SupportedHardwareRev; //0x0080 u16 u16ExtSoftwareCapabilities; //0x0082}EXSTCAPS;// Driver type element typedef struct _DRTYPE { u8 version[4]; /* Major,Minor,rel */ u8 flashcode; /* Flash type byte */ u16 devtype; /* device type koala/venus/350 etc. */}DRVRTYPE; /* * MIC rid */typedef struct _STMIC { unsigned short ridLen __attribute__ ((packed)); unsigned short micState __attribute__ ((packed)); unsigned short micMulticastValid __attribute__ ((packed)); unsigned char micMulticast[16] __attribute__ ((packed)); unsigned short micUnicastValid __attribute__ ((packed)); unsigned char micUnicast[16] __attribute__ ((packed));} STMIC __attribute__ ((packed));typedef struct _STMICSTATISTICS { u32 Size; // size u8 Enabled; // MIC enabled or not u32 RxSuccess; // successful packets received u32 RxIncorrectMIC; // packets dropped due to incorrect MIC comparison u32 RxNotMICed; // packets dropped due to not being MIC'd u32 RxMICPlummed; // packets dropped due to not having a MIC plummed u32 RxWrongSequence; // packets dropped due to sequence number violation u32 Reserve[32];}STMICSTATISTICS32;/* * Lifted from the aironet driver by * breed. Names changed to avoid collision */#define RID_CAPABILITIES 0xFF00#define RID_CONFIG 0xFF10#define RID_SSID 0xFF11#define RID_APLIST 0xFF12#define RID_DRVNAME 0xFF13#define RID_ETHERENCAP 0xFF14#define RID_WEP_TEMP 0xFF15#define RID_WEP_PERM 0xFF16#define RID_MODULATION 0xFF17#define RID_ACTUALCONFIG 0xFF20 /*readonly*/#define RID_LEAPUSERNAME 0xFF23#define RID_LEAPPASSWORD 0xFF24#define RID_STATUS 0xFF50#define RID_STATS 0xFF68#define RID_STATSDELTA 0xFF69#define RID_STATSDELTACLEAR 0xFF6A#define RID_MIC 0xFF57#define VADDR(Type,HOSTP) (Type *)(HOSTP.VirtualHostAddress)#define FALSE 0#define TRUE 1#define AIROMAGIC 0xa55a#define AIROIOCTL SIOCDEVPRIVATE#define AIROIDIFC AIROIOCTL + 1/* Ioctl constants to be used in airo_ioctl.command */#define AIROGCAP 0 // Capability rid#define AIROGCFG 1 // USED A LOT #define AIROGSLIST 2 // System ID list #define AIROGVLIST 3 // List of specified AP's#define AIROGDRVNAM 4 // NOTUSED#define AIROGEHTENC 5 // NOTUSED#define AIROGWEPKTMP 6#define AIROGWEPKNV 7#define AIROGSTAT 8#define AIROGSTATSC32 9#define AIROGSTATSD32 10#define AIROGMICRID 11 /* Get STMIC rid */#define AIROGMICSTATS 12 /* Get MIC statistics */#define AIROGFLAGS 13 /* Get driver flags */#define AIROGID 14 /* Get driver type element */#define AIRORRID 15 /* Read arbitrary rid */#define AIRORSWVERSION 17 /* Get driver version *//* Leave gap of 40 commands after AIROGSTATSD32 for future */#define AIROPCAP AIROGSTATSD32 + 40#define AIROPVLIST AIROPCAP + 1#define AIROPSLIST AIROPVLIST + 1#define AIROPCFG AIROPSLIST + 1#define AIROPSIDS AIROPCFG + 1#define AIROPAPLIST AIROPSIDS + 1#define AIROPMACON AIROPAPLIST + 1 /* Enable mac */#define AIROPMACOFF AIROPMACON + 1 /* Disable mac */#define AIROPSTCLR AIROPMACOFF + 1#define AIROPWEPKEY AIROPSTCLR + 1#define AIROPWEPKEYNV AIROPWEPKEY + 1#define AIROPLEAPPWD AIROPWEPKEYNV + 1#define AIROPLEAPUSR AIROPLEAPPWD + 1/* Flash codes */#define AIROFLSHRST AIROPWEPKEYNV + 40 /* 100 */#define AIROFLSHGCHR AIROFLSHRST + 1 /* 101 */#define AIROFLSHSTFL AIROFLSHGCHR + 1 /* 102 */#define AIROFLSHPCHR AIROFLSHSTFL + 1 /* 103 */#define AIROFLPUTBUF AIROFLSHPCHR + 1 /* 104 */#define AIRORESTART AIROFLPUTBUF + 1 /* 105 */#define FLASHSIZE 32768#define AUXMEMSIZE (256 * 1024)typedef enum { NONE, NOMIC, NOMICPLUMMED, SEQUENCE, INCORRECTMIC,} MIC_ERROR; /* * List of active devices */typedef struct cb20_devlist { struct net_device *dev; struct cb20_devlist *next;}CB20_CARDS; struct cb20_info { struct net_device_stats stats; int open;#if (LINUX_VERSION_CODE < 0x020363) char name[8];#endif struct net_device *next; struct net_device *dev; struct pci_dev *pcip; MICMODULE mod[2]; /* MIC stuff */ u8 snap[8]; u32 updateMultiSeq; u32 updateUniSeq; STMICSTATISTICS32 micstats;#if (LINUX_VERSION_CODE < 0x20311) struct proc_dir_entry proc_entry; struct proc_dir_entry proc_statsdelta_entry; struct proc_dir_entry proc_stats_entry; struct proc_dir_entry proc_status_entry; struct proc_dir_entry proc_config_entry; struct proc_dir_entry proc_ssid_entry; struct proc_dir_entry proc_aplist_entry; struct proc_dir_entry proc_wepkey_entry;#endif // struct proc_dir_entry *proc_entry; struct proc_dir_entry *device; HOST_RX_DESC rxfids[MAX_DESC]; /* *Virtaddr[] */ HOST_TX_DESC txfids[MAX_DESC]; /* *Virtaddr[] */ HOST_RID_DESC ConfigDesc; /* Rid descriptor */ unsigned long ridbus; /* Phys addr of ConfigDesc! 3/31/02 */ unsigned long pci_controlbase; /* PCI addr Contol */ unsigned char *controlregmembase; /* Virtaddr */ unsigned int controlmembasesize; /* length */ unsigned long pci_auxbase; /* PCI addr AUX */ unsigned char *auxregmembase; /* Virtaddr */ unsigned int auxmembasesize; /* length */ unsigned char *SharedRegion; /* Virtaddr */ unsigned int SharedSize; /* length */ dma_addr_t SharedBusaddr; /* Bus address of shared descriptor region */ unsigned char *flashram; u32 flashsize; struct timer_list timer; int irqline; int iosize; /* IO Port region size */ int iobase; /* IO Base address */ int registered; int macstatus; ConfigRid config; spinlock_t mpi_lock; /* Interrupt handler lock */ spinlock_t txlist_lock; spinlock_t txd_lock; spinlock_t aux_lock; spinlock_t cmd_lock; struct sk_buff_head txq; int txdfc; unsigned flags; char rfMonitor; unsigned char saveConfig[2048]; unsigned char saveSSID[2048]; unsigned char saveAPList[2048];#ifdef WIRELESS_EXT struct iw_statistics wstats; // wireless stats#endif};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -