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

📄 rtmp.h

📁 ralink最新rt3070 usb wifi 无线网卡驱动程序
💻 H
📖 第 1 页 / 共 5 页
字号:
	RTMP_DMACB  Cell[TX_RING_SIZE];	UINT32		TxCpuIdx;		UINT32		TxDmaIdx;   	UINT32		TxSwFreeIdx; 	// software next free tx index} RTMP_TX_RING, *PRTMP_TX_RING;typedef struct _RTMP_RX_RING{	RTMP_DMACB  Cell[RX_RING_SIZE];	UINT32		RxCpuIdx;	UINT32		RxDmaIdx;	INT32		RxSwReadIdx; 	// software next read index} RTMP_RX_RING, *PRTMP_RX_RING;typedef struct _RTMP_MGMT_RING{	RTMP_DMACB  Cell[MGMT_RING_SIZE];	UINT32		TxCpuIdx;	UINT32		TxDmaIdx;	UINT32		TxSwFreeIdx; // software next free tx index} RTMP_MGMT_RING, *PRTMP_MGMT_RING;////  Statistic counter structure//typedef struct _COUNTER_802_3{	// General Stats	ULONG       GoodTransmits;	ULONG       GoodReceives;	ULONG       TxErrors;	ULONG       RxErrors;	ULONG       RxNoBuffer;	// Ethernet Stats	ULONG       RcvAlignmentErrors;	ULONG       OneCollision;	ULONG       MoreCollisions;} COUNTER_802_3, *PCOUNTER_802_3;typedef struct _COUNTER_802_11 {	ULONG           Length;	LARGE_INTEGER   LastTransmittedFragmentCount;	LARGE_INTEGER   TransmittedFragmentCount;	LARGE_INTEGER   MulticastTransmittedFrameCount;	LARGE_INTEGER   FailedCount;	LARGE_INTEGER   RetryCount;	LARGE_INTEGER   MultipleRetryCount;	LARGE_INTEGER   RTSSuccessCount;	LARGE_INTEGER   RTSFailureCount;	LARGE_INTEGER   ACKFailureCount;	LARGE_INTEGER   FrameDuplicateCount;	LARGE_INTEGER   ReceivedFragmentCount;	LARGE_INTEGER   MulticastReceivedFrameCount;	LARGE_INTEGER   FCSErrorCount;} COUNTER_802_11, *PCOUNTER_802_11;typedef struct _COUNTER_RALINK {	ULONG           TransmittedByteCount;   // both successful and failure, used to calculate TX throughput	ULONG           ReceivedByteCount;      // both CRC okay and CRC error, used to calculate RX throughput	ULONG           BeenDisassociatedCount;	ULONG           BadCQIAutoRecoveryCount;	ULONG           PoorCQIRoamingCount;	ULONG           MgmtRingFullCount;	ULONG           RxCountSinceLastNULL;	ULONG           RxCount;	ULONG           RxRingErrCount;	ULONG           KickTxCount;	ULONG           TxRingErrCount;	LARGE_INTEGER   RealFcsErrCount;	ULONG           PendingNdisPacketCount;	ULONG           OneSecOsTxCount[NUM_OF_TX_RING];	ULONG           OneSecDmaDoneCount[NUM_OF_TX_RING];	UINT32          OneSecTxDoneCount;	ULONG           OneSecRxCount;	UINT32          OneSecTxAggregationCount;	UINT32          OneSecRxAggregationCount;	UINT32   		OneSecFrameDuplicateCount;#ifdef RT2870	ULONG           OneSecTransmittedByteCount;   // both successful and failure, used to calculate TX throughput#endif // RT2870 //	UINT32          OneSecTxNoRetryOkCount;	UINT32          OneSecTxRetryOkCount;	UINT32          OneSecTxFailCount;	UINT32          OneSecFalseCCACnt;      // CCA error count, for debug purpose, might move to global counter	UINT32          OneSecRxOkCnt;          // RX without error	UINT32          OneSecRxOkDataCnt;      // unicast-to-me DATA frame count	UINT32          OneSecRxFcsErrCnt;      // CRC error	UINT32          OneSecBeaconSentCnt;	UINT32          LastOneSecTotalTxCount; // OneSecTxNoRetryOkCount + OneSecTxRetryOkCount + OneSecTxFailCount	UINT32          LastOneSecRxOkDataCnt;  // OneSecRxOkDataCnt	ULONG		DuplicateRcv;	ULONG		TxAggCount;	ULONG		TxNonAggCount;	ULONG		TxAgg1MPDUCount;	ULONG		TxAgg2MPDUCount;	ULONG		TxAgg3MPDUCount;	ULONG		TxAgg4MPDUCount;	ULONG		TxAgg5MPDUCount;	ULONG		TxAgg6MPDUCount;	ULONG		TxAgg7MPDUCount;	ULONG		TxAgg8MPDUCount;	ULONG		TxAgg9MPDUCount;	ULONG		TxAgg10MPDUCount;	ULONG		TxAgg11MPDUCount;	ULONG		TxAgg12MPDUCount;	ULONG		TxAgg13MPDUCount;	ULONG		TxAgg14MPDUCount;	ULONG		TxAgg15MPDUCount;	ULONG		TxAgg16MPDUCount;	LARGE_INTEGER       TransmittedOctetsInAMSDU; 	LARGE_INTEGER       TransmittedAMSDUCount; 	LARGE_INTEGER       ReceivedOctesInAMSDUCount; 	LARGE_INTEGER       ReceivedAMSDUCount; 	LARGE_INTEGER       TransmittedAMPDUCount;	LARGE_INTEGER       TransmittedMPDUsInAMPDUCount;	LARGE_INTEGER       TransmittedOctetsInAMPDUCount; 			LARGE_INTEGER       MPDUInReceivedAMPDUCount;} COUNTER_RALINK, *PCOUNTER_RALINK;typedef struct _PID_COUNTER {	ULONG           TxAckRequiredCount;      // CRC error	ULONG           TxAggreCount;	ULONG           TxSuccessCount; // OneSecTxNoRetryOkCount + OneSecTxRetryOkCount + OneSecTxFailCount	ULONG		LastSuccessRate;} PID_COUNTER, *PPID_COUNTER;typedef struct _COUNTER_DRS {	// to record the each TX rate's quality. 0 is best, the bigger the worse.	USHORT          TxQuality[MAX_STEP_OF_TX_RATE_SWITCH];	UCHAR           PER[MAX_STEP_OF_TX_RATE_SWITCH];	UCHAR           TxRateUpPenalty;      // extra # of second penalty due to last unstable condition	ULONG           CurrTxRateStableTime; // # of second in current TX rate	BOOLEAN         fNoisyEnvironment;	BOOLEAN         fLastSecAccordingRSSI;	UCHAR           LastSecTxRateChangeAction; // 0: no change, 1:rate UP, 2:rate down	UCHAR			LastTimeTxRateChangeAction; //Keep last time value of LastSecTxRateChangeAction	ULONG			LastTxOkCount;} COUNTER_DRS, *PCOUNTER_DRS;////  Arcfour Structure Added by PaulWu//typedef struct  _ARCFOUR{	UINT            X;	UINT            Y;	UCHAR           STATE[256];} ARCFOURCONTEXT, *PARCFOURCONTEXT;// MIMO Tx parameter, ShortGI, MCS, STBC, etc.  these are fields in TXWI too. just copy to TXWI.typedef struct  _RECEIVE_SETTING {#ifdef RT_BIG_ENDIAN	USHORT		MIMO:1;	USHORT		OFDM:1;	USHORT		rsv:3;		USHORT		STBC:2;	//SPACE 	USHORT		ShortGI:1;	USHORT		Mode:2;	//channel bandwidth 20MHz or 40 MHz	USHORT   	NumOfRX:2;                 // MIMO. WE HAVE 3R #else	USHORT   	NumOfRX:2;                 // MIMO. WE HAVE 3R 	USHORT		Mode:2;	//channel bandwidth 20MHz or 40 MHz	USHORT		ShortGI:1;	USHORT		STBC:2;	//SPACE 	USHORT		rsv:3;	 	USHORT		OFDM:1;	USHORT		MIMO:1;#endif } RECEIVE_SETTING, *PRECEIVE_SETTING;// Shared key data structuretypedef struct  _WEP_KEY {	UCHAR   KeyLen;                     // Key length for each key, 0: entry is invalid	UCHAR   Key[MAX_LEN_OF_KEY];        // right now we implement 4 keys, 128 bits max} WEP_KEY, *PWEP_KEY;typedef struct _CIPHER_KEY {	UCHAR   Key[16];            // right now we implement 4 keys, 128 bits max	UCHAR   RxMic[8];			// make alignment 	UCHAR   TxMic[8];	UCHAR   TxTsc[6];           // 48bit TSC value	UCHAR   RxTsc[6];           // 48bit TSC value	UCHAR   CipherAlg;          // 0-none, 1:WEP64, 2:WEP128, 3:TKIP, 4:AES, 5:CKIP64, 6:CKIP128	UCHAR   KeyLen; #ifdef CONFIG_STA_SUPPORT	UCHAR   BssId[6];#endif // CONFIG_STA_SUPPORT //            // Key length for each key, 0: entry is invalid	UCHAR   Type;               // Indicate Pairwise/Group when reporting MIC error} CIPHER_KEY, *PCIPHER_KEY;typedef struct _BBP_TUNING_STRUCT {	BOOLEAN     Enable;	UCHAR       FalseCcaCountUpperBound;  // 100 per sec	UCHAR       FalseCcaCountLowerBound;  // 10 per sec	UCHAR       R17LowerBound;            // specified in E2PROM	UCHAR       R17UpperBound;            // 0x68 according to David Tung	UCHAR       CurrentR17Value;} BBP_TUNING, *PBBP_TUNING;typedef struct _SOFT_RX_ANT_DIVERSITY_STRUCT {	UCHAR     EvaluatePeriod;		 // 0:not evalute status, 1: evaluate status, 2: switching status	UCHAR     EvaluateStableCnt;	UCHAR     Pair1PrimaryRxAnt;     // 0:Ant-E1, 1:Ant-E2	UCHAR     Pair1SecondaryRxAnt;   // 0:Ant-E1, 1:Ant-E2	UCHAR     Pair2PrimaryRxAnt;     // 0:Ant-E3, 1:Ant-E4	UCHAR     Pair2SecondaryRxAnt;   // 0:Ant-E3, 1:Ant-E4	SHORT     Pair1AvgRssi[2];       // AvgRssi[0]:E1, AvgRssi[1]:E2	SHORT     Pair2AvgRssi[2];       // AvgRssi[0]:E3, AvgRssi[1]:E4	SHORT     Pair1LastAvgRssi;      // 	SHORT     Pair2LastAvgRssi;      // 	ULONG     RcvPktNumWhenEvaluate;	BOOLEAN   FirstPktArrivedWhenEvaluate;	RALINK_TIMER_STRUCT    RxAntDiversityTimer;} SOFT_RX_ANT_DIVERSITY, *PSOFT_RX_ANT_DIVERSITY;typedef struct _LEAP_AUTH_INFO {	BOOLEAN         Enabled;        //Ture: Enable LEAP Authentication	BOOLEAN         CCKM;           //Ture: Use Fast Reauthentication with CCKM	UCHAR           Reserve[2];	UCHAR           UserName[256];  //LEAP, User name	ULONG           UserNameLen;	UCHAR           Password[256];  //LEAP, User Password	ULONG           PasswordLen;} LEAP_AUTH_INFO, *PLEAP_AUTH_INFO;typedef struct {	UCHAR        Addr[MAC_ADDR_LEN];	UCHAR        ErrorCode[2];  //00 01-Invalid authentication type								//00 02-Authentication timeout								//00 03-Challenge from AP failed								//00 04-Challenge to AP failed	BOOLEAN      Reported;} ROGUEAP_ENTRY, *PROGUEAP_ENTRY;typedef struct {	UCHAR               RogueApNr;	ROGUEAP_ENTRY       RogueApEntry[MAX_LEN_OF_BSS_TABLE];} ROGUEAP_TABLE, *PROGUEAP_TABLE;typedef struct {	BOOLEAN     Enable;	UCHAR       Delta;	BOOLEAN     PlusSign;} CCK_TX_POWER_CALIBRATE, *PCCK_TX_POWER_CALIBRATE;//// Receive Tuple Cache Format//typedef struct  _TUPLE_CACHE    {	BOOLEAN         Valid;	UCHAR           MacAddress[MAC_ADDR_LEN];	USHORT          Sequence; 	USHORT          Frag;} TUPLE_CACHE, *PTUPLE_CACHE;//// Fragment Frame structure//typedef struct  _FRAGMENT_FRAME {	PNDIS_PACKET    pFragPacket;	ULONG       RxSize;	USHORT      Sequence;	USHORT      LastFrag;	ULONG       Flags;          // Some extra frame information. bit 0: LLC presented} FRAGMENT_FRAME, *PFRAGMENT_FRAME;//// Packet information for NdisQueryPacket//typedef struct  _PACKET_INFO    {	UINT            PhysicalBufferCount;    // Physical breaks of buffer descripor chained	UINT            BufferCount ;           // Number of Buffer descriptor chained	UINT            TotalPacketLength ;     // Self explained	PNDIS_BUFFER    pFirstBuffer;           // Pointer to first buffer descriptor} PACKET_INFO, *PPACKET_INFO;//// Tkip Key structure which RC4 key & MIC calculation//typedef struct  _TKIP_KEY_INFO  {	UINT        nBytesInM;  // # bytes in M for MICKEY	ULONG       IV16;	ULONG       IV32;   	ULONG       K0;         // for MICKEY Low	ULONG       K1;         // for MICKEY Hig	ULONG       L;          // Current state for MICKEY	ULONG       R;          // Current state for MICKEY	ULONG       M;          // Message accumulator for MICKEY	UCHAR       RC4KEY[16];	UCHAR       MIC[8];} TKIP_KEY_INFO, *PTKIP_KEY_INFO;//// Private / Misc data, counters for driver internal use//typedef struct  __PRIVATE_STRUC {	UINT       SystemResetCnt;         // System reset counter	UINT       TxRingFullCnt;          // Tx ring full occurrance number	UINT       PhyRxErrCnt;            // PHY Rx error count, for debug purpose, might move to global counter	// Variables for WEP encryption / decryption in rtmp_wep.c	UINT       FCSCRC32;	ARCFOURCONTEXT  WEPCONTEXT;	// Tkip stuff	TKIP_KEY_INFO   Tx;	TKIP_KEY_INFO   Rx;} PRIVATE_STRUC, *PPRIVATE_STRUC;// structure to tune BBP R66 (BBP TUNING)typedef struct _BBP_R66_TUNING {	BOOLEAN     bEnable;	USHORT      FalseCcaLowerThreshold;  // default 100	USHORT      FalseCcaUpperThreshold;  // default 512	UCHAR       R66Delta;	UCHAR       R66CurrentValue;	BOOLEAN		R66LowerUpperSelect; //Before LinkUp, Used LowerBound or UpperBound as R66 value.} BBP_R66_TUNING, *PBBP_R66_TUNING;// structure to store channel TX powertypedef struct _CHANNEL_TX_POWER {	USHORT     RemainingTimeForUse;		//unit: sec	UCHAR      Channel;#ifdef DOT11N_DRAFT3	BOOLEAN       bEffectedChannel;	// For BW 40 operating in 2.4GHz , the "effected channel" is the channel that is covered in 40Mhz.#endif // DOT11N_DRAFT3 //	CHAR       Power;	CHAR       Power2;	UCHAR      MaxTxPwr;	UCHAR      DfsReq;} CHANNEL_TX_POWER, *PCHANNEL_TX_POWER;// structure to store 802.11j channel TX powertypedef struct _CHANNEL_11J_TX_POWER {	UCHAR      Channel;	UCHAR      BW;	// BW_10 or BW_20	CHAR       Power;	CHAR       Power2;	USHORT     RemainingTimeForUse;		//unit: sec} CHANNEL_11J_TX_POWER, *PCHANNEL_11J_TX_POWER;typedef enum _ABGBAND_STATE_ {	UNKNOWN_BAND,	BG_BAND,	A_BAND,

⌨️ 快捷键说明

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