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

📄 oid.h

📁 ralink 2870 usb无线网卡 最新驱动
💻 H
📖 第 1 页 / 共 3 页
字号:
#define RT_OID_WSC_SET_SSID                         0x0745#define RT_OID_WSC_SET_PIN_CODE                     0x0746#define RT_OID_WSC_SET_MODE                         0x0747 // PIN or PBC#define RT_OID_WSC_SET_CONF_MODE                    0x0748 // Enrollee or Registrar#define RT_OID_WSC_SET_PROFILE                      0x0749#endif // CONFIG_STA_SUPPORT //#define	RT_OID_WSC_CONFIG_STATUS					0x074F#define RT_OID_802_11_WSC_QUERY_PROFILE				0x0750// for consistency with RT61#define RT_OID_WSC_QUERY_STATUS						0x0751#define RT_OID_WSC_PIN_CODE							0x0752#define RT_OID_WSC_UUID								0x0753#define RT_OID_WSC_SET_SELECTED_REGISTRAR			0x0754#define RT_OID_WSC_EAPMSG							0x0755#define RT_OID_WSC_MANUFACTURER						0x0756#define RT_OID_WSC_MODEL_NAME						0x0757#define RT_OID_WSC_MODEL_NO							0x0758#define RT_OID_WSC_SERIAL_NO						0x0759#define RT_OID_WSC_MAC_ADDRESS						0x0760#ifdef LLTD_SUPPORT// for consistency with RT61#define RT_OID_GET_PHY_MODE                         0x761#endif // LLTD_SUPPORT //#ifdef NINTENDO_AP//#define RT_OID_NINTENDO                             0x0D010770 #define RT_OID_802_11_NINTENDO_GET_TABLE			0x0771 //((RT_OID_NINTENDO + 0x01) & 0xffff)#define RT_OID_802_11_NINTENDO_SET_TABLE			0x0772 //((RT_OID_NINTENDO + 0x02) & 0xffff)#define RT_OID_802_11_NINTENDO_CAPABLE				0x0773 //((RT_OID_NINTENDO + 0x03) & 0xffff)#endif // NINTENDO_AP //// New for MeetingHouse Api support#define OID_MH_802_1X_SUPPORTED               0xFFEDC100// MIMO Tx parameter, ShortGI, MCS, STBC, etc.  these are fields in TXWI. Don't change this definition!!!typedef union  _HTTRANSMIT_SETTING {#ifdef RT_BIG_ENDIAN	struct	{	USHORT		MODE:2;	// Use definition MODE_xxx.  //	USHORT		rsv:3;	 	USHORT		TxBF:1;	USHORT		rsv:2;	USHORT		STBC:2;	//SPACE 	USHORT		ShortGI:1;	USHORT		BW:1;	//channel bandwidth 20MHz or 40 MHz	USHORT   	MCS:7;                 // MCS	}	field;#else	struct	{	USHORT   	MCS:7;                 // MCS	USHORT		BW:1;	//channel bandwidth 20MHz or 40 MHz	USHORT		ShortGI:1;	USHORT		STBC:2;	//SPACE //	USHORT		rsv:3;	USHORT		rsv:2;	USHORT		TxBF:1;	USHORT		MODE:2;	// Use definition MODE_xxx.  	}	field;#endif	USHORT		word; } HTTRANSMIT_SETTING, *PHTTRANSMIT_SETTING;typedef enum _RT_802_11_PREAMBLE {    Rt802_11PreambleLong,    Rt802_11PreambleShort,    Rt802_11PreambleAuto} RT_802_11_PREAMBLE, *PRT_802_11_PREAMBLE;typedef enum _RT_802_11_PHY_MODE {	PHY_11BG_MIXED = 0,	PHY_11B,	PHY_11A,	PHY_11ABG_MIXED,	PHY_11G,#ifdef DOT11_N_SUPPORT	PHY_11ABGN_MIXED,	// both band   5	PHY_11N_2_4G,		// 11n-only with 2.4G band   	6	PHY_11GN_MIXED,	// 2.4G band      7	PHY_11AN_MIXED,	// 5G  band       8	PHY_11BGN_MIXED,	// if check 802.11b.      9	PHY_11AGN_MIXED,	// if check 802.11b.      10	PHY_11N_5G,			// 11n-only with 5G band		11#endif // DOT11_N_SUPPORT //} RT_802_11_PHY_MODE;// put all proprietery for-query objects here to reduce # of Query_OIDtypedef struct _RT_802_11_LINK_STATUS {    ULONG   CurrTxRate;         // in units of 0.5Mbps    ULONG   ChannelQuality;     // 0..100 %    ULONG   TxByteCount;        // both ok and fail    ULONG   RxByteCount;        // both ok and fail    ULONG	CentralChannel;		// 40MHz central channel number} RT_802_11_LINK_STATUS, *PRT_802_11_LINK_STATUS;typedef struct _RT_802_11_EVENT_LOG {    LARGE_INTEGER   SystemTime;  // timestammp via NdisGetCurrentSystemTime()    UCHAR           Addr[MAC_ADDR_LENGTH];    USHORT          Event;       // EVENT_xxx} RT_802_11_EVENT_LOG, *PRT_802_11_EVENT_LOG;typedef struct _RT_802_11_EVENT_TABLE {    ULONG       Num;    ULONG       Rsv;     // to align Log[] at LARGE_INEGER boundary    RT_802_11_EVENT_LOG   Log[MAX_NUMBER_OF_EVENT];} RT_802_11_EVENT_TABLE, PRT_802_11_EVENT_TABLE;// MIMO Tx parameter, ShortGI, MCS, STBC, etc.  these are fields in TXWI. Don't change this definition!!!typedef union  _MACHTTRANSMIT_SETTING {	struct	{	USHORT   	MCS:7;                 // MCS	USHORT		BW:1;	//channel bandwidth 20MHz or 40 MHz	USHORT		ShortGI:1;	USHORT		STBC:2;	//SPACE 	USHORT		rsv:3;	 	USHORT		MODE:2;	// Use definition MODE_xxx.  	}	field;	USHORT		word; } MACHTTRANSMIT_SETTING, *PMACHTTRANSMIT_SETTING;typedef struct _RT_802_11_MAC_ENTRY {    UCHAR       Addr[MAC_ADDR_LENGTH];    UCHAR       Aid;    UCHAR       Psm;     // 0:PWR_ACTIVE, 1:PWR_SAVE    UCHAR		MimoPs;  // 0:MMPS_STATIC, 1:MMPS_DYNAMIC, 3:MMPS_Enabled    CHAR		AvgRssi0;	CHAR		AvgRssi1;	CHAR		AvgRssi2;	UINT32		ConnectedTime;    MACHTTRANSMIT_SETTING	TxRate;} RT_802_11_MAC_ENTRY, *PRT_802_11_MAC_ENTRY;typedef struct _RT_802_11_MAC_TABLE {    ULONG       Num;    RT_802_11_MAC_ENTRY Entry[MAX_NUMBER_OF_MAC];} RT_802_11_MAC_TABLE, *PRT_802_11_MAC_TABLE;// structure for query/set hardware register - MAC, BBP, RF registertypedef struct _RT_802_11_HARDWARE_REGISTER {    ULONG   HardwareType;       // 0:MAC, 1:BBP, 2:RF register, 3:EEPROM    ULONG   Offset;             // Q/S register offset addr    ULONG   Data;               // R/W data buffer} RT_802_11_HARDWARE_REGISTER, *PRT_802_11_HARDWARE_REGISTER;typedef struct _RT_802_11_AP_CONFIG {    ULONG   EnableTxBurst;      // 0-disable, 1-enable    ULONG   EnableTurboRate;    // 0-disable, 1-enable 72/100mbps turbo rate    ULONG   IsolateInterStaTraffic;     // 0-disable, 1-enable isolation    ULONG   HideSsid;           // 0-disable, 1-enable hiding    ULONG   UseBGProtection;    // 0-AUTO, 1-always ON, 2-always OFF    ULONG   UseShortSlotTime;   // 0-no use, 1-use 9-us short slot time    ULONG   Rsv1;               // must be 0    ULONG   SystemErrorBitmap;  // ignore upon SET, return system error upon QUERY} RT_802_11_AP_CONFIG, *PRT_802_11_AP_CONFIG;// structure to query/set STA_CONFIGtypedef struct _RT_802_11_STA_CONFIG {    ULONG   EnableTxBurst;      // 0-disable, 1-enable    ULONG   EnableTurboRate;    // 0-disable, 1-enable 72/100mbps turbo rate    ULONG   UseBGProtection;    // 0-AUTO, 1-always ON, 2-always OFF    ULONG   UseShortSlotTime;   // 0-no use, 1-use 9-us short slot time when applicable    ULONG   AdhocMode; 			// 0-11b rates only (WIFI spec), 1 - b/g mixed, 2 - g only    ULONG   HwRadioStatus;      // 0-OFF, 1-ON, default is 1, Read-Only    ULONG   Rsv1;               // must be 0    ULONG   SystemErrorBitmap;  // ignore upon SET, return system error upon QUERY} RT_802_11_STA_CONFIG, *PRT_802_11_STA_CONFIG;////  For OID Query or Set about BA structure//typedef	struct	_OID_BACAP_STRUC	{		UCHAR		RxBAWinLimit;		UCHAR		TxBAWinLimit;		UCHAR		Policy;	// 0: DELAY_BA 1:IMMED_BA  (//BA Policy subfiled value in ADDBA frame)   2:BA-not use. other value invalid		UCHAR		MpduDensity;	// 0: DELAY_BA 1:IMMED_BA  (//BA Policy subfiled value in ADDBA frame)   2:BA-not use. other value invalid		UCHAR       	AmsduEnable;	//Enable AMSDU transmisstion		UCHAR       	AmsduSize;	// 0:3839, 1:7935 bytes. UINT  MSDUSizeToBytes[]	= { 3839, 7935};		UCHAR       	MMPSmode;	// MIMO power save more, 0:static, 1:dynamic, 2:rsv, 3:mimo enable		BOOLEAN		AutoBA;	// Auto BA will automatically	} OID_BACAP_STRUC, *POID_BACAP_STRUC;typedef struct _RT_802_11_ACL_ENTRY {    UCHAR   Addr[MAC_ADDR_LENGTH];    USHORT  Rsv;} RT_802_11_ACL_ENTRY, *PRT_802_11_ACL_ENTRY;typedef struct PACKED _RT_802_11_ACL {    ULONG   Policy;             // 0-disable, 1-positive list, 2-negative list    ULONG   Num;    RT_802_11_ACL_ENTRY Entry[MAX_NUMBER_OF_ACL];} RT_802_11_ACL, *PRT_802_11_ACL;typedef struct _RT_802_11_WDS {    ULONG						Num;    NDIS_802_11_MAC_ADDRESS		Entry[24/*MAX_NUM_OF_WDS_LINK*/];	ULONG						KeyLength;	UCHAR						KeyMaterial[32];} RT_802_11_WDS, *PRT_802_11_WDS;typedef struct _RT_802_11_TX_RATES_ {    UCHAR       SupRateLen;	    UCHAR       SupRate[MAX_LENGTH_OF_SUPPORT_RATES];    UCHAR       ExtRateLen;	    UCHAR       ExtRate[MAX_LENGTH_OF_SUPPORT_RATES];} RT_802_11_TX_RATES, *PRT_802_11_TX_RATES;// Definition of extra information code#define	GENERAL_LINK_UP			0x0			// Link is Up#define	GENERAL_LINK_DOWN		0x1			// Link is Down#define	HW_RADIO_OFF			0x2			// Hardware radio off#define	SW_RADIO_OFF			0x3			// Software radio off#define	AUTH_FAIL				0x4			// Open authentication fail#define	AUTH_FAIL_KEYS			0x5			// Shared authentication fail#define	ASSOC_FAIL				0x6			// Association failed#define	EAP_MIC_FAILURE			0x7			// Deauthencation because MIC failure#define	EAP_4WAY_TIMEOUT		0x8			// Deauthencation on 4-way handshake timeout#define	EAP_GROUP_KEY_TIMEOUT	0x9			// Deauthencation on group key handshake timeout#define	EAP_SUCCESS				0xa			// EAP succeed#define	DETECT_RADAR_SIGNAL		0xb         // Radar signal occur in current channel#define EXTRA_INFO_MAX			0xb			// Indicate Last OID#define EXTRA_INFO_CLEAR		0xffffffff// This is OID setting structure. So only GF or MM as Mode. This is valid when our wirelss mode has 802.11n in use.typedef struct {	RT_802_11_PHY_MODE		PhyMode; 	// 	UCHAR		TransmitNo;	UCHAR		HtMode; 	//HTMODE_GF or HTMODE_MM	UCHAR		ExtOffset;	//extension channel above or below	UCHAR		MCS;	UCHAR   	BW;	UCHAR		STBC;	UCHAR		SHORTGI;	UCHAR		rsv;} OID_SET_HT_PHYMODE, *POID_SET_HT_PHYMODE;#ifdef NINTENDO_AP#define NINTENDO_MAX_ENTRY 16#define NINTENDO_SSID_NAME_LN 8#define NINTENDO_SSID_NAME "NWCUSBAP"#define NINTENDO_PROBE_REQ_FLAG_MASK 0x03#define NINTENDO_PROBE_REQ_ON 0x01#define NINTENDO_PROBE_REQ_SIGNAL 0x02#define NINTENDO_PROBE_RSP_ON 0x01#define NINTENDO_SSID_NICKNAME_LN 20#define NINTENDO_WEPKEY_LN 13typedef struct _NINTENDO_SSID {	UCHAR	NINTENDOFixChar[NINTENDO_SSID_NAME_LN];	UCHAR	zero1;	UCHAR	registe;	UCHAR	ID;	UCHAR	zero2;	UCHAR	NICKname[NINTENDO_SSID_NICKNAME_LN];} RT_NINTENDO_SSID, *PRT_NINTENDO_SSID;typedef struct _NINTENDO_ENTRY {	UCHAR	NICKname[NINTENDO_SSID_NICKNAME_LN];    UCHAR   DS_Addr[ETH_LENGTH_OF_ADDRESS];	UCHAR	registe;	UCHAR	UserSpaceAck;} RT_NINTENDO_ENTRY, *PRT_NINTENDO_ENTRY;//RTPRIV_IOCTL_NINTENDO_GET_TABLE//RTPRIV_IOCTL_NINTENDO_SET_TABLEtypedef struct _NINTENDO_TABLE {	UINT				number;	RT_NINTENDO_ENTRY	entry[NINTENDO_MAX_ENTRY];} RT_NINTENDO_TABLE, *PRT_NINTENDO_TABLE;//RTPRIV_IOCTL_NINTENDO_SEED_WEPKEYtypedef struct _NINTENDO_SEED_WEPKEY {	UCHAR	seed[NINTENDO_SSID_NICKNAME_LN];	UCHAR	wepkey[16];//use 13 for 104 bits wep key} RT_NINTENDO_SEED_WEPKEY, *PRT_NINTENDO_SEED_WEPKEY;#endif // NINTENDO_AP //#ifdef LLTD_SUPPORTtypedef struct _RT_LLTD_ASSOICATION_ENTRY {    UCHAR           Addr[ETH_LENGTH_OF_ADDRESS];    unsigned short  MOR;        // maximum operational rate    UCHAR           phyMode;} RT_LLTD_ASSOICATION_ENTRY, *PRT_LLTD_ASSOICATION_ENTRY;typedef struct _RT_LLTD_ASSOICATION_TABLE {    unsigned int                Num;    RT_LLTD_ASSOICATION_ENTRY   Entry[MAX_NUMBER_OF_MAC];} RT_LLTD_ASSOICATION_TABLE, *PRT_LLTD_ASSOICATION_TABLE;#endif // LLTD_SUPPORT //#ifdef CONFIG_STA_SUPPORT#ifdef QOS_DLS_SUPPORT//rt2860, kathy 2007-0118// structure for DLStypedef struct _RT_802_11_DLS_UI {	USHORT						TimeOut;		// unit: second , set by UI	USHORT						CountDownTimer;	// unit: second , used by driver only	NDIS_802_11_MAC_ADDRESS		MacAddr;		// set by UI	UCHAR						Status;			// 0: none , 1: wait STAkey, 2: finish DLS setup , set by driver only	BOOLEAN						Valid;			// 1: valid , 0: invalid , set by UI, use to setup or tear down DLS link} RT_802_11_DLS_UI, *PRT_802_11_DLS_UI;typedef struct _RT_802_11_DLS_INFO {	RT_802_11_DLS_UI	Entry[MAX_NUMBER_OF_DLS_ENTRY];	UCHAR				num;} RT_802_11_DLS_INFO, *PRT_802_11_DLS_INFO;typedef enum _RT_802_11_DLS_MODE {    DLS_NONE,    DLS_WAIT_KEY,    DLS_FINISH} RT_802_11_DLS_MODE;#endif // QOS_DLS_SUPPORT //#ifdef WPA_SUPPLICANT_SUPPORT#ifndef NATIVE_WPA_SUPPLICANT_SUPPORT#define	RT_ASSOC_EVENT_FLAG                         0x0101#define	RT_DISASSOC_EVENT_FLAG                      0x0102#define	RT_REQIE_EVENT_FLAG                         0x0103#define	RT_RESPIE_EVENT_FLAG                        0x0104#define	RT_ASSOCINFO_EVENT_FLAG                     0x0105#define RT_PMKIDCAND_FLAG                           0x0106#define RT_INTERFACE_DOWN                           0x0107#define RT_INTERFACE_UP                             0x0108#endif // NATIVE_WPA_SUPPLICANT_SUPPORT //#endif // WPA_SUPPLICANT_SUPPORT //#endif // CONFIG_STA_SUPPORT //#define MAX_CUSTOM_LEN 128 #ifdef CONFIG_STA_SUPPORTtypedef enum _RT_802_11_D_CLIENT_MODE{   Rt802_11_D_None,   Rt802_11_D_Flexible,   Rt802_11_D_Strict,} RT_802_11_D_CLIENT_MODE, *PRT_802_11_D_CLIENT_MODE;#endif // CONFIG_STA_SUPPORT //typedef struct _RT_CHANNEL_LIST_INFO{	UCHAR ChannelList[MAX_NUM_OF_CHS];   // list all supported channels for site survey	UCHAR ChannelListNum; // number of channel in ChannelList[]} RT_CHANNEL_LIST_INFO, *PRT_CHANNEL_LIST_INFO;// WSC configured credentialtypedef	struct	_WSC_CREDENTIAL{	NDIS_802_11_SSID	SSID;				// mandatory	USHORT				AuthType;			// mandatory, 1: open, 2: wpa-psk, 4: shared, 8:wpa, 0x10: wpa2, 0x20: wpa2-psk	USHORT				EncrType;			// mandatory, 1: none, 2: wep, 4: tkip, 8: aes	UCHAR				Key[64];			// mandatory, Maximum 64 byte	USHORT				KeyLength;	UCHAR				MacAddr[6];			// mandatory, AP MAC address	UCHAR				KeyIndex;			// optional, default is 1	UCHAR				Rsvd[3];			// Make alignment}	WSC_CREDENTIAL, *PWSC_CREDENTIAL;// WSC configured profilestypedef	struct	_WSC_PROFILE{	UINT			ProfileCnt;	UINT			ApplyProfileIdx;  // add by johnli, fix WPS test plan 5.1.1	WSC_CREDENTIAL	Profile[8];				// Support up to 8 profiles}	WSC_PROFILE, *PWSC_PROFILE;#endif // _OID_H_

⌨️ 快捷键说明

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