📄 dot11usrlib.h
字号:
#define WIOCGDOT11MODE _IORU('w', 0x049, UINT32)/**************************************************************************** WIOCSACLMODE - Set the Access Control List Mode | UINT32 ****************************************************************************/#define DOT11_ACL_DISABLED 0#define DOT11_ACL_ALLOW 1#define DOT11_ACL_DENY 2#define WIOCSACLMODE _IOU('w', 0x04a)/**************************************************************************** WIOCGACLMODE - Set the Access Control List Mode | UINT32 ****************************************************************************/#define WIOCGACLMODE _IORU('w', 0x04b, UINT32)/**************************************************************************** WIOCGWEPDEFAULTKEY - Set WEP default key UINT32 ****************************************************************************/#define WIOCGWEPDEFAULTKEY _IORU('w', 0x04c, UINT32)/**************************************************************************** WIOCSDESIREDSSID - Set Wireless Network Name char * ****************************************************************************/#define WIOCSDESIREDSSID _IOWU('w', 0x04d, DOT11_SSID)/**************************************************************************** WIOCUNSUPPORTED - Used to force an ERROR code from the IOCTL ****************************************************************************/#define WIOCUNSUPPORTED _IOU('w', 0x04e)/**************************************************************************** WIOCAPAIRWISEKEY - Adds a pairwise key and returns the keyslot in the passed structure ****************************************************************************/#define WIOCAPAIRWISEKEY _IOWU('w', 0x04f, DOT11_KEY)/**************************************************************************** WIOCSSECPOL - Set the available security policies ****************************************************************************/#define DOT11_SECPOL_NONE 0#define DOT11_SECPOL_TSN _BIT(0)#define DOT11_SECPOL_WPA _BIT(1)#define DOT11_SECPOL_11i _BIT(2)#define WIOCSSECPOL _IOU('w', 0x050)/**************************************************************************** WIOCGSECPOL - Gt the available security policies ****************************************************************************/#define WIOCGSECPOL _IORU('w', 0x051, UINT32)/**************************************************************************** WIOCSAUTHPOL - Set the available authentication policies ****************************************************************************/#define DOT11_AUTHPOL_NONE 0#define DOT11_AUTHPOL_8021X _BIT(0)#define DOT11_AUTHPOL_PSK _BIT(1)#define DOT11_AUTHPOL_MAX (DOT11_AUTHPOL_PSK + 1)#define WIOCSAUTHPOL _IOU('w', 0x052)/**************************************************************************** WIOCGAUTHPOL - Get the available authentication policies ****************************************************************************/#define WIOCGAUTHPOL _IORU('w', 0x053, UINT32)/**************************************************************************** WIOCSCIPHPOL - Set the available cipher suites ****************************************************************************/#define DOT11_CIPHPOL_NONE 0#define DOT11_CIPHPOL_WEP40 _BIT(0)#define DOT11_CIPHPOL_WEP104 _BIT(1)#define DOT11_CIPHPOL_TKIP _BIT(2)#define DOT11_CIPHPOL_AES _BIT(3)#define DOT11_CIPHPOL_MAX (DOT11_CIPHPOL_AES + 1)#define WIOCSCIPHPOL _IOU('w', 0x054)/**************************************************************************** WIOCGCIPHPOL - Get the available cipher suites ****************************************************************************/#define WIOCGCIPHPOL _IORU('w', 0x055, UINT32)/**************************************************************************** WIOCSPSK - Set the pre-shared key ****************************************************************************/#define WIOCSPSK _IOWU('w', 0x56, DOT11_PSK)/**************************************************************************** WIOCSPASSPHRASE - Sets the pre-shared key using a passphrase ****************************************************************************/#define WIOCSPASSPHRASE _IOWU('w', 0x57, DOT11_PASSPHRASE)/**************************************************************************** WIOCBSSSCAN - Performs a BSS scan and waits for the results ****************************************************************************/typedef struct { /* SSID of the detected BSS. empty string if SSID is hidden. */ char ssid[DOT11_SSID_LEN + 1]; /* 802.11 capabilities field. See DOT11_CAP_... macros */ UINT16 capabilities; DOT11_RATES rates; UINT16 beaconInterval; int channel; UINT8 ssi; } DOT11_SCAN_RESULTS;typedef struct { /* The SSID to search for */ char ssid[DOT11_SSID_LEN + 1]; /* The number of entries in the pre-allocated array */ int maxResults; /* The pointer to the pre-allocated array in which to put the results */ DOT11_SCAN_RESULTS * pResults; /* After WIOCBSSCAN is called, the number of results placed in the array */ int numResults; } DOT11_SCAN_REQ;#define WIOCBSSSCAN _IOWRU('w', 0x058, DOT11_SCAN_REQ)/**************************************************************************** WIOCSCOUNTRYCODE - Sets the current country code ****************************************************************************/#define WIOCSCOUNTRYCODE _IOU('w', 0x059)/**************************************************************************** WIOCGCOUNTRYCODE - Returns the current country code ****************************************************************************/#define WIOCGCOUNTRYCODE _IORU('w', 0x5a, UINT32)/**************************************************************************** WIOCS80211D - Enable 802.11d support ****************************************************************************/#define WIOCS80211D _IOU('w', 0x5b)/**************************************************************************** WIOCG80211D - Returns current status of 802.11d ****************************************************************************/#define WIOCG80211D _IORU('w', 0x5c, UINT32)#define WIOCSBULK _IOU('w', 0x5d)/****************************************************************************WIOCGHWVERS - Returns hardware information string ****************************************************************************/#define WIOCGHWVERS _IORU('w', 0x5e, DOT11_HWVERS_BUF)/**************************************************************************** WIOCGTXPOWERSCALE - Gets the current tx power scaling factor ****************************************************************************/#define WIOCGTXPOWERSCALE _IORU('w', 0x5f, UINT32)/**************************************************************************** WIOCSTXPOWERSCALE - Sets the current tx power scaling factor ****************************************************************************/#define DOT11_TXPOWER_MAX 0#define DOT11_TXPOWER_66 1#define DOT11_TXPOWER_50 2#define DOT11_TXPOWER_33 3#define DOT11_TXPOWER_MIN 4#define WIOCSTXPOWERSCALE _IOU('w', 0x60)/**************************************************************************** WIOCSUSERAUTHCALLBACK - Sets the current user authentication callback****************************************************************************/#define DOT11_CALLBACK_CONNECT (1) /* Callback called due to association*/#define DOT11_CALLBACK_DISCONNECT (2) /* Callback called due to disassociation*/#define WIOCSUSERAUTHCALLBACK _IOW('w', 0x61, FUNCPTR)/**************************************************************************** WIOCDPAIRWISEKEY - Removes a WEP key mapping key added by WIOCAPAIRWISEKEY****************************************************************************/#define WIOCDPAIRWISEKEY _IOWU('w', 0x62, DOT11_ADDR)/**************************************************************************** WIOCGCHANNELLIST - Returns a list of the channels supported by the current* country code.****************************************************************************//* The maximum number of channels in a channel list */#define DOT11_MAX_CHANNELS 64typedef struct { int channel; int freq; UINT32 mode; BOOL activeScanAllowed; } DOT11_CHANNEL_INFO;typedef struct { int numChannels; DOT11_CHANNEL_INFO channels[DOT11_MAX_CHANNELS]; } DOT11_CHANNEL_LIST;#define WIOCGCHANNELLIST _IOWRU('w', 0x63, DOT11_CHANNEL_LIST)/**************************************************************************** WIOCSSCANTYPE - Enables active and/or passive scanning for ESS/IBSS modes****************************************************************************//* Values for sme.scanType. One or both of these values can be set */#define DOT11_SCANTYPE_ACTIVE _BIT(0)#define DOT11_SCANTYPE_PASSIVE _BIT(1)#define WIOCSSCANTYPE _IOU('w', 0x64)/**************************************************************************** WIOCGSCANTYPE - Returns current scan types in use.****************************************************************************/#define WIOCGSCANTYPE _IORU('w', 0x65, UINT32)/*************************************************************** WIOCSBSS - Set the current BSS being configured**************************************************************/#define WIOCSBSS _IOU('w', 0x66) /*************************************************************** WIOCGBSS - Get the current BSS being configured**************************************************************/#define WIOCGBSS _IORU('w', 0x67, UINT32) /*************************************************************** WIOCABSS - Create a new BSS and return it's number**************************************************************/#define WIOCABSS _IORU('w', 0x68, UINT32) /*************************************************************** WIOCDBSS - Delete the specified BSS**************************************************************/#define WIOCDBSS _IOU('w', 0x69) /*************************************************************** WIOCSMBSSADDRBITS - Set the bits used for mBSSIDs**************************************************************/#define WIOCSMBSSADDRBITS _IOU('w', 0x6a) /*************************************************************** WIOCSASSOCLIMIT - Sets number of stations allowed to assoc this BSS**************************************************************/#define WIOCSASSOCLIMIT _IOU('w', 0x6b) /*************************************************************** WIOCSVLAN - Enables / disables VLAN operation in AP mode**************************************************************/#define WIOCSVLAN _IOU('w', 0x6c) /*************************************************************** WIOCGVLAN - Returns VLAN status**************************************************************/#define WIOCGVLAN _IORU('w', 0x6d, UINT32) #ifdef __cplusplus}#endif /* __cplusplus */#endif /* __INCdot11UsrLibh */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -