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

📄 rtmp.h

📁 ralink 2870 usb无线网卡 最新驱动
💻 H
📖 第 1 页 / 共 5 页
字号:
/***************************************************************************  *	USB-based chip Beacon related data structures  **************************************************************************/#define BEACON_BITMAP_MASK		0xfftypedef struct _BEACON_SYNC_STRUCT_{	UCHAR        			BeaconBuf[HW_BEACON_MAX_COUNT][HW_BEACON_OFFSET];	UCHAR					BeaconTxWI[HW_BEACON_MAX_COUNT][TXWI_SIZE];	ULONG 					TimIELocationInBeacon[HW_BEACON_MAX_COUNT];	ULONG					CapabilityInfoLocationInBeacon[HW_BEACON_MAX_COUNT];	BOOLEAN					EnableBeacon;		// trigger to enable beacon transmission.	UCHAR					BeaconBitMap;		// NOTE: If the MAX_MBSSID_NUM is larger than 8, this parameter need to change.	UCHAR					DtimBitOn;			// NOTE: If the MAX_MBSSID_NUM is larger than 8, this parameter need to change.}BEACON_SYNC_STRUCT;#endif // RTMP_MAC_USB ///***************************************************************************  *	Multiple SSID related data structures  **************************************************************************/#define WLAN_MAX_NUM_OF_TIM			((MAX_LEN_OF_MAC_TABLE >> 3) + 1) /* /8 + 1 */#define WLAN_CT_TIM_BCMC_OFFSET		0 /* unit: 32B *//* clear bcmc TIM bit */#define WLAN_MR_TIM_BCMC_CLEAR(apidx) \	pAd->ApCfg.MBSSID[apidx].TimBitmaps[WLAN_CT_TIM_BCMC_OFFSET] &= ~BIT8[0];/* set bcmc TIM bit */#define WLAN_MR_TIM_BCMC_SET(apidx) \	pAd->ApCfg.MBSSID[apidx].TimBitmaps[WLAN_CT_TIM_BCMC_OFFSET] |= BIT8[0];/* clear a station PS TIM bit */#define WLAN_MR_TIM_BIT_CLEAR(ad_p, apidx, wcid) \	{	UCHAR tim_offset = wcid >> 3; \		UCHAR bit_offset = wcid & 0x7; \		ad_p->ApCfg.MBSSID[apidx].TimBitmaps[tim_offset] &= (~BIT8[bit_offset]); }/* set a station PS TIM bit */#define WLAN_MR_TIM_BIT_SET(ad_p, apidx, wcid) \	{	UCHAR tim_offset = wcid >> 3; \		UCHAR bit_offset = wcid & 0x7; \		ad_p->ApCfg.MBSSID[apidx].TimBitmaps[tim_offset] |= BIT8[bit_offset]; }// configuration common to OPMODE_AP as well as OPMODE_STAtypedef struct _COMMON_CONFIG {	BOOLEAN		bCountryFlag;	UCHAR		CountryCode[3];	UCHAR		Geography;	UCHAR       CountryRegion;      // Enum of country region, 0:FCC, 1:IC, 2:ETSI, 3:SPAIN, 4:France, 5:MKK, 6:MKK1, 7:Israel	UCHAR       CountryRegionForABand;	// Enum of country region for A band	UCHAR       PhyMode;            // PHY_11A, PHY_11B, PHY_11BG_MIXED, PHY_ABG_MIXED	USHORT      Dsifs;              // in units of usec	ULONG       PacketFilter;       // Packet filter for receiving	UINT8		RequlatoryClass;	CHAR        Ssid[MAX_LEN_OF_SSID]; // NOT NULL-terminated	UCHAR       SsidLen;               // the actual ssid length in used	UCHAR       LastSsidLen;               // the actual ssid length in used	CHAR        LastSsid[MAX_LEN_OF_SSID]; // NOT NULL-terminated	UCHAR		LastBssid[MAC_ADDR_LEN];	UCHAR       Bssid[MAC_ADDR_LEN];	USHORT      BeaconPeriod;	UCHAR       Channel;            	UCHAR       CentralChannel;    	// Central Channel when using 40MHz is indicating. not real channel.        	UCHAR       SupRate[MAX_LEN_OF_SUPPORTED_RATES];	UCHAR       SupRateLen;	UCHAR       ExtRate[MAX_LEN_OF_SUPPORTED_RATES];	UCHAR       ExtRateLen;	UCHAR       DesireRate[MAX_LEN_OF_SUPPORTED_RATES];      // OID_802_11_DESIRED_RATES	UCHAR       MaxDesiredRate;	UCHAR       ExpectedACKRate[MAX_LEN_OF_SUPPORTED_RATES];	ULONG       BasicRateBitmap;        // backup basic ratebitmap	BOOLEAN		bAPSDCapable;	BOOLEAN		bInServicePeriod;	BOOLEAN		bAPSDAC_BE;	BOOLEAN		bAPSDAC_BK;	BOOLEAN		bAPSDAC_VI;	BOOLEAN		bAPSDAC_VO;	/* because TSPEC can modify the APSD flag, we need to keep the APSD flag		requested in association stage from the station;		we need to recover the APSD flag after the TSPEC is deleted. */	BOOLEAN		bACMAPSDBackup[4]; /* for delivery-enabled & trigger-enabled both */	BOOLEAN		bACMAPSDTr[4]; /* no use */	BOOLEAN		bNeedSendTriggerFrame;	BOOLEAN		bAPSDForcePowerSave;	// Force power save mode, should only use in APSD-STAUT	ULONG		TriggerTimerCount;	UCHAR		MaxSPLength;	UCHAR		BBPCurrentBW;	// BW_10, 	BW_20, BW_40	// move to MULTISSID_STRUCT for MBSS 	//HTTRANSMIT_SETTING	HTPhyMode, MaxHTPhyMode, MinHTPhyMode;// For transmit phy setting in TXWI.		REG_TRANSMIT_SETTING        RegTransmitSetting; //registry transmit setting. this is for reading registry setting only. not useful.	//UCHAR       FixedTxMode;              // Fixed Tx Mode (CCK, OFDM), for HT fixed tx mode (GF, MIX) , refer to RegTransmitSetting.field.HTMode	UCHAR       TxRate;                 // Same value to fill in TXD. TxRate is 6-bit 	UCHAR       MaxTxRate;              // RATE_1, RATE_2, RATE_5_5, RATE_11	UCHAR       TxRateIndex;            // Tx rate index in RateSwitchTable	UCHAR       TxRateTableSize;        // Valid Tx rate table size in RateSwitchTable	//BOOLEAN		bAutoTxRateSwitch;	UCHAR       MinTxRate;              // RATE_1, RATE_2, RATE_5_5, RATE_11	UCHAR       RtsRate;                // RATE_xxx	HTTRANSMIT_SETTING	MlmeTransmit;   // MGMT frame PHY rate setting when operatin at Ht rate.	UCHAR       MlmeRate;               // RATE_xxx, used to send MLME frames	UCHAR       BasicMlmeRate;          // Default Rate for sending MLME frames	USHORT      RtsThreshold;           // in unit of BYTE	USHORT      FragmentThreshold;      // in unit of BYTE	UCHAR       TxPower;                // in unit of mW	ULONG       TxPowerPercentage;      // 0~100 %	ULONG       TxPowerDefault;         // keep for TxPowerPercentage	UINT8		PwrConstraint;#ifdef DOT11_N_SUPPORT	BACAP_STRUC        BACapability; //   NO USE = 0XFF  ;  IMMED_BA =1  ;  DELAY_BA=0	BACAP_STRUC        REGBACapability; //   NO USE = 0XFF  ;  IMMED_BA =1  ;  DELAY_BA=0#endif // DOT11_N_SUPPORT //	IOT_STRUC		IOTestParm;	// 802.11n InterOpbility Test Parameter;	ULONG       TxPreamble;             // Rt802_11PreambleLong, Rt802_11PreambleShort, Rt802_11PreambleAuto	BOOLEAN     bUseZeroToDisableFragment;     // Microsoft use 0 as disable 	ULONG       UseBGProtection;        // 0: auto, 1: always use, 2: always not use	BOOLEAN     bUseShortSlotTime;      // 0: disable, 1 - use short slot (9us)	BOOLEAN     bEnableTxBurst;         // 1: enble TX PACKET BURST (when BA is established or AP is not a legacy WMM AP), 0: disable TX PACKET BURST	BOOLEAN     bAggregationCapable;    // 1: enable TX aggregation when the peer supports it	BOOLEAN     bPiggyBackCapable;		// 1: enable TX piggy-back according MAC's version	BOOLEAN     bIEEE80211H;			// 1: enable IEEE802.11h spec.	ULONG		DisableOLBCDetect;		// 0: enable OLBC detect; 1 disable OLBC detect #ifdef DOT11_N_SUPPORT	BOOLEAN				bRdg;#endif // DOT11_N_SUPPORT //	BOOLEAN             bWmmCapable;        // 0:disable WMM, 1:enable WMM	QOS_CAPABILITY_PARM APQosCapability;    // QOS capability of the current associated AP	EDCA_PARM           APEdcaParm;         // EDCA parameters of the current associated AP	QBSS_LOAD_PARM      APQbssLoad;         // QBSS load of the current associated AP	UCHAR               AckPolicy[4];       // ACK policy of the specified AC. see ACK_xxx#ifdef CONFIG_STA_SUPPORT	BOOLEAN				bDLSCapable;		// 0:disable DLS, 1:enable DLS#endif // CONFIG_STA_SUPPORT //	// a bitmap of BOOLEAN flags. each bit represent an operation status of a particular 	// BOOLEAN control, either ON or OFF. These flags should always be accessed via	// OPSTATUS_TEST_FLAG(), OPSTATUS_SET_FLAG(), OP_STATUS_CLEAR_FLAG() macros.	// see fOP_STATUS_xxx in RTMP_DEF.C for detail bit definition	ULONG               OpStatusFlags;	BOOLEAN				NdisRadioStateOff; //For HCT 12.0, set this flag to TRUE instead of called MlmeRadioOff.       	ABGBAND_STATE		BandState;		// For setting BBP used on B/G or A mode.#ifdef ANT_DIVERSITY_SUPPORT	BOOLEAN				bRxAntDiversity; // 0:disable, 1:enable Software Rx Antenna Diversity.#endif // ANT_DIVERSITY_SUPPORT //	// IEEE802.11H--DFS.	RADAR_DETECT_STRUCT	RadarDetect;#ifdef CARRIER_DETECTION_SUPPORT	CARRIER_DETECTION_STRUCT		CarrierDetect;#endif // CARRIER_DETECTION_SUPPORT //#ifdef DOT11_N_SUPPORT	// HT	UCHAR			BASize;		// USer desired BAWindowSize. Should not exceed our max capability	//RT_HT_CAPABILITY	SupportedHtPhy;	RT_HT_CAPABILITY	DesiredHtPhy;	HT_CAPABILITY_IE		HtCapability;		ADD_HT_INFO_IE		AddHTInfo;	// Useful as AP.	//This IE is used with channel switch announcement element when changing to a new 40MHz.	//This IE is included in channel switch ammouncement frames 7.4.1.5, beacons, probe Rsp.	NEW_EXT_CHAN_IE	NewExtChanOffset;	//7.3.2.20A, 1 if extension channel is above the control channel, 3 if below, 0 if not present#ifdef DOT11N_DRAFT3	UCHAR					Bss2040CoexistFlag;		// bit 0: bBssCoexistTimerRunning, bit 1: NeedSyncAddHtInfo.	RALINK_TIMER_STRUCT	Bss2040CoexistTimer;	//This IE is used for 20/40 BSS Coexistence.	BSS_2040_COEXIST_IE		BSS2040CoexistInfo;	// ====== 11n D3.0 =======================>	USHORT					Dot11OBssScanPassiveDwell;				// Unit : TU. 5~1000	USHORT					Dot11OBssScanActiveDwell;				// Unit : TU. 10~1000	USHORT					Dot11BssWidthTriggerScanInt;			// Unit : Second	USHORT					Dot11OBssScanPassiveTotalPerChannel;	// Unit : TU. 200~10000	USHORT					Dot11OBssScanActiveTotalPerChannel;	// Unit : TU. 20~10000	USHORT					Dot11BssWidthChanTranDelayFactor;	USHORT					Dot11OBssScanActivityThre;				// Unit : percentage		ULONG					Dot11BssWidthChanTranDelay;			// multiple of (Dot11BssWidthTriggerScanInt * Dot11BssWidthChanTranDelayFactor)	ULONG					CountDownCtr;	// CountDown Counter from (Dot11BssWidthTriggerScanInt * Dot11BssWidthChanTranDelayFactor)		NDIS_SPIN_LOCK          TriggerEventTabLock;	BSS_2040_COEXIST_IE		LastBSSCoexist2040;	BSS_2040_COEXIST_IE		BSSCoexist2040;	TRIGGER_EVENT_TAB		TriggerEventTab;	UCHAR					ChannelListIdx;	// <====== 11n D3.0 =======================	BOOLEAN					bOverlapScanning;#endif // DOT11N_DRAFT3 //    BOOLEAN                 bHTProtect;    BOOLEAN                 bMIMOPSEnable;    BOOLEAN					bBADecline;//2008/11/05: KH add to support Antenna power-saving of AP<--    	BOOLEAN					bGreenAPEnable;//2008/11/05: KH add to support Antenna power-saving of AP-->	BOOLEAN					bDisableReordering;	BOOLEAN					bForty_Mhz_Intolerant;	BOOLEAN					bExtChannelSwitchAnnouncement;	BOOLEAN					bRcvBSSWidthTriggerEvents;	ULONG					LastRcvBSSWidthTriggerEventsTime;	UCHAR					TxBASize;	#endif // DOT11_N_SUPPORT //	// Enable wireless event	BOOLEAN				bWirelessEvent;	BOOLEAN				bWiFiTest;				// Enable this parameter for WiFi test			// Tx & Rx Stream number selection	UCHAR				TxStream;	UCHAR				RxStream;	// transmit phy mode, trasmit rate for Multicast.#ifdef MCAST_RATE_SPECIFIC	UCHAR				McastTransmitMcs;	UCHAR				McastTransmitPhyMode;#endif // MCAST_RATE_SPECIFIC //	BOOLEAN     		bHardwareRadio;     // Hardware controlled Radio enabled#ifdef RTMP_MAC_USB	BOOLEAN     		bMultipleIRP;       // Multiple Bulk IN flag	UCHAR       		NumOfBulkInIRP;     // if bMultipleIRP == TRUE, NumOfBulkInIRP will be 4 otherwise be 1 	RT_HT_CAPABILITY	SupportedHtPhy;	ULONG				MaxPktOneTxBulk;	UCHAR				TxBulkFactor;	UCHAR				RxBulkFactor;	BOOLEAN				IsUpdateBeacon;	BEACON_SYNC_STRUCT	*pBeaconSync;	RALINK_TIMER_STRUCT	BeaconUpdateTimer;	UINT32				BeaconAdjust;	UINT32				BeaconFactor;	UINT32				BeaconRemain;#endif // RTMP_MAC_USB //	NDIS_SPIN_LOCK			MeasureReqTabLock;	PMEASURE_REQ_TAB		pMeasureReqTab;	NDIS_SPIN_LOCK			TpcReqTabLock;	PTPC_REQ_TAB			pTpcReqTab;	// transmit phy mode, trasmit rate for Multicast.#ifdef MCAST_RATE_SPECIFIC	HTTRANSMIT_SETTING		MCastPhyMode;#endif // MCAST_RATE_SPECIFIC //#ifdef SINGLE_SKU	UINT16					DefineMaxTxPwr;#endif // SINGLE_SKU //	BOOLEAN				PSPXlink;  // 0: Disable. 1: Enable	BOOLEAN		HT_DisallowTKIP;		/* Restrict the encryption type in 11n HT mode */} COMMON_CONFIG, *PCOMMON_CONFIG;#ifdef CONFIG_STA_SUPPORT /* Modified by Wu Xi-Kun 4/21/2006 */// STA configuration and statustypedef struct _STA_ADMIN_CONFIG {	// GROUP 1 -	//   User configuration loaded from Registry, E2PROM or OID_xxx. These settings describe	//   the user intended configuration, but not necessary fully equal to the final 	//   settings in ACTIVE BSS after negotiation/compromize with the BSS holder (either 	//   AP or IBSS holder).	//   Once initialized, user configuration can only be changed via OID_xxx	UCHAR       BssType;              // BSS_INFRA or BSS_ADHOC	USHORT      AtimWin;          // used when starting a new IBSS	// GROUP 2 -	//   User configuration loaded from Registry, E2PROM or OID_xxx. These settings describe	//   the user intended configuration, and should be always applied to the final 	//   settings in ACTIVE BSS without compromising with the BSS holder.	//   Once initialized, user configuration can only be changed via OID_xxx	UCHAR       RssiTrigger;	UCHAR       RssiTriggerMode;      // RSSI_TRIGGERED_UPON_BELOW_THRESHOLD or RSSI_TRIGGERED_UPON_EXCCEED_THRESHOLD	USHORT      DefaultListenCount;   // default listen count;	ULONG       WindowsPowerMode;           // Power mode for AC power	ULONG       WindowsBatteryPowerMode;    // Power mode for battery if exists	BOOLEAN     bWindowsACCAMEnable;        // Enable CAM power mode when AC on	BOOLEAN     bAutoReconnect;         // Set to TRUE when setting OID_802_11_SSID with no matching BSSID	ULONG       WindowsPowerProfile;    // Windows power profile, for NDIS5.1 PnP	// MIB:ieee802dot11.dot11smt(1).dot11StationConfigTable(1)	USHORT      Psm;                  // power management mode   (PWR_ACTIVE|PWR_SAVE)	USHORT      DisassocReason;	UCHAR       DisassocSta[MAC_ADDR_LEN];	USHORT      DeauthReason;	UCHAR       DeauthSta[MAC_ADDR_LEN];	USHORT      AuthFailReason;	UCHAR       AuthFailSta[MAC_ADDR_LEN];	NDIS_802_11_PRIVACY_FILTER          PrivacyFilter;  // PrivacyFilter enum for 802.1X	NDIS_802_11_AUTHENTICATION_MODE     AuthMode;       // This should match to whatever microsoft defined	NDIS_802_11_WEP_STATUS              WepStatus;	NDIS_802_11_WEP_STATUS				OrigWepStatus;	// Original wep status set from OID	// Add to support different cipher suite for WPA2/WPA mode	NDIS_802_11_ENCRYPTION_STATUS		GroupCipher;		// Multicast cipher suite	NDIS_802_11_ENCRYPTION_STATUS		PairCipher;			// Unicast cipher suite	BOOLEAN								bMixCipher;			// Indicate current Pair & Group use different cipher suites	USHORT								RsnCapability;		NDIS_802_11_WEP_STATUS              GroupKeyWepStatus;	UCHAR		WpaPassPhrase[64];		// WPA PSK pass phrase	UINT		WpaPassPhraseLen;		// the length of WPA PSK pass phrase	UCHAR		PMK[32];                // WPA PSK mode PMK	UCHAR       PTK[64];                // WPA PSK mode PTK	UCHAR		GTK[32];				// GTK from authenticator	BSSID_INFO	SavedPMK[PMKID_NO];	UINT		SavedPMKNum;			// Saved PMKID number	UCHAR		DefaultKeyId;				// WPA 802.1x port control, WPA_802_1X_PORT_SECURED, WPA_802_1X_PORT_NOT_SECURED	UCHAR       PortSecured;	// For WPA countermeasures	ULONG       LastMicErrorTime;   // record last MIC error time	ULONG       MicErrCnt;          // Should be 0, 1, 2, then reset to zero (after disassoiciation).	BOOLEAN     bBlockAssoc;        // Block associate attempt for 60 seconds after counter measure occurred.	// For WPA-PSK supplicant state	WPA_STATE   WpaState;           // Default is SS_NOTUSE and handled by microsoft 802.1x	UCHAR       ReplayCounter[8];	UCHAR       ANonce[32];         // ANonce for WPA-PSK from aurhenticator	UCHAR       SNonce[32];         // SNonce for WPA-PSK	UCHAR       LastSNR0;             // last received BEACON's SNR	UCHAR       LastSNR1;            // last received BEACON's SNR for 2nd  antenna	RSSI_SAMPLE RssiSample;	ULONG       NumOfAvgRssiSample;	ULONG       LastBeaconRxTime;     // OS's timestamp of the last BEACON RX time	ULONG       Last11bBeaconRxTime;  // OS's timestamp of the last 11B BEACON RX time	ULONG		Last11gBeaconRxTime;	// OS's timestamp of the last 11G BEACON RX time	ULONG		Last20NBeaconRxTime;	// OS's timestamp of the last 20MHz N BEACON RX time		ULONG       LastScanTime;       // Record last scan time for issue BSSID_SCAN_LIST	ULONG       ScanCnt;            // Scan counts since most recent SSID, BSSID, SCAN OID request	BOOLEAN

⌨️ 快捷键说明

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