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

📄 ieee80211_regdomain.h

📁 无线网卡驱动 固件程序 There are currently 3 "programming generations" of Atheros 802.11 wireless devices (
💻 H
📖 第 1 页 / 共 3 页
字号:
/*     $OpenBSD: ieee80211_regdomain.h,v 1.8 2005/12/18 17:59:59 reyk Exp $ *//* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */#ifndef _NET80211_IEEE80211_REGDOMAIN_H_#define _NET80211_IEEE80211_REGDOMAIN_H_typedef u_int32_t ieee80211_regdomain_t;enum ieee80211_regdomain {	DMN_DEFAULT		= 0x00,	DMN_NULL_WORLD		= 0x03,	DMN_NULL_ETSIB		= 0x07,	DMN_NULL_ETSIC		= 0x08,	DMN_FCC1_FCCA		= 0x10,	DMN_FCC1_WORLD		= 0x11,	DMN_FCC2_FCCA		= 0x20,	DMN_FCC2_WORLD		= 0x21,	DMN_FCC2_ETSIC		= 0x22,	DMN_FRANCE_NULL		= 0x31,	DMN_FCC3_FCCA		= 0x3A,	DMN_ETSI1_WORLD		= 0x37,	DMN_ETSI3_ETSIA		= 0x32,	DMN_ETSI2_WORLD		= 0x35,	DMN_ETSI3_WORLD		= 0x36,	DMN_ETSI4_WORLD		= 0x30,	DMN_ETSI4_ETSIC		= 0x38,	DMN_ETSI5_WORLD		= 0x39,	DMN_ETSI6_WORLD		= 0x34,	DMN_ETSI_NULL		= 0x33,	DMN_MKK1_MKKA		= 0x40,	DMN_MKK1_MKKB		= 0x41,	DMN_APL4_WORLD		= 0x42,	DMN_MKK2_MKKA		= 0x43,	DMN_APL_NULL		= 0x44,	DMN_APL2_WORLD		= 0x45,	DMN_APL2_APLC		= 0x46,	DMN_APL3_WORLD		= 0x47,	DMN_MKK1_FCCA		= 0x48,	DMN_APL2_APLD		= 0x49,	DMN_MKK1_MKKA1		= 0x4A,	DMN_MKK1_MKKA2		= 0x4B,	DMN_APL1_WORLD		= 0x52,	DMN_APL1_FCCA		= 0x53,	DMN_APL1_APLA		= 0x54,	DMN_APL1_ETSIC		= 0x55,	DMN_APL2_ETSIC		= 0x56,	DMN_APL5_WORLD		= 0x58,	DMN_WOR0_WORLD		= 0x60,	DMN_WOR1_WORLD		= 0x61,	DMN_WOR2_WORLD		= 0x62,	DMN_WOR3_WORLD		= 0x63,	DMN_WOR4_WORLD		= 0x64,	DMN_WOR5_ETSIC		= 0x65,	DMN_WOR01_WORLD		= 0x66,	DMN_WOR02_WORLD		= 0x67,	DMN_EU1_WORLD		= 0x68,	DMN_WOR9_WORLD		= 0x69,	DMN_WORA_WORLD		= 0x6A,	DMN_APL1		= 0xf0000001,	DMN_APL2		= 0xf0000002,	DMN_APL3		= 0xf0000004,	DMN_APL4		= 0xf0000008,	DMN_APL5		= 0xf0000010,	DMN_ETSI1		= 0xf0000020,	DMN_ETSI2		= 0xf0000040,	DMN_ETSI3		= 0xf0000080,	DMN_ETSI4		= 0xf0000100,	DMN_ETSI5		= 0xf0000200,	DMN_ETSI6		= 0xf0000400,	DMN_ETSIA		= 0xf0000800,	DMN_ETSIB		= 0xf0001000,	DMN_ETSIC		= 0xf0002000,	DMN_FCC1		= 0xf0004000,	DMN_FCC2		= 0xf0008000,	DMN_FCC3		= 0xf0010000,	DMN_FCCA		= 0xf0020000,	DMN_APLD		= 0xf0040000,	DMN_MKK1		= 0xf0080000,	DMN_MKK2		= 0xf0100000,	DMN_MKKA		= 0xf0200000,	DMN_NULL		= 0xf0400000,	DMN_WORLD		= 0xf0800000,	DMN_DEBUG               = 0xf1000000	/* used for debugging */};#define IEEE80211_DMN(_d)	((_d) & ~0xf0000000)struct ieee80211_regdomainname {	u_int32_t	rn_domain;	const char	*rn_name;};#define IEEE80211_REGDOMAIN_NAMES {					\	{ DMN_APL1,		    "APL1" },				\	{ DMN_APL1_APLA,	    "APL1A" },				\	{ DMN_APL1_ETSIC,	    "APL1_ETSIC" },			\	{ DMN_APL1_FCCA,	    "APL1_FCCA" },			\	{ DMN_APL1_WORLD,	    "APL1W" },				\	{ DMN_APL2,		    "APL2" },				\	{ DMN_APL2_APLC,	    "APL2C" },				\	{ DMN_APL2_APLD,	    "APL2D" },				\	{ DMN_APL2_ETSIC,	    "APL2_ETSIC" },			\	{ DMN_APL2_WORLD,	    "APL2W" },				\	{ DMN_APL3,		    "APL3" },				\	{ DMN_APL3_WORLD,	    "APL3W" },				\	{ DMN_APL4,		    "APL4" },				\	{ DMN_APL4_WORLD,	    "APL4W" },				\	{ DMN_APL5,		    "APL5" },				\	{ DMN_APL5_WORLD,	    "APL5W" },				\	{ DMN_APLD,		    "APLD" },				\	{ DMN_APL_NULL,		    "APL" },				\	{ DMN_DEBUG,		    "DEBUG" },				\	{ DMN_ETSI1,		    "ETSI1" },				\	{ DMN_ETSI1_WORLD,	    "ETSI1W" },				\	{ DMN_ETSI2,		    "ETSI2" },				\	{ DMN_ETSI2_WORLD,	    "ETSI2W" },				\	{ DMN_ETSI3,		    "ETSI3" },				\	{ DMN_ETSI3_ETSIA,	    "ETSI3A" },				\	{ DMN_ETSI3_WORLD,	    "ETSI3W," },			\	{ DMN_ETSI4,		    "ETSI4" },				\	{ DMN_ETSI4_ETSIC,	    "ETSI4C" },				\	{ DMN_ETSI4_WORLD,	    "ETSI4W" },				\	{ DMN_ETSI5,		    "ETSI5" },				\	{ DMN_ETSI5_WORLD,	    "ETSI5W" },				\	{ DMN_ETSI6,		    "ETSI6" },				\	{ DMN_ETSI6_WORLD,	    "ETSI6W" },				\	{ DMN_ETSIA,		    "ETSIA" },				\	{ DMN_ETSIB,		    "ETSIB" },				\	{ DMN_ETSIC,		    "ETSIC" },				\	{ DMN_ETSI_NULL,	    "ETSI" },				\	{ DMN_EU1_WORLD,	    "EU1W" },				\	{ DMN_FCC1,		    "FCC1" },				\	{ DMN_FCC1_FCCA,	    "FCC1A" },				\	{ DMN_FCC1_WORLD,	    "FCC1W" },				\	{ DMN_FCC2,		    "FCC2" },				\	{ DMN_FCC2_ETSIC,	    "FCC2C" },				\	{ DMN_FCC2_FCCA,	    "FCC2A" },				\	{ DMN_FCC2_WORLD,	    "FCC2W" },				\	{ DMN_FCC3,		    "FCC3" },				\	{ DMN_FCC3_FCCA,	    "FCC3A" },				\	{ DMN_FCCA,		    "FCCA" },				\	{ DMN_FRANCE_NULL,	    "FRANCE" },				\	{ DMN_MKK1,		    "MKK1" },				\	{ DMN_MKK1_FCCA,	    "MKK1_FCCA" },			\	{ DMN_MKK1_MKKA,	    "MKK1A" },				\	{ DMN_MKK1_MKKA1,	    "MKK1A1" },				\	{ DMN_MKK1_MKKA2,	    "MKK1A2" },				\	{ DMN_MKK1_MKKB,	    "MKK1B" },				\	{ DMN_MKK2,		    "MKK2" },				\	{ DMN_MKK2_MKKA,	    "MKK2A" },				\	{ DMN_MKKA,		    "MKKA" },				\	{ DMN_DEFAULT,		    "NONE" },				\	{ DMN_NULL,		    "NONE" },				\	{ DMN_NULL_ETSIB,	    "ETSIB" },				\	{ DMN_NULL_ETSIC,	    "ETSIC" },				\	{ DMN_WOR01_WORLD,	    "WOR01W" },				\	{ DMN_WOR02_WORLD,	    "WOR02W" },				\	{ DMN_WOR0_WORLD,	    "WOR0W" },				\	{ DMN_WOR1_WORLD,	    "WOR1W" },				\	{ DMN_WOR2_WORLD,	    "WOR2W" },				\	{ DMN_WOR3_WORLD,	    "WOR3W" },				\	{ DMN_WOR4_WORLD,	    "WOR4W" },				\	{ DMN_WOR5_ETSIC,	    "WOR5_ETSIC" },			\	{ DMN_WOR9_WORLD,	    "WOR9W" },				\	{ DMN_WORA_WORLD,	    "WORAW" },				\	{ DMN_NULL_WORLD,	    "WORLD" },				\	{ DMN_WORLD,		    "WORLD" }				\}struct ieee80211_regdomainmap {	u_int16_t	rm_domain;	u_int32_t	rm_domain_5ghz;	u_int32_t	rm_domain_2ghz;};#define IEEE80211_REGDOMAIN_MAP {					\	{ DMN_DEFAULT,		DMN_DEBUG,	DMN_DEBUG },		\	{ DMN_NULL_WORLD,	DMN_NULL,	DMN_WORLD },		\	{ DMN_NULL_ETSIB,	DMN_NULL,	DMN_ETSIB },		\	{ DMN_NULL_ETSIC,	DMN_NULL,	DMN_ETSIC },		\	{ DMN_FCC1_FCCA,	DMN_FCC1,	DMN_FCCA },		\	{ DMN_FCC1_WORLD,	DMN_FCC1,	DMN_WORLD },		\	{ DMN_FCC2_FCCA,	DMN_FCC2,	DMN_FCCA },		\	{ DMN_FCC2_WORLD,	DMN_FCC2,	DMN_WORLD },		\	{ DMN_FCC2_ETSIC,	DMN_FCC2,	DMN_ETSIC },		\	{ DMN_FRANCE_NULL,	DMN_ETSI3,	DMN_ETSI3 },		\	{ DMN_FCC3_FCCA,	DMN_FCC3,	DMN_WORLD },		\	{ DMN_ETSI1_WORLD,	DMN_ETSI1,	DMN_WORLD },		\	{ DMN_ETSI3_ETSIA,	DMN_ETSI3,	DMN_WORLD },		\	{ DMN_ETSI2_WORLD,	DMN_ETSI2,	DMN_WORLD },		\	{ DMN_ETSI3_WORLD,	DMN_ETSI3,	DMN_WORLD },		\	{ DMN_ETSI4_WORLD,	DMN_ETSI4,	DMN_WORLD },		\	{ DMN_ETSI4_ETSIC,	DMN_ETSI4,	DMN_ETSIC },		\	{ DMN_ETSI5_WORLD,	DMN_ETSI5,	DMN_WORLD },		\	{ DMN_ETSI6_WORLD,	DMN_ETSI6,	DMN_WORLD },		\	{ DMN_ETSI_NULL,	DMN_ETSI1,	DMN_ETSI1 },		\	{ DMN_MKK1_MKKA,	DMN_MKK1,	DMN_MKKA },		\	{ DMN_MKK1_MKKB,	DMN_MKK1,	DMN_MKKA },		\	{ DMN_APL4_WORLD,	DMN_APL4,	DMN_WORLD },		\	{ DMN_MKK2_MKKA,	DMN_MKK2,	DMN_MKKA },		\	{ DMN_APL_NULL,		DMN_APL1,	DMN_NULL },		\	{ DMN_APL2_WORLD,	DMN_APL2,	DMN_WORLD },		\	{ DMN_APL2_APLC,	DMN_APL2,	DMN_WORLD },		\	{ DMN_APL3_WORLD,	DMN_APL3,	DMN_WORLD },		\	{ DMN_MKK1_FCCA,	DMN_MKK1,	DMN_FCCA },		\	{ DMN_APL2_APLD,	DMN_APL2,	DMN_APLD },		\	{ DMN_MKK1_MKKA1,	DMN_MKK1,	DMN_MKKA },		\	{ DMN_MKK1_MKKA2,	DMN_MKK1,	DMN_MKKA },		\	{ DMN_APL1_WORLD,	DMN_APL1,	DMN_WORLD },		\	{ DMN_APL1_FCCA,	DMN_APL1,	DMN_FCCA },		\	{ DMN_APL1_APLA,	DMN_APL1,	DMN_WORLD },		\	{ DMN_APL1_ETSIC,	DMN_APL1,	DMN_ETSIC },		\	{ DMN_APL2_ETSIC,	DMN_APL2,	DMN_ETSIC },		\	{ DMN_APL5_WORLD,	DMN_APL5,	DMN_WORLD },		\	{ DMN_WOR0_WORLD,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_WOR1_WORLD,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_WOR2_WORLD,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_WOR3_WORLD,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_WOR4_WORLD,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_WOR5_ETSIC,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_WOR01_WORLD,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_WOR02_WORLD,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_EU1_WORLD,	DMN_ETSI1,	DMN_WORLD },		\	{ DMN_WOR9_WORLD,	DMN_WORLD,	DMN_WORLD },		\	{ DMN_WORA_WORLD,	DMN_WORLD,	DMN_WORLD },		\}enum ieee80211_countrycode {	CTRY_DEFAULT            = 0,   /* Default domain (NA) */	CTRY_ALBANIA            = 8,   /* Albania */	CTRY_ALGERIA            = 12,  /* Algeria */	CTRY_ARGENTINA          = 32,  /* Argentina */	CTRY_ARMENIA            = 51,  /* Armenia */	CTRY_AUSTRALIA          = 36,  /* Australia */	CTRY_AUSTRIA            = 40,  /* Austria */	CTRY_AZERBAIJAN         = 31,  /* Azerbaijan */	CTRY_BAHRAIN            = 48,  /* Bahrain */	CTRY_BELARUS            = 112, /* Belarus */	CTRY_BELGIUM            = 56,  /* Belgium */	CTRY_BELIZE             = 84,  /* Belize */	CTRY_BOLIVIA            = 68,  /* Bolivia */	CTRY_BRAZIL             = 76,  /* Brazil */	CTRY_BRUNEI_DARUSSALAM  = 96,  /* Brunei Darussalam */	CTRY_BULGARIA           = 100, /* Bulgaria */	CTRY_CANADA             = 124, /* Canada */	CTRY_CHILE              = 152, /* Chile */

⌨️ 快捷键说明

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