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

📄 frame.h

📁 atmel芯片的Linux驱动程序。很多802.11协议的无限网卡都使用该芯片
💻 H
📖 第 1 页 / 共 2 页
字号:
} s80211_PSPoll;//	CF-End (Contention Free-End) Frame Formattypedef struct _s80211_CFEnd {	UCHAR	FrameControl[2];	USHORT	DurationID;	// Set to 0	UCHAR	RA[6];	UCHAR	BSSID[6];		// The MAC Address of the AP-STA	ULONG	FCS;} s80211_CFEnd;//	CF-End + CF-Ack Frame Formattypedef struct _s80211_CFEndCFAck {	UCHAR	FrameControl[2];	USHORT	DurationID;	// Set to 0	UCHAR	RA[6];	UCHAR	BSSID[6];		// The MAC Address of the AP-STA	ULONG	FCS;} s80211_CFEndCFAck;///////////////////////////////////////////////////////////////////////////////	802.11 Management Frame formats//// Information Elements (used below)typedef struct _sElementFormat {	UCHAR ElementID;	UCHAR Length;	UCHAR Information[256];	// a pointer because it is a variable length field} sElementFormat;typedef struct _sFHParameterSet {	UCHAR	ElementID;	UCHAR	Length;	USHORT	DwellTime;		// Kms	UCHAR	HopSet;	UCHAR	HopPattern;	UCHAR	HopIndex;} sFHParameterSet;typedef struct _sDSParameterSet {	UCHAR	ElementID;	UCHAR	Length;	UCHAR	CurrentChannel;} sDSParameterSet;typedef struct _sCFParameterSet {	UCHAR	ElementID;	UCHAR	Length;	UCHAR	Count;	UCHAR	Period;	USHORT	MaxDuration;	// Kms	USHORT	DurRemaining;	// Kms} sCFParameterSet;typedef struct _sTIM {	UCHAR	ElementID;	UCHAR	Length;	UCHAR	Count;	UCHAR	Period;	UCHAR	BitmapControl;	UCHAR*	PartialVirtualBitmap;} sTIM;typedef struct _sIBSSParameterSet {	UCHAR	ElementID;	UCHAR	Length;	USHORT	ATIMWindowLength;	// Kms} sIBSSParameterSet;//	General Management Frame Formattypedef struct _s80211_MgmtFrm {	UCHAR	FrameControl[2];	USHORT	DurationID;//	during the Contention Free period Set to 32768//	During the Contention period://		if DA is multicast set to 0//		if DA is unicast://			if MORE_FRAG bit is 0 set to ACK + SIFS (msec)//			else set to DurationOfNextFrag + 2*ACK + 3*SIFS (msec)//	All stations process DurationID<32768 to update NAV according to CF rules.	UCHAR	uDA[6];	UCHAR	uSA[6];	UCHAR	uBSSID[6];	USHORT	SequenceControl;	UCHAR	Body[1508];	ULONG	FCS;} s80211_MgmtFrm;//	Beacon Frame Bodytypedef struct _s80211_MGMT_BEACON {	UCHAR				Timestamp[8];		// TSFTIMER	USHORT				BeaconInterval;		// Kms between TBTTs (Target Beacon Transmission Times)	USHORT				CapabilityInformation;	sElementFormat		SSID;				// Service Set Identity	sElementFormat		SupportedRates;	sFHParameterSet		FHParameterSet;		// only present by STA using Frequency Hopping Physical Layers	sDSParameterSet		DSParameterSet;		// only present by STA using Direct Sequence Physical Layers	sCFParameterSet		CFParameterSet;		// only present by AP supporting PCF	sIBSSParameterSet	IBSSParameterSet;	// only present by STA in IBSS	sTIM				TIM;				// only present by APs} s80211_MGMT_BEACON;//	IBSS ATIM (Announcement Traffic Indication Message) Frame Body//typedef struct _s80211_MGMT_ATIM {//	// Null Body//} s80211_MGMT_ATIM;//	Disassociation Frame Bodytypedef struct _s80211_MgmtBody_DeAss {	USHORT ReasonCode;} s80211_MgmtBody_DeAss;//	Association Request Frame Bodytypedef struct _s80211_MgmtBody_AssRqst {	USHORT	CapabilityInformation;	USHORT	ListenInterval;		// MIB's aListenInterval in Kms//	Used by AP to determine the lifetime of frames it buffers for a STA	sElementFormat SSID;		// Service Set Identity	sElementFormat SupportedRates;} s80211_MgmtBody_AssRqst;//	Association Response Frame Bodytypedef struct _s80211_MgmtBody_AssRspns {	USHORT CapabilityInformation;	USHORT StatusCode;	USHORT AssociationID;		// 1-2007, b15-16 set to 1, 0 used to announce multicast frames in ATIM	sElementFormat SupportedRates;} s80211_MgmtBody_AssRspns;//	Reassociation Request Frame Bodytypedef struct _s80211_MGMT_REASS_REQUEST {	USHORT CapabilityInformation;	USHORT ListenInterval;		// MIB's aListenInterval in Kms//	Used by AP to determine the lifetime of frames it buffers for a STA	UCHAR CurrentAPAddress[6];	sElementFormat SSID;	// Service Set Identity	sElementFormat SupportedRates;} s80211_MGMT_REASS_REQUEST;//	Reassociation Response Frame Bodytypedef struct _s80211_MGMT_REASS_RESPONSE {	USHORT CapabilityInformation;	USHORT StatusCode;	USHORT AssociationID;		// 1-2007, b15-16 set to 1, 0 used to announce multicast frames in ATIM	sElementFormat SupportedRates;} s80211_MGMT_REASS_RESPONSE;//	Probe Request Frame Bodytypedef struct _s80211_MGMT_PRB_REQUEST {	sElementFormat SSID;	// Service Set Identity	sElementFormat SupportedRates;} s80211_MGMT_PRB_REQUEST;//	Probe Response Frame Bodytypedef struct _s80211_MGMT_PRB_RESPONSE {	UCHAR	Timestamp[8];		// TSFTIMER	USHORT	BeaconInterval;	// Kms between TBTTs (Target Beacon Transmission Times)	USHORT	CapabilityInformation;	sElementFormat SSID;	// Service Set Identity	sElementFormat SupportedRates;	sFHParameterSet FHParameterSet;		// only present by STA using Frequency Hopping Physical Layers	sDSParameterSet DSParameterSet;		// only present by STA using Direct Sequence Physical Layers	sCFParameterSet CFParameterSet;		// only present by AP supporting PCF	sIBSSParameterSet IBSSParameterSet;	// only present by STA in IBSS} s80211_MGMT_PRB_RESPONSE;//	Authentication Frame Bodytypedef struct _s80211_MgmtBody_Authentication {	USHORT AuthenticationAlgorithmNumber;#define C80211_MGMT_AAN_OPENSYSTEM		0x0000#define C80211_MGMT_AAN_SHAREDKEY		0x0001	USHORT AuthenticationTransactionSequenceNumber;	USHORT StatusCode;				// see 802.11 p.57	sElementFormat ChallengeText;	// see 802.11 p.57} s80211_MgmtBody_Authentication;//	Deauthentication Frame Bodytypedef struct _s80211_MGMTBody_DEAUTHENTICATION {	USHORT ReasonCode;} s80211_MGMTBody_DEAUTHENTICATION;//	Authentication Algorithm Number constants#define C80211_MGMT_AAN_OpenSystem				0x0000#define C80211_MGMT_AAN_SharedKey				0x0001//	CapabilityInformation constants#define C80211_MGMT_CAPABILITY_ESS				0x0001	// see 802.11 p.58#define C80211_MGMT_CAPABILITY_IBSS				0x0002	//      - " -#define C80211_MGMT_CAPABILITY_CFPollable		0x0004	//      - " -#define C80211_MGMT_CAPABILITY_CFPollRequest	0x0008	//      - " -#define C80211_MGMT_CAPABILITY_Privacy			0x0010	//      - " -#define C80211_MGMT_CAPABILITY_ShortPreamble	0x0020//	ReasonCode constant, see 802.11 p.60#define C80211_MGMT_RC_Unspecified						1#define C80211_MGMT_RC_AuthPrevNoValid					2#define C80211_MGMT_RC_DeAuthLeaving					3#define C80211_MGMT_RC_DisassInactivity					4#define C80211_MGMT_RC_DisassAPHandle					5#define C80211_MGMT_RC_AuthClass2Frm					6#define C80211_MGMT_RC_AssClass3Frm						7#define C80211_MGMT_RC_DisassLeaving					8#define C80211_MGMT_RC_AssNotAuth						9////	ReasonCode constant, see 802.11i #define C80211_MGMT_RC_InvalidInformationElement		13#define C80211_MGMT_RC_MicFailure						14#define C80211_MGMT_RC_4WayHandsakeTimeOut				15#define C80211_MGMT_RC_GroupKeyUpdateTimeOut			16#define C80211_MGMT_RC_MismatchInformationElement		17 //Information element in 4-way handshake different from (Re-)associate request/Probe response/Beacon#define C80211_MGMT_RC_InvalidMulticastCipher			18#define C80211_MGMT_RC_InvalidUnicastCipher				19#define C80211_MGMT_RC_InvalidAKMP						20#define C80211_MGMT_RC_UnsupportedWPAVersion			21#define C80211_MGMT_RC_InvalidWPACapabilities			22#define C80211_MGMT_RC_8021xAuthenticationFailed		23//	StatusCode constants, see 802.11 p.62#define C80211_MGMT_SC_Success				0#define C80211_MGMT_SC_Unspecified			1#define C80211_MGMT_SC_SupportCapabilities	10#define C80211_MGMT_SC_ReassDenied			11#define C80211_MGMT_SC_AssDenied			12#define C80211_MGMT_SC_AuthAlgNotSupported	13#define C80211_MGMT_SC_AuthTransSeqNumError	14#define C80211_MGMT_SC_AuthRejectChallenge	15#define C80211_MGMT_SC_AuthRejectTimeout	16#define C80211_MGMT_SC_AssDeniedHandleAP	17#define C80211_MGMT_SC_AssDeniedBSSRate		18//	sElementFormat ElementID#define C80211_MGMT_ElementID_SSID				0//	Length 0-32, 0 indicates the broadcast SSID#define C80211_MGMT_ElementID_SupportedRates	1//	Length 1-8, used by STAs to avoid association#define C80211_MGMT_ElementID_FHParameterSet	2//	Length 5#define C80211_MGMT_ElementID_DSParameterSet	3#define C80211_MGMT_ElementID_CFParameterSet	4#define C80211_MGMT_ElementID_TIM				5#define C80211_MGMT_ElementID_IBSSParameterSet	6#define C80211_MGMT_ElementID_ChallengeText		16#define C80211_MGMT_ElementID_WPA				221 //0xDD#define C80211_MGMT_ElementID_CCX			0x85#define C80211_MGMT_ElementID_IP			0x95#endif

⌨️ 快捷键说明

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