⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configwlan.h

📁 vworks 下wlan的实现代码
💻 H
字号:
/* configWlan.h - Wlan configuration header file *//* Copyright 2002 Wind River Systems, Inc. *//*modification history--------------------01q,10apr03,ss  Remove PRJ_BUILD driver check01p,03apr03,ss  Add SWAP macros01o,01apr03,ss  include both PRISM and AIRONET by default for command line                 builds01n,01apr03,ss  Updated to work better with IDE or command line builds01m,20oct02,dxb  Added #ifndef's to be compatible with IDE01l,15may02,eja  Added support for mib.01k,23apr02,dxb  Updated INCLUDE_WLAN_END functionality.01j,16apr02,dxb  Removed WLAN_VXWORKS_54 and _AE macros01i,11apr02,ss  Removed WLAN_VXWORKS_54 and _AE macros01h,20feb02,rb  Added international support01g,19feb02,cjl  Added setting for desired target OS (5.4 or AE)01f,14feb02,dxb  Updated Aironet show routines01e,08feb02,dxb  Updated channel settings.01d,07feb02,dxb  Updated to include changes to wlanEnd.h.01c,05feb02,dxb  Updated to include changes from wlanEnd.h01b,04feb02,eja  Added default config parameters.01a,31jan02,dxb  Created.*//*DESCRIPTIONThis file contains the WindNet 802.11b WLAN configuration parametersfor the malta4kc_mips32sf BSP.To use the optional AP (Access Point) mode, WindNet 802.11b mustfirst successfully initialize in station mode using the parameters below.Once the station is initialized, a function call can be made to enableeither host or tertiary AP mode.  Additional network and/or configuration parameters will be required as per the function call API.For more information on WindNet 802.11b station and AP modes, consultthe WindNet 802.11b DDK User's Guide.SEE ALSOconfig.h wlanEnd.h*/#ifndef INCconfigWlanh#define INCconfigWlanh#include <vxWorks.h>#include "wrn/wlan/wlanEnd.h"/* Select one or more WLAN drivers to compile into the bsp. */#ifdef INCLUDE_WLAN_END#ifndef PRJ_BUILD  #define INCLUDE_AIRONET_END  #define INCLUDE_PRISM_END  #ifndef INCLUDE_AIRONET_END     #ifndef INCLUDE_PRISM_END      #error "configWlan.h - Need to define INCLUDE_PRISM_END or INCLUDE_AIRONET_END"    #endif  #endif #endif#ifdef INCLUDE_PRISM_END  #include "wrn/wlan/intPrismHw.h"#endif#ifdef INCLUDE_AIRONET_END  #include "wrn/wlan/cisAironet.h"#endif#endif  /* INCLUDE_WLAN_END *//*************************************************************************** * The following default settings are used at boot up.  These settings will * be used if they are not replaced by the correspnding ioctl() routines at * run time.  See wlanEnd.h for available settings.  Note that any settings * made in the Project Facility will override the settings here. ***************************************************************************//* Network name (also called BSS Name).  Max length is WLAN_BSS_NAME_MAX. */#ifndef WLAN_DEFAULT_SSID#define WLAN_DEFAULT_SSID            "WlanNetwork1"#endif/* Station name.  Usually set to the station's MAC address. */#ifndef WLAN_DEFAULT_STATION_NAME#define WLAN_DEFAULT_STATION_NAME    "WlanStation"#endif/* Station mode.  Select IBSS (peer-to-peer) or BSS (infrastructure) mode. */#ifndef WLAN_DEFAULT_STATION_MODE#define WLAN_DEFAULT_STATION_MODE     WLAN_BSS_MODE#endif/* Default station channel.  Used in IBSS mode only, as a station in BSS * mode will autoselect the channel.  For AP (Access Point) mode, this  * value is ignored and the AP channel is passed as a parameter to the  * function call that initializes the AP.  Valid values are 1-11 for * North America, 1-14 for Japan, 10-11 for Spain, 10-13 for France and * 1-13 for the remainder of Europe. */#ifndef WLAN_DEFAULT_CHANNEL#define WLAN_DEFAULT_CHANNEL          11#endif/* Supported TX rates.  This is an OR'd bitmask. */#ifndef WLAN_DEFAULT_TX_RATE#define WLAN_DEFAULT_TX_RATE          WLAN_1_MBIT | WLAN_2_MBIT | \                                      WLAN_5_MBIT | WLAN_11_MBIT#endif/* Basic rates enable/disable. */#ifndef WLAN_DEFAULT_BRATES_ENABLE#define WLAN_DEFAULT_BRATES_ENABLE    WLAN_BRATES_DISABLED#endif/* Basic rates.  This is an OR'd bitmask, valid if basic rates are enabled. */#ifndef WLAN_DEFAULT_BRATES#define WLAN_DEFAULT_BRATES           WLAN_1_MBIT | WLAN_2_MBIT | \                                      WLAN_5_MBIT | WLAN_11_MBIT#endif/* Power management enable/disable. */#ifndef WLAN_DEFAULT_PMANAGE_ENABLE#define WLAN_DEFAULT_PMANAGE_ENABLE   WLAN_PMANAGE_DISABLED#endif/* Authentication type.  Open key, shared key or unencrypted mode. */#ifndef WLAN_DEFAULT_AUTH_TYPE#define WLAN_DEFAULT_AUTH_TYPE        WLAN_AUTHENTICATION_OPEN#endif/* WEP enable/disable */#ifndef WLAN_DEFAULT_WEP_ENABLE#define WLAN_DEFAULT_WEP_ENABLE       WLAN_WEP_DISABLED#endif/* WEP key length.  64 (40) bit or 128 (104) bit. */#ifndef WLAN_DEFAULT_WEP_TYPE#define WLAN_DEFAULT_WEP_TYPE         WLAN_WEP_TYPE_64#endif/* WEP 64-bit key 0 value.  Key must be 5 bytes long. */#ifndef WLAN_DEFAULT_WEP_KEY0_64#define WLAN_DEFAULT_WEP_KEY0_64     "\x00\x01\x02\x03\x04"#endif/* WEP 64-bit key 1 value.  Key must be 5 bytes long. */#ifndef WLAN_DEFAULT_WEP_KEY1_64#define WLAN_DEFAULT_WEP_KEY1_64     "\x0A\x0B\x0C\x0D\x0E"#endif/* WEP 64-bit key 2 value.  Key must be 5 bytes long. */#ifndef WLAN_DEFALUT_WEP_KEY2_64#define WLAN_DEFAULT_WEP_KEY2_64     "\x14\x15\x16\x17\x18"#endif/* WEP 64-bit key 3 value.  Key must be 5 bytes long. */#ifndef WLAN_DEFAULT_WEP_KEY3_64#define WLAN_DEFAULT_WEP_KEY3_64     "\x1E\x1F\x20\x21\x22"#endif/* WEP 128-bit key 0 value.  Key must be 13 bytes long. */#ifndef WLAN_DEFAULT_WEP_KEY0_128#define WLAN_DEFAULT_WEP_KEY0_128    "\x28\x29\x2A\x2B\x2C\x2D\x2E\x2F\x30\x31\x32\x33\x32"#endif/* WEP key number.  Indicates which key (0-3) to use for encrypt/decrypt. * Due to hardware limitations, only key 0 is allowed for 128 bit WEP */#ifndef WLAN_DEFAULT_WEP_KEY_NUMBER#define WLAN_DEFAULT_WEP_KEY_NUMBER   0#endif/* Processor byte order (big/little endian).  This should be set  * automatically by the bsp rules using _BYTE_ORDER, but can be overriden * with _BIG_ENDIAN or _LITTLE_ENDIAN. */#ifndef WLAN_DEFAULT_BYTE_ORDER#define WLAN_DEFAULT_BYTE_ORDER       _BYTE_ORDER#endif/* The international region the card will be operating in.  This is a bitmaskspecifying the allowed channels in that region.  These are specified in 15.4.6.2 of IEEE 802.11 1999 Standard */#ifndef WLAN_DEFAULT_REGION#define WLAN_DEFAULT_REGION           WLAN_REGION_NORTH_AMERICA#endif/* Other configuration settings *//* Enable show routines */#ifdef INCLUDE_SHOW_ROUTINES#  ifdef INCLUDE_AIRONET_END#    define INCLUDE_AIRONET_SHOW /* Include the aironet show routines */#  endif#endif/* Make sure PCI is included - this bsp uses PCI-based WLAN cards */#ifndef INCLUDE_PCI#  define INCLUDE_PCI#endif/* Endian macros for 802.11b */#define MSBYTE(x)    (((x) >> 8) & 0xff) /* most signif byte of 2-byte int */#define LSBYTE(x)    ((x) & 0xff)	 /* least signif byte of 2-byte int */#define MSWORD(x)    (((x) >> 16) & 0xffff) /* most signif word of 2-word int */#define LSWORD(x)    ((x) & 0xffff) 	 /* least signif byte of 2-word int */#define LLSBYTE(x)   ((x) & 0xff)	 /* 32bit word byte/word swap macros */#define LNLSBYTE(x)  (((x) >> 8) & 0xff)#define LNMSBYTE(x)  (((x) >> 16) & 0xff)#define LMSBYTE(x)   (((x) >> 24) & 0xff)#if (_BYTE_ORDER == _BIG_ENDIAN)#  define SWAP_ENDIAN_16(x) (MSBYTE(x) | (LSBYTE(x) << 8))#  define SWAP_ENDIAN_32(x) ((LLSBYTE(x)  << 24) | \		                     (LNLSBYTE(x) << 16) | \		                     (LNMSBYTE(x) << 8)  | \		                     (LMSBYTE(x)))#else#  define SWAP_ENDIAN_16(param) (param)#  define SWAP_ENDIAN_32(param) (param)#endif#endif /* INCconfigWlanh */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -