📄 wlan_11d.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
//
/*
File: wlan_11d.h
*/
#ifndef _WLAN_11D_
#define _WLAN_11D_
#define MAX_CHAN_NUM 255
#define UNIVERSAL_REGION_CODE 0xff
/* (Beaconsize(256)-5(IEId,len,contrystr(3))/3(FirstChan,NoOfChan,MaxPwr) */
#define MRVDRV_MAX_SUBBAND_802_11D 83
#define COUNTRY_CODE_LEN 3
#define MAX_NO_OF_CHAN 40
#define OID_802_11D_ENABLE 0x00008020
typedef struct _REGION_CHANNEL *PREGION_CHANNEL;
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -