📄 dot11usrlib.h
字号:
/**************************************************************************** WIOCSENCRYPTTYPE - Set current encryption type ****************************************************************************/typedef enum { DOT11_ENCRYPT_NONE, DOT11_ENCRYPT_WEP40, DOT11_ENCRYPT_WEP104, DOT11_ENCRYPT_MAX /* Number of entries in enumeration */ } DOT11_ENCRYPT_TYPE;#define WIOCSENCRYPTTYPE _IOU('w', 0x016) /**************************************************************************** WIOCAACLSTA - Add a STA to AP authentication list ****************************************************************************/#define WIOCAACLSTA _IOWU('w', 0x017, DOT11_ADDR)/**************************************************************************** WIOCDACLSTA - Delete a STA from AP auth list ****************************************************************************/#define WIOCDACLSTA _IOWU('w', 0x018, DOT11_ADDR)/**************************************************************************** WIOCSEXUNENCRYPT - Set exclude unencrypted ****************************************************************************/typedef enum { DOT11_EX_UNENCRYPTED, /* Exclude all unencrypted packets */ DOT11_EX_DOT1X, /* Exclude all unencrypted packets except EAPOL */ DOT11_EX_NONE /* Allow unencrypted and encrypted traffic */ } DOT11_EX_POLICY;#define WIOCSEXUNENCRYPT _IOU('w', 0x019) /**************************************************************************** WIOCGEXUNENCRYPT - Get exclude unencrypted ****************************************************************************/#define WIOCGEXUNENCRYPT _IORU('w', 0x01a, UINT32) /**************************************************************************** WIOCGAUTHTYPE - Get Authentication protocol UINT32 * ****************************************************************************/#define DOT11_AUTHTYPE_OPEN 1 /* Open system authentication */#define DOT11_AUTHTYPE_SKA 2 /* Shared key authentication */#define DOT11_AUTHTYPE_ALL 3 /* Allow all available authentication type */#define WIOCGAUTHTYPE _IORU('w', 0x01b, UINT32) /**************************************************************************** WIOCSAUTHTYPE - Set Authentication protocol UINT32 ****************************************************************************/#define WIOCSAUTHTYPE _IOU('w', 0x01c) /**************************************************************************** WIOCSBEACONRATE - Set rate for AP beaconing UINT32 ****************************************************************************/#define WIOCSBEACONRATE _IOU('w', 0x01e) /**************************************************************************** WIOCGBEACONRATE - Get rate for AP beaconing UINT32 * ****************************************************************************/#define WIOCGBEACONRATE _IORU('w', 0x01f, UINT32) /**************************************************************************** WIOCGMAC - Get MAC address UNIT32 * ****************************************************************************/#define WIOCGMAC _IORU('w', 0x020, DOT11_ADDR)/**************************************************************************** WIOCSCTSRTS - Set CTS/RTS UINT32 ****************************************************************************/#define DOT11_CTSRTS_MAX 2307#define WIOCSCTSRTS _IOU('w', 0x021) /**************************************************************************** WIOCGCTSRTS - Get CTS/RTS UINT32 * ****************************************************************************/#define WIOCGCTSRTS _IORU('w', 0x022, UINT32) /**************************************************************************** WIOCSSHORTRETRY - Set Short Retry Limit ****************************************************************************/#define WIOCSSHORTRETRY _IOU('w', 0x023) /**************************************************************************** WIOCGSHORTRETRY - Get Short Retry Limit ****************************************************************************/#define WIOCGSHORTRETRY _IORU('w', 0x024, UINT32) /**************************************************************************** WIOCSLONGRETRY - Set Long Retry Limit ****************************************************************************/#define WIOCSLONGRETRY _IOU('w', 0x025) /**************************************************************************** WIOCGLONGRETRY - Get Long Retry Limit ****************************************************************************/#define WIOCGLONGRETRY _IORU('w', 0x026, UINT32) /**************************************************************************** WIOCSFRAGTHRESH - Set Fragmentation threshold UINT32 ****************************************************************************/#define WIOCSFRAGTHRESH _IOU('w', 0x027) /**************************************************************************** WIOCGFRAGTHRESH - Get Fragmentation threshold UINT32 * ****************************************************************************/#define WIOCGFRAGTHRESH _IORU('w', 0x028, UINT32) /**************************************************************************** WIOCSMAXTXLIFE - Set Max Transmit MSDU Life ****************************************************************************/#define WIOCSMAXTXLIFE _IOU('w', 0x029) /**************************************************************************** WIOCGMAXTXLIFE - Get Max Transmit MSDU Life ****************************************************************************/#define WIOCGMAXTXLIFE _IORU('w', 0x02a, UINT32) /**************************************************************************** WIOCSMAXRXLIFE - Set Max Receive Lifetime ****************************************************************************/#define WIOCSMAXRXLIFE _IOU('w', 0x02b) /**************************************************************************** WIOCGMAXRXLIFE - Get Max Receive Lifetime ****************************************************************************/#define WIOCGMAXRXLIFE _IORU('w', 0x02c, UINT32) /**************************************************************************** WIOCSPREAMBLE - Set preamble length UINT32 ****************************************************************************/#define WIOCSPREAMBLE _IOU('w', 0x02d) /**************************************************************************** WIOCGPREAMBLE - Get preamble length UINT32 * ****************************************************************************/#define WIOCGPREAMBLE _IORU('w', 0x02e, UINT32) /**************************************************************************** WIOCSAUTHRESPTO - Set Authentication response timeout UINT32 ****************************************************************************/#define WIOCSAUTHRESPTO _IOU('w', 0x02f) /**************************************************************************** WIOCGAUTHRESPTO - Get Authentication response timeout UINT32 * ****************************************************************************/#define WIOCGAUTHRESPTO _IORU('w', 0x030, UINT32) /* WIOCSUNICASTKEYNUM, WIOCGUNICASTKEYNUM, WIOCSMULTICASTKEYNUM, WIOCGMULTICASTKEYNUM are all invalid IOCTLs as of the 2.2 version. *//**************************************************************************** WIOCSADVSECURITY - Set advanced security options UINT32 ****************************************************************************/#define DOT11_ADVSEC_HIDE_SSID _BIT(0)#define DOT11_ADVSEC_BLOCK_BCAST_SSID _BIT(1)#define WIOCSADVSECURITY _IOU('w', 0x035) /**************************************************************************** WIOCGADVSECURITY - Get advanced security options UINT32 * ****************************************************************************/#define WIOCGADVSECURITY _IORU('w', 0x036, UINT32) /**************************************************************************** WIOCSOCCUPANCY - Set Medium Occupancy Limit ****************************************************************************/#define WIOCSOCCUPANCY _IOU('w', 0x037) /**************************************************************************** WIOCGOCCUPANCY - Get Medium Occupancy Limit ****************************************************************************/#define WIOCGOCCUPANCY _IORU('w', 0x038, UINT32) /**************************************************************************** WIOCGCFPPOLL - Get CFP Pollable UNIT 32 * ****************************************************************************/#define WIOCGCFPPOLL _IORU('w', 0x039, UINT32) /**************************************************************************** WIOCSCFPPERIOD - Set CFP Period ****************************************************************************/#define WIOCSCFPPERIOD _IOU('w', 0x03a) /**************************************************************************** WIOCGCFPPERIOD - Get CFP Period ****************************************************************************/#define WIOCGCFPPERIOD _IORU('w', 0x03b, UINT32) /**************************************************************************** WIOCSCFPMAX - Set CFP Max Duration ****************************************************************************/#define WIOCSCFPMAX _IOU('w', 0x03c) /**************************************************************************** WIOCGCFPMAX - Get CFP Max duration ****************************************************************************/#define WIOCGCFPMAX _IORU('w', 0x03d, UINT32) /**************************************************************************** WIOCSDTIMRATE - Set DTIM rate ****************************************************************************/#define WIOCSDTIMRATE _IOU('w', 0x03e) /**************************************************************************** WIOCGDTIMRATE - Get DTIM rate ****************************************************************************/#define WIOCGDTIMRATE _IORU('w', 0x03f, UINT32) /**************************************************************************** WIOCGSUPPTXRATE - Get Supported Tx rates ****************************************************************************/#define WIOCGSUPPTXRATE _IORU('w', 0x040, DOT11_RATES)/**************************************************************************** WIOCGSUPPRXRATE - Get Supported Rx Rates ****************************************************************************/#define WIOCGSUPPRXRATE _IORU('w', 0x041, DOT11_RATES)/**************************************************************************** WIOCSASSOCRESPTIME - Set association response timeout ****************************************************************************/#define WIOCSASSOCRESPTIME _IOU('w', 0x042) /**************************************************************************** WIOCGASSOCRESPTIME - Get association response timeout ****************************************************************************/#define WIOCGASSOCRESPTIME _IORU('w', 0x043, UINT32)/**************************************************************************** WIOCSBCASTRATE - Set Transmit Speed (Multi & broad) | UINT32 ****************************************************************************/#define WIOCSBCASTRATE _IOU('w', 0x044)/**************************************************************************** WIOCGBCASTRATE - Get Transmit Speed (Multi & broad) | UINT32 ****************************************************************************/#define WIOCGBCASTRATE _IORU('w', 0x045, UINT32)/**************************************************************************** WIOCSRADIOMODE - Set Radio Mode (allowed freqs) | UINT32 ****************************************************************************/#define DOT11_RADIO_NONE 0#define DOT11_RADIO_11a _BIT(0)#define DOT11_RADIO_11b _BIT(1)#define DOT11_RADIO_11g _BIT(2)#define DOT11_RADIO_TURBOg _BIT(3)#define DOT11_RADIO_TURBOa _BIT(4)#define DOT11_RADIO_ANY 0x1f#define WIOCSRADIOMODE _IOU('w', 0x046)/**************************************************************************** WIOCGRADIOMODE - Get Radio Mode (allowed freqs) | UINT32 * ****************************************************************************/#define WIOCGRADIOMODE _IORU('w', 0x047, UINT32)/**************************************************************************** WIOCSDOT11MODE - Set Dot11 Mode (SME mode) | UINT32 ****************************************************************************/#define DOT11_MODE_NONE 0#define DOT11_MODE_ESS 1#define DOT11_MODE_IBSS 2#define DOT11_MODE_AP 3#define WIOCSDOT11MODE _IOU('w', 0x048)/**************************************************************************** WIOCGDOT11MODE - Get Dot11 Mode (SME mode) | UINT32 * ****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -