📄 hostcmd.h
字号:
UCHAR ScanType;
USHORT MinScanTime;
USHORT ScanTime;
} ChanScanParamSet_t;
typedef struct _MrvlIEtypes_ChanListParamSet_t {
MrvlIEtypesHeader_t Header;
ChanScanParamSet_t *ChanScanParam;
} MrvlIEtypes_ChanListParamSet_t;
typedef struct _MrvlIEtypes_NumProbes_t {
MrvlIEtypesHeader_t Header;
USHORT NumProbes;
} MrvlIEtypes_NumProbes_t;
typedef struct _HostCmd_DS_802_11_SCAN {
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR BSSType;
UCHAR BSSID[MRVDRV_ETH_ADDR_LEN];
MrvlIEtypes_SsIdParamSet_t SsIdParamSet;
MrvlIEtypes_ChanListParamSet_t ChanListParamSet;
MrvlIEtypes_RatesParamSet_t OpRateSet;
} HostCmd_DS_802_11_SCAN, *PHostCmd_DS_802_11_SCAN;
typedef struct _HostCmd_DS_802_11_SCAN_RSP {
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
USHORT BSSDescriptSize;
UCHAR NumberOfSets;
} HostCmd_DS_802_11_SCAN_RSP, *PHostCmd_DS_802_11_SCAN_RSP;
#else // TLV_SCAN
// Define data structure for HostCmd_CMD_802_11_SCAN
typedef struct _HostCmd_DS_802_11_SCAN
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
USHORT IsAutoAssociation;
UCHAR BSSType;
UCHAR BSSID[MRVDRV_ETH_ADDR_LEN];
UCHAR SSID[MRVDRV_MAX_SSID_LENGTH];
UCHAR ScanType;
USHORT ProbeDelay;
UCHAR CHList[MRVDRV_MAX_CHANNEL_NUMBER];
USHORT MinCHTime;
USHORT MaxCHTime;
USHORT Reserved;
} HostCmd_DS_802_11_SCAN, *PHostCmd_DS_802_11_SCAN;
// Define data structure for HostCmd_CMD_802_11_SCAN
typedef struct _HostCmd_DS_802_11_SCAN_RSP
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR BSSID[MRVDRV_ETH_ADDR_LEN];
CHAR RSSI[MRVDRV_MAX_BSS_DESCRIPTS];
USHORT BSSDescriptSize;
UCHAR NumberOfSets;
} HostCmd_DS_802_11_SCAN_RSP, *PHostCmd_DS_802_11_SCAN_RSP;
#endif // TLV_SCAN
// Define data structure for HostCmd_CMD_802_11_QUERY_TRAFFIC
typedef struct _HostCmd_DS_802_11_QUERY_TRAFFIC
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
ULONG Traffic; // Traffic in bps
} HostCmd_DS_802_11_QUERY_TRAFFIC, *PHostCmd_DS_802_11_QUERY_TRAFFIC;
// Define data structure for HostCmd_CMD_802_11_QUERY_STATUS
typedef struct _HostCmd_DS_802_11_QUERY_STATUS
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
USHORT FWStatus;
USHORT MACStatus;
USHORT RFStatus;
USHORT CurentChannel; // 1..99
UCHAR APMACAdr[6]; // Associated AP MAC address
USHORT Reserved;
ULONG MaxLinkSpeed; // Allowable max.link speed in unit of 100bps
} HostCmd_DS_802_11_QUERY_STATUS, *PHostCmd_DS_802_11_QUERY_STATUS;
// Define data structure for HostCmd_CMD_802_11_GET_LOG
typedef struct _HostCmd_DS_802_11_GET_LOG
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
//UCHAR Log[512];
} HostCmd_DS_802_11_GET_LOG, *PHostCmd_DS_802_11_GET_LOG;
// Define data structure for HostCmd_CMD_MAC_CONTROL
typedef struct _HostCmd_DS_MAC_CONTROL
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
USHORT Action; // RX, TX, INT, WEP, LOOPBACK on/off
USHORT Reserved;
} HostCmd_DS_MAC_CONTROL, *PHostCmd_DS_MAC_CONTROL;
// Define data structure for HostCmd_CMD_MAC_MULTICAST_ADR
typedef struct _HostCmd_DS_MAC_MULTICAST_ADR
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
USHORT Action;
USHORT NumOfAdrs;
UCHAR MACList[HostCmd_SIZE_MAC_ADR*HostCmd_MAX_MCAST_ADRS];
} HostCmd_DS_MAC_MULTICAST_ADR, *PHostCmd_DS_MAC_MULTICAST_ADR;
// Define data structure for HostCmd_CMD_802_11_AUTHENTICATE
typedef struct _HostCmd_DS_802_11_AUTHENTICATE
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR MacAddr[6];
UCHAR AuthType;
USHORT TimeOut;
UCHAR Reserved[3];
} HostCmd_DS_802_11_AUTHENTICATE, *PHostCmd_DS_802_11_AUTHENTICATE;
// Define data structure for HostCmd_RET_802_11_AUTHENTICATE
typedef struct _HostCmd_DS_802_11_AUTHENTICATE_RESULT
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR MacAddr[6];
UCHAR AuthType;
UCHAR AuthStatus;
} HostCmd_DS_802_11_AUTHENTICATE_RESULT, *PHostCmd_DS_802_11_AUTHENTICATE_RESULT;
// Define data structure for HostCmd_CMD_802_11_DEAUTHENTICATE
typedef struct _HostCmd_DS_802_11_DEAUTHENTICATE
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR MacAddr[6];
ULONG ReasonCode;
} HostCmd_DS_802_11_DEAUTHENTICATE, *PHostCmd_DS_802_11_DEAUTHENTICATE;
// Define data structure for HostCmd_RET_802_11_DEAUTHENTICATE
typedef struct _HostCmd_DS_802_11_DEAUTHENTICATE_RESULT
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR MacAddr[6];
UCHAR AuthStatus;
UCHAR Reserved;
} HostCmd_DS_802_11_DEAUTHENTICATE_RESULT, *PHostCmd_DS_802_11_DEAUTHENTICATE_RESULT;
#ifdef TLV_ASSOCIATE
#define WLAN_SUPPORTED_RATES 14
typedef struct _CfParamSet_t {
UCHAR CfpCnt;
UCHAR CfpPeriod;
USHORT CfpMaxDuration;
USHORT CfpDurationRemaining;
} CfParamSet_t;
typedef struct _IbssParamSet_t {
USHORT AtimWindow;
} IbssParamSet_t;
typedef struct _MrvlIEtypes_SsParamSet_t {
MrvlIEtypesHeader_t Header;
union {
CfParamSet_t CfParamSet[1];
IbssParamSet_t IbssParamSet[1];
} cf_ibss;
} MrvlIEtypes_SsParamSet_t;
typedef struct _FhParamSet_t {
USHORT DwellTime;
UCHAR HopSet;
UCHAR HopPattern;
UCHAR HopIndex;
} FhParamSet_t;
typedef struct _DsParamSet_t {
UCHAR CurrentChan;
} DsParamSet_t;
typedef struct _MrvlIEtypes_PhyParamSet_t {
MrvlIEtypesHeader_t Header;
union {
FhParamSet_t FhParamSet[1];
DsParamSet_t DsParamSet[1];
} fh_ds;
} MrvlIEtypes_PhyParamSet_t;
typedef struct _MrvlIEtypes_RsnParamSet_t {
MrvlIEtypesHeader_t Header;
UCHAR RsnIE[1];
} MrvlIEtypes_RsnParamSet_t;
typedef struct _MrvlIEtypes_WmmParamSet_t {
MrvlIEtypesHeader_t Header;
UCHAR WmmIE[1];
} MrvlIEtypes_WmmParamSet_t;
typedef struct _HostCmd_DS_802_11_ASSOCIATE_EXT
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR PeerStaAddr[6];
USHORT CapInfo; //IEEEtypes_CapInfo_t CapInfo;
USHORT ListenInterval;
USHORT BcnPeriod;
UCHAR DtimPeriod;
MrvlIEtypes_SsIdParamSet_t SsIdParamSet;
MrvlIEtypes_PhyParamSet_t PhyParamSet;
MrvlIEtypes_SsParamSet_t SsParamSet;
MrvlIEtypes_RatesParamSet_t RatesParamSet;
MrvlIEtypes_RsnParamSet_t RsnParamSet;
MrvlIEtypes_WmmParamSet_t WmmParamSet;
} HostCmd_DS_802_11_ASSOCIATE_EXT, *PHostCmd_DS_802_11_ASSOCIATE_EXT;
/*
typedef struct _HostCmd_DS_802_11_ASSOCIATE_EXT
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR PeerStaAddr[6];
USHORT FailTimeOut;
IEEEtypes_CapInfo_t CapInfo;
USHORT ListenInterval;
UCHAR SsId[MRVDRV_MAX_SSID_LENGTH];
UCHAR Reserved;
USHORT Reserved1;
UCHAR Reserved2;
MrvlIEtypes_PhyParamSet_t PhyParamSet;
MrvlIEtypes_SsParamSet_t SsParamSet;
UCHAR DataRates[HOSTCMD_SUPPORTED_RATES];
UCHAR RsnIE[256];
} HostCmd_DS_802_11_ASSOCIATE_EXT, *PHostCmd_DS_802_11_ASSOCIATE_EXT;
*/
#else //TLV_ASSOCIATE
// Define data structure for HostCmd_CMD_802_11_ASSOCIATE and
// HostCmd_CMD_802_11_REASSOCIATE
typedef struct _HostCmd_DS_802_11_ASSOCIATE
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR DestMacAddr[6];
USHORT TimeOut; // Association failure timeout
USHORT CapInfo; // Capability information
USHORT ListenInterval; // Listen interval
ULONG BlankSsId; // 0 = not blank, 1 = blank
} HostCmd_DS_802_11_ASSOCIATE, *PHostCmd_DS_802_11_ASSOCIATE;
// associate ext command defined in V3 errata
typedef struct _HostCmd_DS_802_11_ASSOCIATE_EXT
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR DestMacAddr[6];
USHORT TimeOut; // Association failure timeout
USHORT CapInfo; // Capability information
USHORT ListenInterval; // Listen interval
UCHAR Ssid[MRVDRV_MAX_SSID_LENGTH]; // SSID of the AP
UCHAR BssType;
USHORT BcnPeriod;
UCHAR DtimPeriod;
IEEEtypes_PhyParamSet_t PhyParamSet;
IEEEtypes_SsParamSet_t SsParamSet;
UCHAR DataRates[G_SUPPORTED_RATES];
#ifdef WPA
UCHAR RsnIE[256];
#endif
} HostCmd_DS_802_11_ASSOCIATE_EXT, *PHostCmd_DS_802_11_ASSOCIATE_EXT;
#endif //TLV_ASSOCIATE
// Define data structure for HostCmd_CMD_802_11_DISASSOCIATE
typedef struct _HostCmd_DS_802_11_DISASSOCIATE
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR DestMacAddr[6];
USHORT ReasonCode; // Disassociation reason code
} HostCmd_DS_802_11_DISASSOCIATE, *PHostCmd_DS_802_11_DISASSOCIATE;
// Define data structure for HostCmd_RET_802_11_ASSOCIATE
typedef struct _HostCmd_DS_802_11_ASSOCIATE_RESULT
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
#ifdef WPA
USHORT CapInfo;
USHORT StatusCode;
USHORT AssociationID;
USHORT IELength;
UCHAR IE[1];
#else
UCHAR StatusCode;
UCHAR Reserved[3];
#endif
} HostCmd_DS_802_11_ASSOCIATE_RESULT, *PHostCmd_DS_802_11_ASSOCIATE_RESULT;
// Define data structure for HostCmd_RET_802_11_AD_HOC_JOIN
typedef struct _HostCmd_DS_802_11_AD_HOC_RESULT
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
UCHAR ResultCode;
//changed due to FW mismatch
//UCHAR Reserved[3];
UCHAR Reserved[2];
UCHAR BSSID[MRVDRV_ETH_ADDR_LEN];
} HostCmd_DS_802_11_AD_HOC_RESULT, *PHostCmd_DS_802_11_AD_HOC_RESULT;
// Define data structure for HostCmd_CMD_802_11_SET_WEP
typedef struct _HostCmd_DS_802_11_SET_WEP
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
USHORT Action; // ACT_ADD, ACT_REMOVE or ACT_ENABLE
USHORT KeyIndex; // Key Index selected for Tx
UCHAR WEPTypeForKey1; // 40, 128bit or TXWEP
UCHAR WEPTypeForKey2;
UCHAR WEPTypeForKey3;
UCHAR WEPTypeForKey4;
UCHAR WEP1[16]; // WEP Key itself
UCHAR WEP2[16];
UCHAR WEP3[16];
UCHAR WEP4[16];
} HostCmd_DS_802_11_SET_WEP, *PHostCmd_DS_802_11_SET_WEP;
// Define data structure for HostCmd_CMD_802_3_GET_STAT
typedef struct _HostCmd_DS_802_3_GET_STAT
{
USHORT Command;
USHORT Size;
USHORT SeqNum;
USHORT Result;
ULONG XmitOK;
ULONG RcvOK;
ULONG XmitError;
ULONG RcvError;
ULONG RcvNoBuffer;
ULONG RcvCRCError;
} HostCmd_DS_802_3_GET_STAT, *PHostCmd_DS_802_3_GET_STAT;
// Define data structure for HostCmd_CMD_802_11_GET_STAT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -