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

📄 dot11usrlib.h

📁 PNE 3.3 wlan source code, running at more than vxworks6.x version
💻 H
📖 第 1 页 / 共 4 页
字号:
#define DOT11_COUNTRY_YEMEN                 887     #define DOT11_COUNTRY_ZIMBABWE              716      /****************************************************************************** Public DOT11 IOCTL Commands *****************************************************************************/#include "sys/ioctl.h"/* For backwards compatability, define the "user mode" IOCTL macros manuallyif they are not already defined.  They should be defined in vxWorks 6.1 and higher */#ifndef IOC_USER#define IOC_USER 0x8000#endif /* IOC_USER */#ifndef _IOU#define _IOU(x,y)              (IOC_USER | _IO(x,y))#endif#ifndef _IORU#define _IORU(x,y,t)           (IOC_USER | _IOR(x,y,t))#endif#ifndef _IOWU#define _IOWU(x,y,t)           (IOC_USER | _IOW(x,y,t))#endif#ifndef _IOWRU#define _IOWRU(x,y,t)          (IOC_USER | _IOWR(x,y,t))#endif/**************************************************************************** WIOCGSTATS - Get Card Statistics ****************************************************************************/typedef struct /* DOT11_STATS */    {    /* total number of packets (after reassembly) both unicast and    multicast data frames. */    UINT32        rxFrames;     /* total number of received fragments, both data and     management, multicast and unicast.    */        UINT32        rxFragments;        /* total number of received multicast data fragments */    UINT32        rxMcastFragments;        /* total bytes of data received, all frame types and destinations */    unsigned long long int        rxTotalBytes;    /* Number of frames erroneously retransmitted; frames with same sequence    number as the one previous */    UINT32        rxDuplicates;        /* Number of frames dropped by the hardware due to Frame CheckSum     failure */    UINT32        rxFCSError;        /* Number of frames dropped due to miscellaneous errors */    UINT32        rxHardwareError;        /* Number of frames received that were unable to be decoded, most likely     due to incorrect encryption keys */    UINT32        rxDecryptError;        /* Michael failures.  This statistic only applies to TKIP frames */    UINT32        rxMicFailure;        /* Number of unencrypted frames received and dropped while encryption is    turned on */    UINT32        rxExcludeUnencrypted;    /* Number of received frames that were dropped due to the receive port     being 802.1X unauthorized */    UINT32        rxDot1xDropped;        /* Frames that were dropped because there wasn't room in the reassembly    queue, because all fragments were not received in the specified timeout    period, or beacause an out-of-order fragment was received. */    UINT32        rxCantReassemble;    /* The number of data bytes that were received in the last second, updated     every second. */    UINT32        rxBytesPerSec;        /* The nubmer of databytes received in the last sixteen seconds, updated     every sixteen seconds. */    UINT32        rxBytesPer16Sec;        /* The total number of data frames (before fragmentation) transmitted */    UINT32        txFrames;        /* The total number of fragments (data and management) transmitted */    UINT32        txFragments;        /* The total number of multicast data frames transmitted */    UINT32        txMcastFragments;    /* The total number of bytes in all packets transmitted */    unsigned long long int txTotalBytes;        /* The number of packets that were succesfully transmitted after one or     more retries */    UINT32        txRetry;    /* The number of packets that were transmitted after more than one retry */    UINT32        txRetryMultiple;        /* The number of packets that were not transmitted due to too many     retries */    UINT32        txRetryFailure;        /* The number of times a transmitted frame failed to get an ACK from the     receiver */    UINT32        txAckFailure;    /* The number of RTS frames transmitted to which a CTS was never     received */    UINT32        txRTSFailure;           /* The number of RTS frames transmitted to which a CTS was received */    UINT32        txRTSSuccess;        /* The number of egress frames dropped due to hardware failure or queue     overflow */    UINT32        txHardwareError;        /* The number of egress data frames dropped due to the 802.1X port being     unauthorized. */    UINT32        txDot1xDropped;        /* The number of data bytes transmitted in the last second, updated every     second */    UINT32        txBytesPerSec;        /* The number of data bytes transmitted in the last sixteen seconds,     updated every sixteen seconds */    UINT32        txBytesPer16Sec;    /* The number of four-way handshakes that completed successfully, as far     as this unit can tell. Note that this cannot catch errors that occured on     a station on the last frame sent to the AP */    UINT32        fourWaySuccess;        /* The number of four-way handshakes that failed at this unit. */    UINT32        fourWayFailure;    /* The number of group key exchanges that completed successfully, as far as    this unit can tell.  Note that this cannot detect problems with the last    packet a station sends to the AP if this unit is a station. */    UINT32        groupExchangeSuccess;    /* The number of group key exchanges that failed */    UINT32        groupExchangeFailure;    } DOT11_STATS;#define WIOCGSTATS             _IORU('w', 0x001, DOT11_STATS)/**************************************************************************** WIOCGLINKSTAT - Get Link Status ****************************************************************************//* Link Status */#define DOT11_LINK_SLEEP                2#define DOT11_LINK_UP                   1#define DOT11_LINK_DOWN                 0#define WIOCGLINKSTAT          _IORU('w', 0x002, UINT32)/**************************************************************************** WIOCGDESIREDSSID - Get Wireless Network Name ****************************************************************************/#define WIOCGDESIREDSSID       _IORU('w', 0x003, DOT11_SSID)/**************************************************************************** WIOCSSSID - Set Wireless Network Name ****************************************************************************/#define WIOCSSSID              _IOWU('w', 0x004, DOT11_SSID)/**************************************************************************** WIOCGCONNECTEDSSID - Get current BSS ****************************************************************************/#define WIOCGCONNECTEDSSID     _IORU('w', 0x005, DOT11_SSID)/**************************************************************************** WIOCGCONNECTEDBSSID - Get connected BSSID ****************************************************************************/#define WIOCGCONNECTEDBSSID    _IORU('w', 0x006, DOT11_ADDR)/**************************************************************************** WIOCGTXRATE - Get current transmit rate ****************************************************************************/#define WIOCGTXRATE            _IORU('w', 0x007, UINT32)/**************************************************************************** WIOCSTXRATE - Set Transmit Speed ****************************************************************************/#define WIOCSTXRATE            _IOWU('w', 0x008, DOT11_RATES)/**************************************************************************** WIOCGPWRMAN - Get Power Management Status ****************************************************************************/#define WIOCGPWRMAN            _IORU('w', 0x009, UINT32)/**************************************************************************** WIOCSPWRMAN - Set Power Management Status ****************************************************************************/#define DOT11_PWRMAN_ENABLED   TRUE#define DOT11_PWRMAN_DISABLED  FALSE#define WIOCSPWRMAN            _IOU('w', 0x00a)/**************************************************************************** WIOCGCOMMQUAL - Get Communications Quality ****************************************************************************/#define WIOCGCOMMQUAL          _IORU('w', 0x00b, UINT32) /**************************************************************************** WIOCGCARDTYPE - Get Card Type ****************************************************************************/#define WIOCGCARDTYPE          _IORU('w', 0x00c, UINT32) /**************************************************************************** WIOCGCHANNEL - Get Channel ****************************************************************************/#define WIOCGCHANNEL           _IORU('w', 0x00d, UINT32) /**************************************************************************** WIOCSCHANNEL - Set Channel ****************************************************************************/#define WIOCSCHANNEL           _IOU('w', 0x00e)            /**************************************************************************** WIOCGWEPAVAIL - Get WEP Availability ****************************************************************************/#define WIOCGWEPAVAIL          _IORU('w', 0x00f, UINT32) /**************************************************************************** WIOCSWEPKEY0 - Set value for WEP KEY 0 ****************************************************************************/#define WIOCSWEPKEY0           _IOWU('w', 0x010, DOT11_KEY) /**************************************************************************** WIOCSWEPKEY1 - Set value for WEP KEY 1 ****************************************************************************/#define WIOCSWEPKEY1           _IOWU('w', 0x011, DOT11_KEY) /**************************************************************************** WIOCSWEPKEY2 - Set value for WEP KEY 2 ****************************************************************************/#define WIOCSWEPKEY2           _IOWU('w', 0x012, DOT11_KEY) /**************************************************************************** WIOCSWEPKEY3 - Set value for WEP KEY 3 ****************************************************************************/#define WIOCSWEPKEY3           _IOWU('w', 0x013, DOT11_KEY) /**************************************************************************** WIOCSWEPDEFAULTKEY - Set WEP default key ****************************************************************************/#define WIOCSWEPDEFAULTKEY     _IOU('w', 0x014)            /**************************************************************************** WIOCGENCRYPTTYPE - Get current encryption type ****************************************************************************/#define WIOCGENCRYPTTYPE       _IORU('w', 0x015, UINT32) 

⌨️ 快捷键说明

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