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

📄 hostcmd.h

📁 Windows CE 6.0 BSP for VOIP sample phone. Intel PXA270 platform.
💻 H
📖 第 1 页 / 共 5 页
字号:
typedef struct _HostCmd_DS_802_11_GET_STAT 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	ULONG    	TXFragmentCnt;
     	ULONG    	MCastTXFrameCnt;
     	ULONG    	FailedCnt;
     	ULONG    	RetryCnt;
     	ULONG    	MultipleRetryCnt;
     	ULONG    	RTSSuccessCnt;
     	ULONG    	RTSFailureCnt;
     	ULONG    	ACKFailureCnt;
     	ULONG    	FrameDuplicateCnt;
     	ULONG    	RXFragmentCnt;
     	ULONG    	MCastRXFrameCnt;
     	ULONG    	FCSErrorCnt;
     	ULONG    	BCastTXFrameCnt;
     	ULONG    	BCastRXFrameCnt;
     	ULONG    	TXBeacon;
     	ULONG    	RXBeacon;
     	ULONG    	WEPUndecryptable;
} HostCmd_DS_802_11_GET_STAT, *PHostCmd_DS_802_11_GET_STAT;

typedef enum 
{
     	DesiredBssType_i = 0,
     	OpRateSet_i,
     	BcnPeriod_i,
     	DtimPeriod_i,
     	AssocRspTimeOut_i,
     	RtsThresh_i,
     	ShortRetryLim_i,
     	LongRetryLim_i,
     	FragThresh_i,
     	Dot11D_i,
     	Dot11HTPC_i,
     	ManufId_i,
     	ProdId_i,
     	ManufOui_i,
     	ManufName_i,
     	ManufProdName_i,
    	ManufProdVer_i      
} SNMP_MIB_INDEX_e;

// Define data structure for HostCmd_CMD_802_11_SNMP_MIB
typedef struct _HostCmd_DS_802_11_SNMP_MIB 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	QueryType;
     	USHORT  	OID;
     	USHORT  	BufSize;
     	UCHAR    	Value[128];
} HostCmd_DS_802_11_SNMP_MIB, *PHostCmd_DS_802_11_SNMP_MIB;

// Define data structure for HostCmd_CMD_MAC_REG_MAP
typedef struct _HostCmd_DS_MAC_REG_MAP 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	BufferSize;              // 128 UCHARs
     	UCHAR    	RegMap[128];
     	USHORT  	Reserved;
} HostCmd_DS_MAC_REG_MAP, *PHostCmd_DS_MAC_REG_MAP;

// Define data structure for HostCmd_CMD_BBP_REG_MAP
typedef struct _HostCmd_DS_BBP_REG_MAP 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	BufferSize;              // 128 UCHARs
     	UCHAR    	RegMap[128];
     	USHORT  	Reserved;
} HostCmd_DS_BBP_REG_MAP, *PHostCmd_DS_BBP_REG_MAP;

// Define data structure for HostCmd_CMD_RF_REG_MAP
typedef struct _HostCmd_DS_RF_REG_MAP 
{
     	USHORT  	Command;
     	USHORT 		Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	BufferSize;              // 64 UCHARs
     	UCHAR    	RegMap[64];
     	USHORT  	Reserved;
} HostCmd_DS_RF_REG_MAP, *PHostCmd_DS_RF_REG_MAP;

// Define data structure for HostCmd_CMD_MAC_REG_ACCESS
typedef struct _HostCmd_DS_MAC_REG_ACCESS 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	USHORT  	Offset;
     	ULONG    	Value;
     	USHORT  	Reserved;
} HostCmd_DS_MAC_REG_ACCESS, *PHostCmd_DS_MAC_REG_ACCESS;

// Define data structure for HostCmd_CMD_BBP_REG_ACCESS
typedef struct _HostCmd_DS_BBP_REG_ACCESS 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	USHORT  	Offset;
     	UCHAR    	Value;
     	UCHAR    	Reserverd[3];
} HostCmd_DS_BBP_REG_ACCESS, *PHostCmd_DS_BBP_REG_ACCESS;

// Define data structure for HostCmd_CMD_RF_REG_ACCESS
typedef struct _HostCmd_DS_RF_REG_ACCESS 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	USHORT  	Offset;
     	UCHAR    	Value;
     	UCHAR    	Reserverd[3];
} HostCmd_DS_RF_REG_ACCESS, *PHostCmd_DS_RF_REG_ACCESS;

// Define data structure for HostCmd_CMD_802_11_RADIO_CONTROL
typedef struct _HostCmd_DS_802_11_RADIO_CONTROL 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;                   
     	//dralee_20060613                 
       //UCHAR  Control; // @bit0: 1/0,on/off, @bit1: 1/0, long/short @bit2: 1/0,auto/fix
       //UCHAR  Reserved; 
       USHORT   Control;
} HostCmd_DS_802_11_RADIO_CONTROL, *PHostCmd_DS_802_11_RADIO_CONTROL;

// Define data structure for HostCmd_CMD_802_11_RF_CHANNEL
typedef struct _HostCmd_DS_802_11_RF_CHANNEL 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	USHORT  	CurentChannel;
     	// next 3 fields are present on v3 API document, but marked not used
     	// commented out to avoid misuse
     	/*    
     	USHORT RFType;                  // HostCmd_TYPE_802_11A or HostCmd_TYPE_802_11A 
     	USHORT Reserved;
     	UCHAR ChannelList[MRVDRV_MAX_CHANNEL_NUMBER];
     	*/
} HostCmd_DS_802_11_RF_CHANNEL, *PHostCmd_DS_802_11_RF_CHANNEL;

// Define data structure for HostCmd_CMD_802_11_RSSI
typedef struct _HostCmd_DS_802_11_RSSI 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT    	N;
	USHORT		Reserved_0;
	USHORT		Reserved_1;
	USHORT		Reserved_2;
} HostCmd_DS_802_11_RSSI, *PHostCmd_DS_802_11_RSSI;

typedef struct _HostCmd_DS_802_11_RSSI_RSP 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT    	SNR;
	USHORT		NoiseFloor;
	USHORT		AvgSNR;
	USHORT		AvgNoiseFloor;
} HostCmd_DS_802_11_RSSI_RSP, *PHostCmd_DS_802_11_RSSI_RSP;


// Define data structure for HostCmd_CMD_802_11_RF_TX_POWER
typedef struct _HostCmd_DS_802_11_RF_TX_POWER 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	USHORT  	SupportTxPowerLevel;     // 1..8
     	USHORT  	CurrentTxPowerLevel;     // 1..8
     	USHORT  	Reserved;
     	USHORT  	PowerLevelList[MRVDRV_TX_POWER_LEVEL_TOTAL];
} HostCmd_DS_802_11_RF_TX_POWER, *PHostCmd_DS_802_11_RF_TX_POWER;

// Define data structure for HostCmd_CMD_802_11_RF_ANTENNA
typedef struct _HostCmd_DS_802_11_RF_ANTENNA 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	USHORT  	AntennaMode;             // Number of antennas or 0xffff(diversity)
} HostCmd_DS_802_11_RF_ANTENNA, *PHostCmd_DS_802_11_RF_ANTENNA;

// Define data structure for HostCmd_CMD_802_11_PS_MODE
typedef struct _HostCmd_DS_802_11_PS_MODE 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	SubCommand;  
       USHORT         Reserved1;                  
#ifndef MRV_CHIP_8305
     	USHORT         PSNumDtims;
#endif
       USHORT         Reserved2;                  
       USHORT         LocalListenInterval;    
} HostCmd_DS_802_11_PS_MODE, *PHostCmd_DS_802_11_PS_MODE;

// Define data structure for HostCmd_CMD_802_11_DATA_RATE
typedef struct _HostCmd_DS_802_11_DATA_RATE 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	USHORT  	Reserverd;    
     	UCHAR    	DataRate[NDIS_SUPPORTED_RATES];               // Supported data reate list
} HostCmd_DS_802_11_DATA_RATE, *PHostCmd_DS_802_11_DATA_RATE;

// Define data structure for start Command in Ad Hoc mode  
typedef struct _HostCmd_DS_802_11_AD_HOC_START 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	UCHAR    	SSID[MRVDRV_MAX_SSID_LENGTH];
     	UCHAR    	BSSType;
     	USHORT  	BeaconPeriod;
     	UCHAR    	DTIMPeriod;
     	IEEEtypes_SsParamSet_t     SsParamSet;
     	IEEEtypes_PhyParamSet_t   PhyParamSet;
     	USHORT   	ProbeDelay;
     	IEEEtypes_CapInfo_t  Cap;
     	UCHAR          	BasicDataRates[14];
     	// UCHAR                 OpDataRates[8];
} HostCmd_DS_802_11_AD_HOC_START, *PHostCmd_DS_802_11_AD_HOC_START;

// Define data structure for Join Command in Ad Hoc mode
typedef struct _HostCmd_DS_802_11_AD_HOC_JOIN 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	ADHOC_BSS_DESCRIPTION_SET_ALL_FIELDS  BssDescriptor;
     	USHORT  	FailTimeOut;
     	USHORT  	ProbeDelay;
} HostCmd_DS_802_11_AD_HOC_JOIN, *PHostCmd_DS_802_11_AD_HOC_JOIN;

// Define data structure for HostCmd_CMD_SET_ACTIVE_SCAN_SSID 
typedef struct _HostCmd_DS_SET_ACTIVE_SCAN_SSID 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	NDIS_802_11_SSID  ActiveScanSSID;
} HostCmd_DS_SET_ACTIVE_SCAN_SSID, *PHostCmd_DS_SET_ACTIVE_SCAN_SSID;

// Define data structure for HostCmd_CMD_QOS_WME_ENABLE_STATE 
typedef struct _HostCmd_CMD_QOS_WME_ENABLE_STATE 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;    // ACTION_GET or ACTION_SET
     	USHORT  	Enabled;  // 0 = disabled, 1 = enabled
} HostCmd_CMD_QOS_WME_ENABLE_STATE, *PHostCmd_CMD_QOS_WME_ENABLE_STATE;

// Define data structure for HostCmd_CMD_QOS_WME_ENABLE_STATE 
typedef struct _HostCmd_CMD_QOS_WME_ACCESS_CATEGORY_PARAMETERS 
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;              // ACTION_GET or ACTION_SET
     	ULONG    	AC_BE;              // Best Effort AC parameters
     	ULONG    	AC_BE_XTRA;    // Extra AC_BE parameters
     	ULONG    	AC_BK;             // Background AC parameters
     	ULONG    	AC_BK_XTRA;    // Extra AC_BK parameters
     	ULONG    	AC_VI;              // Video AC parameters
     	ULONG    	AC_VI_XTRA;    // Extra Video AC parameters
     	ULONG    	AC_VO;             // Voice AC parameters
     	ULONG    	AC_VO_XTRA;   // Extra Voice AC parameters
} HostCmd_CMD_QOS_WME_ACCESS_CATEGORY_PARAMETERS,  
*PHostCmd_CMD_QOS_WME_ACCESS_CATEGORY_PARAMETERS;

//Define data structure for CMD_802_11_ENABLE_RSN
typedef struct _HostCmd_DS_802_11_ENABLE_RSN
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	USHORT  	Enable;     
} HostCmd_DS_802_11_ENABLE_RSN, *PHostCmd_DS_802_11_ENABLE_RSN;

typedef struct _HostCmd_DS_802_11_CONFIG_RSN
{
     	USHORT  	Command;
     	USHORT  	Size;
     	USHORT  	SeqNum;
     	USHORT  	Result;
     	USHORT  	Action;
     	UCHAR    	Version;
     	UCHAR    	PairWiseKeysSupported;
     	UCHAR    	MultiCastCipher[4];
     	UCHAR    	GroupKeyMethod;
     	ULONG    	GroupReKeyTime;
     	ULONG    	GroupReKeyPkts;
     	UCHAR    	GroupReKeyStrict;
     	UCHAR    	TsnEnabled;
     	ULONG    	GroupMasterRekeyTime;
     	ULONG    	GroupUpdateTmo;
     	ULONG    	GroupUpdateCnt;
     	ULONG    	PairWiseUpdateTmo;
     	ULONG    	PairWiseUpdateCnt;
}  HostCmd_DS_802_11_CONFIG_RSN, *PHostCmd_DS_802_11_CONFIG_RSN;

typedef struct _HostCmd_DS_802_11_UNICAST_CIPHER
{
     	USHORT   	Command;
     	USHORT   	Size;
     	USHORT   	SeqNum;
     	USHORT   	Result;
     	USHORT   	Action;
     	UCHAR     	UnicastCipher[4];
     	USHORT   	Enabled;     
} HostCmd_DS_802_11_UNICAST_CIPHER, *PHostCmd_DS_802_11_UNICAST_CIPHER;

typedef struct _HostCmd_DS_802_11_MCAST_CIPHER
{
     	USHORT   	Command;
     	USHORT   	Size;
     	USHORT  	SeqNum;
     	USHORT   	Result;
     	USHORT   	Action;
     	UCHAR     	McastCipher[4];
     	USHORT   	Enabled;     
} HostCmd_DS_802_11_MCAST_CIPHER, *PHostCmd_DS_802_11_MCAST_CIPHER;

typedef struct _HostCmd_DS_802_11_RSN_AUTH_SUITES
{
     	USHORT   	Command;
     	USHORT   	Size;
     	USHORT   	SeqNum;
    	USHORT   	Result;
     	USHORT   	Action;
     	UCHAR     	AuthSuites[4];
     	USHORT   	Enabled;     
} HostCmd_DS_802_11_RSN_AUTH_SUITES, *PHostCmd_DS_802_11_RSN_AUTH_SUITES;

typedef struct _HostCmd_DS_802_11_PWK_KEY
{
     	USHORT   	Command;
     	USHORT   	Size;
     	USHORT   	SeqNum;
     	USHORT   	Result;
     	USHORT   	Action;
     	UCHAR     	TkipEncryptKey[16];
     	UCHAR     	TkipTxMicKey[8];
     	UCHAR     	TkipRxMicKey[8];
} HostCmd_DS_802_11_PWK_KEY, *PHostCmd_DS_802_11_PWK_KEY;

/*Def

⌨️ 快捷键说明

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