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

📄 hostcmd.h

📁 Windows CE 6.0 BSP for VOIP sample phone. Intel PXA270 platform.
💻 H
📖 第 1 页 / 共 5 页
字号:
#define HostCmd_Assoc_RESULT_TIMEOUT                        0x0002
#define HostCmd_Assoc_RESULT_REFUSED                        0x0003 
#define HostCmd_Assoc_RESULT_AUTH_REFUSED             0x0004 


#define HostCmd_CAPINFO_ESS                     		0x0001
#define HostCmd_CAPINFO_IBSS                    		0x0002
#define HostCmd_CAPINFO_CF_POLLABLE             	0x0004
#define HostCmd_CAPINFO_CF_REQUEST              	0x0008
#define HostCmd_CAPINFO_PRIVACY                 	0x0010
#define HostCmd_CAPINFO_SHORT_PREAMBLE         0x0020
#define HostCmd_CAPINFO_SHORT_SLOT_TIME        0x0400

#define HostCmd_ACT_ADD                         		0x0002
#define HostCmd_ACT_REMOVE                      		0x0004
#define HostCmd_ACT_USE_DEFAULT                 	0x0008

#define HostCmd_TYPE_WEP_40_BIT                 	0x0001 // 40 bit
#define HostCmd_TYPE_WEP_104_BIT                	0x0002 // 104 bit
#define HostCmd_TYPE_WEP_128_BIT                	0x0003 // 128 bit
#define HostCmd_TYPE_WEP_TX_KEY                 	0x0004 // TX WEP

#define HostCmd_NUM_OF_WEP_KEYS                 	4

#define HostCmd_WEP_KEY_INDEX_MASK              	0x3fffffff


// Define action or option for HostCmd_CMD_802_11_RESET
#define HostCmd_ACT_NOT_REVERT_MIB              	0x0001
#define HostCmd_ACT_REVERT_MIB                  	0x0002
#define HostCmd_ACT_HALT                        		0x0003

// Define action or option for HostCmd_CMD_802_11_SCAN
#define HostCmd_BSS_TYPE_BSS                    		0x0001
#define HostCmd_BSS_TYPE_IBSS                   		0x0002
#define HostCmd_BSS_TYPE_ANY                    		0x0003

// Define action or option for HostCmd_CMD_802_11_SCAN
#define HostCmd_SCAN_TYPE_ACTIVE                	0x0000
#define HostCmd_SCAN_TYPE_PASSIVE               	0x0001

#ifdef MRV_CHIP_8385H
#define HostCmd_SCAN_MIN_CH_TIME                	60 
#define HostCmd_SCAN_MAX_CH_TIME                	60 
#else
#define HostCmd_SCAN_MIN_CH_TIME                	100
#define HostCmd_SCAN_MAX_CH_TIME                	100
#endif

#define HostCmd_SCAN_PROBE_DELAY_TIME           0

// Define action or option for HostCmd_CMD_802_11_QUERY_STATUS
#define HostCmd_STATUS_FW_INIT                  			0x0000
#define HostCmd_STATUS_FW_IDLE                  			0x0001
#define HostCmd_STATUS_FW_WORKING               		0x0002
#define HostCmd_STATUS_FW_ERROR                 		0x0003
#define HostCmd_STATUS_FW_POWER_SAVE           		0x0004

#define HostCmd_STATUS_MAC_RX_ON                		0x0001
#define HostCmd_STATUS_MAC_TX_ON                		0x0002
#define HostCmd_STATUS_MAC_LOOP_BACK_ON     		0x0004
#define HostCmd_STATUS_MAC_WEP_ENABLE          		0x0008
#define HostCmd_STATUS_MAC_INT_ENABLE           		0x0010

// Define action or option for HostCmd_CMD_MAC_CONTROL 
#define HostCmd_ACT_MAC_RX_ON                   			0x0001
#define HostCmd_ACT_MAC_TX_ON                   			0x0002
#define HostCmd_ACT_MAC_LOOPBACK_ON            		0x0004
#define HostCmd_ACT_MAC_WEP_ENABLE              		0x0008
#define HostCmd_ACT_MAC_INT_ENABLE              		0x0010
#define HostCmd_ACT_MAC_MULTICAST_ENABLE      		0x0020
#define HostCmd_ACT_MAC_BROADCAST_ENABLE      	0x0040
#define HostCmd_ACT_MAC_PROMISCUOUS_ENABLE  	0x0080
#define HostCmd_ACT_MAC_ALL_MULTICAST_ENABLE    	0x0100
#ifdef WPA2
#define HostCmd_ACT_MAC_STRICT_PROTECTION_ENABLE  	0x0400
#endif
//BugFix
#define HostCmd_ACT_MAC_WEP_TYPE     	            			0x8000
// Define action or option or constant for HostCmd_CMD_MAC_MULTICAST_ADR
#define HostCmd_SIZE_MAC_ADR                    		6
#define HostCmd_MAX_MCAST_ADRS                  		32

// Define action or option for HostCmd_CMD_802_11_SNMP_MIB 
#define HostCmd_TYPE_MIB_FLD_BOOLEAN            	0x0001 // Boolean
#define HostCmd_TYPE_MIB_FLD_INTEGER            	0x0002 // 32 UCHAR unsigned integer
#define HostCmd_TYPE_MIB_FLD_COUNTER            	0x0003 // Counter
#define HostCmd_TYPE_MIB_FLD_OCT_STR            	0x0004 // Octet string
#define HostCmd_TYPE_MIB_FLD_DISPLAY_STR       	0x0005 // String
#define HostCmd_TYPE_MIB_FLD_MAC_ADR            	0x0006 // MAC address
#define HostCmd_TYPE_MIB_FLD_IP_ADR             	0x0007 // IP address
#define HostCmd_TYPE_MIB_FLD_WEP                	0x0008 // WEP


// Define action or option for HostCmd_CMD_802_11_RADIO_CONTROL 

//#ifdef MRVL_SET_RF_RADIO
#define HostCmd_TYPE_AUTO_PREAMBLE              	(0x0002 << 1)
#define HostCmd_TYPE_SHORT_PREAMBLE             	(0x0001 << 1)
#define HostCmd_TYPE_LONG_PREAMBLE              	(0x0000 << 1)
//#else
//#define HostCmd_TYPE_AUTO_PREAMBLE              0x0001
//#define HostCmd_TYPE_SHORT_PREAMBLE            0x0002
//#define HostCmd_TYPE_LONG_PREAMBLE              0x0003
//#endif
#define TURN_ON_RF                              			0x01

// Specific for CF
#define SET_AUTO_PREAMBLE                       		0x05
#define SET_SHORT_PREAMBLE                      		0x03
#define SET_LONG_PREAMBLE                       		0x01

// Define action or option for CMD_802_11_RF_CHANNEL
#define HostCmd_TYPE_802_11A                    		0x0001
#define HostCmd_TYPE_802_11B                    		0x0002

// Define action or option for HostCmd_CMD_802_11_RF_TX_POWER
#define HostCmd_ACT_TX_POWER_OPT_GET            	0x0000
#define HostCmd_ACT_TX_POWER_OPT_SET            	0x0001
#define HostCmd_ACT_TX_POWER_OPT_SET_HIGH       	0x8007
#define HostCmd_ACT_TX_POWER_OPT_SET_MID        	0x8004
#define HostCmd_ACT_TX_POWER_OPT_SET_LOW        	0x8000
#define HostCmd_ACT_TX_POWER_OPT_SET_TPC     	0x8fff // Auto Power

#define HostCmd_ACT_TX_POWER_INDEX_TPC          	0xffff

#define HostCmd_ACT_TX_POWER_INDEX_HIGH         	0x0007
#define HostCmd_ACT_TX_POWER_INDEX_MID          	0x0004
#define HostCmd_ACT_TX_POWER_INDEX_LOW          	0x0000

#define HostCmd_ACT_TX_POWER_LEVEL_MIN          	0x000e // in dbm
#define HostCmd_ACT_TX_POWER_LEVEL_GAP          	0x0001 // in dbm

// Define action or option for HostCmd_CMD_802_11_DATA_RATE 
#define HostCmd_ACT_SET_TX_AUTO                 	0x0000
#define HostCmd_ACT_SET_TX_FIX_RATE             	0x0001
#define HostCmd_ACT_GET_TX_RATE                 	0x0002

#define HostCmd_ACT_SET_RX                      		0x0001
#define HostCmd_ACT_SET_TX                      		0x0002
#define HostCmd_ACT_SET_BOTH                    		0x0003
#define HostCmd_ACT_GET_RX                      		0x0004
#define HostCmd_ACT_GET_TX                      		0x0008
#define HostCmd_ACT_GET_BOTH                    	0x000c

// TODO: Need to verify these values
// command option for QOS commands
#define HostCmd_ACT_SET                         		0x0001
#define HostCmd_ACT_GET                         		0x0000
#define HostCmd_ENABLE_RSN                      		0x0001
#define HostCmd_DISABLE_RSN                     		0x0000

#ifdef ADHOCAES
#define HostCmd_ACT_GET_AES					0x0002
#define HostCmd_ACT_SET_AES					0x0003
#define HostCmd_ACT_REMOVE_AES				0x0004
#endif


#define TYPE_ANTENNA_DIVERSITY                  	0xffff

// Define action or option for HostCmd_CMD_802_11_PS_MODE 
#define HostCmd_TYPE_CAM                        		0x0000
#define HostCmd_TYPE_MAX_PSP                    		0x0001
#define HostCmd_TYPE_FAST_PSP                   		0x0002

#define HostCmd_SubCmd_Enter_PS                 	0x0030
#define HostCmd_SubCmd_Exit_PS                  		0x0031
#define HostCmd_SubCmd_TxPend_PS                	0x0032
#define HostCmd_SubCmd_ChangeSet_PS             	0x0033
#define HostCmd_SubCmd_Sleep_Confirmed          	0x0034
#define HostCmd_SubCmd_Full_PowerDown           	0x0035
#define HostCmd_SubCmd_Full_PowerUp             	0x0036

// notify FW that there's no pending TX pkt
#define HostCmd_SubCmd_No_Tx_Pkt                	0x0037  

// action for CMD_EEPROM_ACCESS
#define HostCmd_ACT_READ                        		0x0000
#define HostCmd_ACT_WRITE                       		0x0001
#ifdef TLV_SCAN
#define HostCmd_SCAN_RADIO_TYPE_BG			0
#define HostCmd_SCAN_RADIO_TYPE_A			1
#define HostCmd_SCAN_PASSIVE_MAX_CH_TIME   	100

#define TLV_TYPE_SSID                          			0x0000
#define TLV_TYPE_RATES                         			0x0001
#define TLV_TYPE_PHY_FH			       		0x0002
#define TLV_TYPE_PHY_DS			       		0x0003
#define TLV_TYPE_CF			       			0x0004
#define TLV_TYPE_IBSS			       		0x0006
#endif

#ifdef ENABLE_802_11D
#define TLV_TYPE_DOMAIN                        		0x0007
#endif

#ifdef ENABLE_802_11H_TPC
#define TLV_TYPE_POWER_CONSTRAINT              	0x0020
#endif
#define TLV_TYPE_POWER_CAPABILITY              	0x0021



#define PROPRIETARY_TLV_BASE_ID		0x0100
#define TLV_TYPE_KEY_MATERIAL       (PROPRIETARY_TLV_BASE_ID + 0)
#define TLV_TYPE_CHANLIST           (PROPRIETARY_TLV_BASE_ID + 1)
#define TLV_TYPE_NUMPROBES          (PROPRIETARY_TLV_BASE_ID + 2)
#define TLV_TYPE_RSSI_LOW           (PROPRIETARY_TLV_BASE_ID + 4)
#define TLV_TYPE_SNR_LOW            (PROPRIETARY_TLV_BASE_ID + 5)
#define TLV_TYPE_FAILCOUNT          (PROPRIETARY_TLV_BASE_ID + 6)
#define TLV_TYPE_BCNMISS            (PROPRIETARY_TLV_BASE_ID + 7)
#define TLV_TYPE_LED_GPIO           (PROPRIETARY_TLV_BASE_ID + 8)
#define TLV_TYPE_LEDBEHAVIOR        (PROPRIETARY_TLV_BASE_ID + 9)
#define TLV_TYPE_PASSTHROUGH        (PROPRIETARY_TLV_BASE_ID + 10)
#define TLV_TYPE_REASSOCAP          (PROPRIETARY_TLV_BASE_ID + 11)
#define TLV_TYPE_POWER_TBL_2_4GHZ   (PROPRIETARY_TLV_BASE_ID + 12)
#define TLV_TYPE_POWER_TBL_5GHZ     (PROPRIETARY_TLV_BASE_ID + 13)
#define TLV_TYPE_BCASTPROBE	    (PROPRIETARY_TLV_BASE_ID + 14)
#define TLV_TYPE_NUMSSID_PROBE	    (PROPRIETARY_TLV_BASE_ID + 15)
#define TLV_TYPE_WMMQSTATUS   	    (PROPRIETARY_TLV_BASE_ID + 16)
#define TLV_TYPE_CRYPTO_DATA	    (PROPRIETARY_TLV_BASE_ID + 17)
#define TLV_TYPE_WILDCARDSSID	    (PROPRIETARY_TLV_BASE_ID + 18)
#define TLV_TYPE_TSFTIMESTAMP	    (PROPRIETARY_TLV_BASE_ID + 19)
#define TLV_TYPE_RSSI_HIGH          (PROPRIETARY_TLV_BASE_ID + 22)
#define TLV_TYPE_SNR_HIGH           (PROPRIETARY_TLV_BASE_ID + 23)

// plus ++
#define  RSN_IE_AES           0x01
#define  RSN_IE_TKIP          0x02
#define  AUTH_SSN             0x04
#define  AUTH_SSN_PSK         0x08
#define  UNI_CIPHER_OFFSET    12
// plus --

//////////////////////////////////////////////////////////////////
//
//	IEEE scan.confirm data structure borrowed from station FW code
//  Reference: IEEE 802.11 1999 Spec 10.3.2.2.2
//
//////////////////////////////////////////////////////////////////

#ifdef UNDER_CE_XSCALE
#pragma pack(1)
#endif // UNDER_CE_XSCALE

// In station FW code, enum type is 1 byte UCHAR, 
typedef enum
{
	SSID = 0,
	SUPPORTED_RATES,
	FH_PARAM_SET,
	DS_PARAM_SET,
	CF_PARAM_SET,
	TIM,
	IBSS_PARAM_SET,
	COUNTRY_INFO     = 7,
	CHALLENGE_TEXT   = 16,
	POWER_CONSTRAINT = 32,
	POWER_CAPABILITY = 33,
	TPC_REQUEST	 = 34,
	TPC_REPORT	 = 35,
#ifdef CCX
        SUPPORTED_CHANNELS = 36,
        CHANNEL_SWITCH_ANN = 37,
        QUIET              = 40,
        IBSS_DFS           = 41,
#endif 
	EXTENDED_SUPPORTED_RATES = 50,
#ifdef CCX
        VENDOR_SPECIFIC_221 = 221,
#endif
	WPA_IE       = 221,
	WPA_OUI_TYPE = 2,
	WPA2_IE      = 48,
        EXTRA_IE     = 133,
	WMM_OUI_TYPE = 2	
} IEEEtypes_ElementId_e;


typedef struct IEEEtypes_CapInfo_t
{
   	USHORT 		Ess:1;
   	USHORT  	Ibss:1;
   	USHORT  	CfPollable:1;
   	USHORT  	CfPollRqst:1;
   	USHORT  	Privacy:1;
   	USHORT  	ShortPreamble:1;
   	USHORT  	Pbcc:1;
   	USHORT  	ChanAgility:1 ;
	USHORT 		SpectrumMgmt:1;
   	USHORT  	Rsrvd9:1;   //<== It should be Qos Field 
   	USHORT  	ShortSlotTime:1;
   	USHORT  	Rsrvd1112:2;
   	USHORT  	DSSSOFDM:1;
   	USHORT  	Rsrvd1415:2;
} IEEEtypes_CapInfo_t;

#pragma pack(1)
typedef struct _MrvlIEtypesHeader {
	USHORT	Type;
	USHORT	Len;
} MrvlIEtypesHeader_t;

#ifdef BG_SCAN
//
// additional TLV data structures for background scan
//
typedef struct _MrvlIEtypes_BcastProbe_t 
{
	MrvlIEtypesHeader_t	Header;
	USHORT 				BcastProbe;
} MrvlIEtypes_BcastProbe_t;

typedef struct _MrvlIEtypes_NumSSIDProbe_t 
{
	MrvlIEtypesHeader_t	Header;
	USHORT 			NumSSIDProbe;
} MrvlIEtypes_NumSSIDProbe_t;
#endif
 
#ifdef ENABLE_802_11D

typedef enum {
	DISABLE_11D = 0,
	ENABLE_11D  = 1,
} state_11d_t;

// Data structure for Country IE
typedef struct _IEEEtypes_SubbandSet 
{
	UCHAR		FirstChan;
	UCHAR		NoOfChan;
	UCHAR		MaxTxPwr;	

} IEEEtypes_SubbandSet_t;

typedef struct _IEEEtypes_CountryInfoSet 
{
	UCHAR		ElementId;
	UCHAR		Len;
	UCHAR		CountryCode[COUNTRY_CODE_LEN];
	IEEEtypes_SubbandSet_t	Subband[1];

} IEEEtypes_CountryInfoSet_t;

typedef struct _IEEEtypes_CountryInfoFullSet 
{
	UCHAR		ElementId;
	UCHAR		Len;
	UCHAR		CountryCode[COUNTRY_CODE_LEN];
	IEEEtypes_SubbandSet_t	Subband[MRVDRV_MAX_SUBBAND_802_11D];
}  IEEEtypes_CountryInfoFullSet_t;

typedef struct _MrvlIEtypes_DomainParamSet 
{
	MrvlIEtypesHeader_t	Header;
	UCHAR			    	CountryCode[COUNTRY_CODE_LEN];
 	IEEEtypes_SubbandSet_t	Subband[1];
} MrvlIEtypes_DomainParamSet_t;

// Define data structure for HostCmd_CMD_802_11D_DOMAIN_INFO 
typedef struct _HostCmd_DS_802_11D_DOMAIN_INFO 
{
	USHORT  	Command;
    	USHORT  	Size;
    	USHORT  	SeqNum;
    	USHORT  	Result;

	USHORT		Action;
	MrvlIEtypes_DomainParamSet_t Domain;

}  HostCmd_DS_802_11D_DOMAIN_INFO, *PHostCmd_DS_802_11D_DOMAIN_INFO;

// Define data structure for HostCmd_RET_802_11D_DOMAIN_INFO 
typedef struct _HostCmd_DS_802_11D_DOMAIN_INFO_RSP 
{
	USHORT  	Command;
   	USHORT  	Size;
    	USHORT  	SeqNum;
    	USHORT  	Result;	

	USHORT		Action;
	MrvlIEtypes_DomainParamSet_t Domain;

}  HostCmd_DS_802_11D_DOMAIN_INFO_RSP, *PHostCmd_DS_802_11D_DOMIAN_INFO_RSP;

#endif

#ifdef WPA2

typedef union _KeyInfo_WEP_t 
{
	UCHAR		Reserved;		    // bits 5-15: Reserved 
	UCHAR		WepKeyIndex;		// bits 1-4: Specifies the index of key 
	UCHAR		isWepDefaultKey;	// bit 0: Specifies that this key is to be used as the default for TX data packets 

⌨️ 快捷键说明

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