📄 sysdot11end.h
字号:
/* sysDot11End.h - Generic 802.11a/b/g BSP header interface file */ /* Copyright 2004 Wind River Systems, Inc. *//*modification history--------------------02j,26jan06,rb Fix to SPR 117213: WPAv2 should allow AES02m,28feb06,rb Merge from 2.1.2 bugfix branch02l,20sep05,rb Fix for SPR 111326: Crash on boot with wireless and RTP02k,12sep05,rb Corrected default country02j,09sep05,rb Added countryCode as boot parameter02i,18jul05,eja Add support for icecube BSP02h,28jun05,rb Fix for SPR 110200: Can't use PSK(bin) with command line build02g,21feb05,rb Removed #if 002f,01feb05,rb Enforced INCLUDE dependencies a little stronger02e,25jan05,rb Made security components optionally buildable02d,07jan05,rb Added members for 802.1X Integration02c,06jan05,eja Get rid of unused macro02b,01nov04,rb Added settings for security policies02a,23aug04,rb Wind River Wireless Ethernet Driver 2.0 FCS*//*DESCRIPTIONThis is the WRS-supplied BSP header interface file for the 802.11a/b/g driver.*/#ifndef __INCsysDot11Endh#define __INCsysDot11Endh#ifdef __cplusplusextern "C" {#endif /* __cplusplus */#include "drv/wlan/dot11Lib.h"#include "drv/wlan/dot11Bsp.h"/* * Select which wireless component(s) to include in the command line BSP * build. Note that any component selections in the Project Facility will * override the settings here. */#ifndef PRJ_BUILD #define INCLUDE_DOT11_END /* include core support (mandatory) */ #define INCLUDE_DOT11_END_ESS /* include ESS (Station) support */ #define INCLUDE_DOT11_END_IBSS /* include IBSS (Ad-hoc) support */ #undef INCLUDE_DOT11_END_AP /* include AP (Access Point) support */ #ifdef INCLUDE_DOT11_END_AP #ifndef BRIDGE_PORTS /* check for Learning Bridge component */ #warning Access Point requires the Learning Bridge component. #endif /* BRIDGE_PORTS */ #endif /* INCLUDE_DOT11_END_AP */ #undef INCLUDE_DOT11_SECPOL_TSN #undef INCLUDE_DOT11_SECPOL_WPA #undef INCLUDE_DOT11_SECPOL_11i #undef INCLUDE_DOT11_AUTH_PSK #undef INCLUDE_DOT11_AUTH_8021X #undef INCLUDE_DOT11_AUTH_PSK_PASSPHRASE #undef INCLUDE_DOT11_CIPH_NONE #undef INCLUDE_DOT11_CIPH_WEP40 #undef INCLUDE_DOT11_CIPH_WEP104 #undef INCLUDE_DOT11_CIPH_TKIP #undef INCLUDE_DOT11_CIPH_AES#endif /* PRJ_BUILD *//* The IDE defines PSK-passphrase as a different type. Convert it */#ifdef INCLUDE_DOT11_AUTH_PSK_PASSPHRASE#define INCLUDE_DOT11_AUTH_PSK#endif/* Enforce these dependencies on both project and non-project builds, sincethere is no way to do this in the IDE */#if ((defined(INCLUDE_DOT11_CIPH_TKIP) || defined(INCLUDE_DOT11_CIPH_AES)) && \ (!(defined(INCLUDE_DOT11_SECPOL_11i) || (defined(INCLUDE_DOT11_SECPOL_WPA))))) #error TKIP Cipher type requires 802.11i or WPA to be allowed#endif#if ((defined INCLUDE_DOT11_CIPH_WEP40) || \ (defined INCLUDE_DOT11_CIPH_WEP104))&&(!defined(INCLUDE_DOT11_SECPOL_TSN)) #error Cipher types WEP40 and WEP104 require a security policy of TSN to be allowed#endif/* Ensure that TSN is only selected with another security poicy */#if ((defined(INCLUDE_DOT11_SECPOL_TSN)) && \ (!(defined(INCLUDE_DOT11_SECPOL_WPA) || \ defined(INCLUDE_DOT11_SECPOL_11i))))#error The 802.11 TSN security policy must be defined in combination with either WPA and/or 802.11i#endif/* Ensure that if any cipher types or authentication types are selected, atleast one security policy is selected */#if (((defined INCLUDE_DOT11_CIPH_WEP40) || \ (defined INCLUDE_DOT11_CIPH_WEP104) || \ (defined INCLUDE_DOT11_CIPH_TKIP) || \ (defined INCLUDE_DOT11_CIPH_AES) || \ (defined INCLUDE_DOT11_AUTH_PSK) || \ (defined INCLUDE_DOT11_AUTH_8021X)) && \ (!(defined(INCLUDE_DOT11_SECPOL_WPA) || \ defined(INCLUDE_DOT11_SECPOL_11i)))) #error In order to select an 802.11 Cipher or Authentication policy, you must select an 802.11 Security Policy #endif/* Ensure that if any security policy or authentication types are selected, atleast one cipher policy is selected */#if ((defined(INCLUDE_DOT11_SECPOL_WPA) || \ defined(INCLUDE_DOT11_SECPOL_11i) || \ (defined INCLUDE_DOT11_AUTH_PSK) || \ (defined INCLUDE_DOT11_AUTH_8021X)) && \ (!((defined INCLUDE_DOT11_CIPH_WEP40) || \ (defined INCLUDE_DOT11_CIPH_WEP104) || \ (defined INCLUDE_DOT11_CIPH_TKIP) || \ (defined INCLUDE_DOT11_CIPH_AES)))) #error In order to select an 802.11 Cipher Policy or Authentication policy, you must select an 802.11 Security Policy #endif/* Ensure that if any cipher types or security policies are selected, atleast one authentication type is selected */#if (((defined INCLUDE_DOT11_CIPH_WEP40) || \ (defined INCLUDE_DOT11_CIPH_WEP104) || \ (defined INCLUDE_DOT11_CIPH_TKIP) || \ (defined INCLUDE_DOT11_CIPH_AES) || \ (defined INCLUDE_DOT11_SECPOL_WPA) ||\ (defined INCLUDE_DOT11_SECPOL_11i)) && \ (!((defined INCLUDE_DOT11_AUTH_PSK) || \ (defined INCLUDE_DOT11_AUTH_8021X)))) #error In order to select an 802.11 Cipher or Security Policy, you must select an 802.11 Authentication Policy #endif/*************************************************************************** * The following default wireless network settings are used for command-line * builds if they are not updated by the corresponding ioctl() routines at * run time. Note that any settings made in the Project Facility will * override the settings here. These settings provide the minimum * functionality required to enable a wireless network connection and do * not include security, power management, or other advanced mode settings. ***************************************************************************//* * Default Network Name (also called the SSID, BSS Name or ESS Name). * Maximum length is DOT11_SSID_LEN as defined in dot11Lib.h. Some * examples are: * * NULL (ESS/IBSS/AP modes: deny all connections) * "" (ESS mode only: connect to first discovered AP) * "myNetwork" (ESS mode: connect to AP named "myNetwork" only) * (AP/IBSS mode: allow network connections named "myNetwork") */#ifndef DOT11_DEFAULT_SSID#define DOT11_DEFAULT_SSID NULL#endif/* * Default Wireless Mode. Select from the following options as defined in * dot11Lib.h: * * DOT11_MODE_NONE (disabled) * DOT11_MODE_ESS (enable ESS or 'station' mode) * DOT11_MODE_IBSS (enable IBSS or 'ad-hoc' mode) * DOT11_MODE_AP (enable Access Point mode) */#ifndef DOT11_DEFAULT_MODE#define DOT11_DEFAULT_MODE DOT11_MODE_NONE #endif/* * Default Radio Type. Select from the following options as defined in * dot11Lib.h: * DOT11_RADIO_11a (802.11a, 5.3 GHz, 54 Mbit/sec max.) * DOT11_RADIO_11b (802.11b, 2.4 GHz, 11 Mbit/sec max.) * DOT11_RADIO_11g (802.11g, 2.4 GHz, 54 Mbit/sec max.) * DOT11_RADIO_ANY (ESS mode only - search for SSID on all radios) */#ifndef DOT11_DEFAULT_RADIO#define DOT11_DEFAULT_RADIO DOT11_RADIO_ANY#endif/* * Default radio channel, used in IBSS and AP modes only. This parameter * is ignored in ESS (Station) mode as the station will perform a channel * scan to find a matching SSID. IEEE channel number designations are * used as described in Section 17.3.8.3.3 (802.11a channels) and Section * 18.4.6.2 (802.11b/g channels) of the IEEE 802.11-2003 standard. * Allowable channels are country-specific. Allowable values for North * America are: * * 802.11b/g: channels 1-11 (2.4 GHz) * 802.11a: channels 36,40,44,48 (5.2 GHz) * channels 52,56,60,64 (5.3 GHz) * channels 149,153,157,161 (5.8 GHz) */#ifndef DOT11_DEFAULT_CHANNEL#define DOT11_DEFAULT_CHANNEL 11 #endif/* * Default country code. This affects the list of channels, modes and rates * that are allowed. If you want an AP to advertise the country it is in to * allow stations in 802.11d mode to connect, or you wish to make a ESS or * IBSS that uses 802.11d to determine the country instead of using this * definition, turn 802.11d on with WIOCS80211D * */#ifndef DOT11_DEFAULT_COUNTRY#define DOT11_DEFAULT_COUNTRY DOT11_COUNTRY_UNITED_STATES #endif/* * The default Pre Shared Key value. This is the value used if 802.11i or * WPA is set to use Pre-Shared Key as the authentication method. The PSK * should be a 256 bit (63 byte) value. * */#ifndef DOT11_AUTH_PSK_KEY#define DOT11_AUTH_PSK_KEY "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"#endif#ifdef INCLUDE_DOT11_AUTH_PSK_PASSPHRASE# ifndef DOT11_AUTH_PSK_PASSPHRASE# define DOT11_AUTH_PSK_PASSPHRASE "Wind River Wireless Security 2.0"# endif /* DOT11_AUTH_PSK_PASSPHRASE */#else /* INCLUDE_DOT11_AUTH_PSK_PASSPHRASE */# ifndef DOT11_AUTH_PSK_PASSPHRASE# define DOT11_AUTH_PSK_PASSPHRASE NULL# endif /* DOT11_AUTH_PSK_PASSPHRASE */#endif /* INCLUDE_DOT11_AUTH_PSK_PASSPHRASE *//* End of default wireless network settings *//* * Maximum number of hardware-unique Atheros supported cards, and the * maximum number of bus slots (card instances) supported. */#define DOT11_CARDS (2) /* Number of unique card types supported */#define DOT11_SLOTS (5) /* Number of identical card instances supported *//* * Supported device and vendor IDs of AR521X devices. Newer chipset * versions or OEM versions will likely need new PCI_DEVICE_ID and/or * PCI_VENDOR_ID entries. *//* AR5211 */#define AR5211_VENDOR_ID (0x168C)#define AR5211_DEFAULT (0x1112) /* No eeprom HW default */#define AR5311_DEVID (0x0011) /* Final ar5311 devid */#define AR5211_DEVID (0x0012) /* Final ar5211 devid */#define AR5211_LEGACY (0xFF12) /* Original emulation board */#define AR5211_FPGA11B (0xF11B) /* 11b emulation board */#define AR5211_SREV_1_0 (0x40)#define AR5211_SREV_1_1 (0x42)#define AR5211_SREV_REG (0x4020)/* AR5212 */#define AR5212_VENDOR_ID (0x168C)#define AR5212_DEFAULT (0x1113) /* No eeprom HW default */#define AR5212_DEVID (0x0013) /* ar5212 devid */#define AR5312_DEVID (0x0030) /* Final ar5312 devid */#define AR5212_SREV_1_0 (0x50)#define AR5212_SREV_1_1 (0x51)#define AR5212_SREV_1_3 (0x53)#define AR5212_SREV_1_4 (0x56)#define AR5212_SREV_REG (0x4020)/* AR5212 compatible devid's also attach to 5212 */#define AR5212_DEVID_0014 (0x0014) /* ar5212 forward compatibility id */#define AR5212_DEVID_0015 (0x0015) /* ar5212 forward compatibility id */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -