Revisió b8b7fd0d
Afegit per Pau Escrich fa més de 10 anys
scripts/copyregdb.script | ||
---|---|---|
|
||
[ -z "$TBUILD" ] || [ ! -d "build/$TBUILD" ] && exit 1
|
||
cp -f scripts/files/regdb.txt build/$TBUILD/package/kernel/mac80211/files
|
||
cp -f scripts/files/920-regdb.patch build/$TBUILD/package/kernel/mac80211/patches
|
||
cp -f scripts/files/921-regdb.patch build/$TBUILD/package/kernel/mac80211/patches
|
||
#patch -p0 -d build/$TBUILD/ < scripts/files/copyregdb_iwinfo_iwinfo_lib.c.patch > /dev/null
|
scripts/files/920-regdb.patch | ||
---|---|---|
--- a/drivers/net/wireless/ath/regd.c 2014-07-03 17:53:28.000000000 +0200
|
||
+++ b/drivers/net/wireless/ath/regd.c 2014-07-03 17:52:53.000000000 +0200
|
||
@@ -80,9 +80,8 @@
|
||
static const struct ieee80211_regdomain ath_world_regdom_63_65 = {
|
||
.alpha2 = "99",
|
||
REGD_RULES(
|
||
- ATH9K_2GHZ_CH01_11,
|
||
- ATH9K_2GHZ_CH12_13,
|
||
- ATH9K_5GHZ_NO_MIDBAND,
|
||
+ ATH9K_2GHZ_ALL,
|
||
+ ATH9K_5GHZ_ALL,
|
||
)
|
||
};
|
||
|
||
@@ -90,8 +89,8 @@
|
||
static const struct ieee80211_regdomain ath_world_regdom_64 = {
|
||
.alpha2 = "99",
|
||
REGD_RULES(
|
||
- ATH9K_2GHZ_CH01_11,
|
||
- ATH9K_5GHZ_NO_MIDBAND,
|
||
+ ATH9K_2GHZ_ALL,
|
||
+ ATH9K_5GHZ_ALL,
|
||
)
|
||
};
|
||
|
||
@@ -99,7 +98,7 @@
|
||
static const struct ieee80211_regdomain ath_world_regdom_66_69 = {
|
||
.alpha2 = "99",
|
||
REGD_RULES(
|
||
- ATH9K_2GHZ_CH01_11,
|
||
+ ATH9K_2GHZ_ALL,
|
||
ATH9K_5GHZ_ALL,
|
||
)
|
||
};
|
||
@@ -108,8 +107,7 @@
|
||
static const struct ieee80211_regdomain ath_world_regdom_67_68_6A_6C = {
|
||
.alpha2 = "99",
|
||
REGD_RULES(
|
||
- ATH9K_2GHZ_CH01_11,
|
||
- ATH9K_2GHZ_CH12_13,
|
||
+ ATH9K_2GHZ_ALL,
|
||
ATH9K_5GHZ_ALL,
|
||
)
|
||
};
|
||
@@ -256,7 +254,7 @@
|
||
/* Frequency is one where radar detection is required */
|
||
static bool ath_is_radar_freq(u16 center_freq)
|
||
{
|
||
- return (center_freq >= 5260 && center_freq <= 5700);
|
||
+ return false;
|
||
}
|
||
|
||
static void ath_force_clear_no_ir_chan(struct wiphy *wiphy,
|
scripts/files/921-regdb.patch | ||
---|---|---|
--- a/drivers/net/wireless/ath/regd.c 2014-09-04 14:06:38.000000000 +0200
|
||
+++ b/drivers/net/wireless/ath/regd.c 2014-09-04 14:06:50.000000000 +0200
|
||
@@ -80,9 +80,8 @@
|
||
static const struct ieee80211_regdomain ath_world_regdom_63_65 = {
|
||
.alpha2 = "99",
|
||
REGD_RULES(
|
||
- ATH9K_2GHZ_CH01_11,
|
||
- ATH9K_2GHZ_CH12_13,
|
||
- ATH9K_5GHZ_NO_MIDBAND,
|
||
+ ATH9K_2GHZ_ALL,
|
||
+ ATH9K_5GHZ_ALL,
|
||
)
|
||
};
|
||
|
||
@@ -90,8 +89,8 @@
|
||
static const struct ieee80211_regdomain ath_world_regdom_64 = {
|
||
.alpha2 = "99",
|
||
REGD_RULES(
|
||
- ATH9K_2GHZ_CH01_11,
|
||
- ATH9K_5GHZ_NO_MIDBAND,
|
||
+ ATH9K_2GHZ_ALL,
|
||
+ ATH9K_5GHZ_ALL,
|
||
)
|
||
};
|
||
|
||
@@ -99,7 +98,7 @@
|
||
static const struct ieee80211_regdomain ath_world_regdom_66_69 = {
|
||
.alpha2 = "99",
|
||
REGD_RULES(
|
||
- ATH9K_2GHZ_CH01_11,
|
||
+ ATH9K_2GHZ_ALL,
|
||
ATH9K_5GHZ_ALL,
|
||
)
|
||
};
|
||
@@ -108,8 +107,7 @@
|
||
static const struct ieee80211_regdomain ath_world_regdom_67_68_6A_6C = {
|
||
.alpha2 = "99",
|
||
REGD_RULES(
|
||
- ATH9K_2GHZ_CH01_11,
|
||
- ATH9K_2GHZ_CH12_13,
|
||
+ ATH9K_2GHZ_ALL,
|
||
ATH9K_5GHZ_ALL,
|
||
)
|
||
};
|
||
@@ -256,7 +254,7 @@
|
||
/* Frequency is one where radar detection is required */
|
||
static bool ath_is_radar_freq(u16 center_freq)
|
||
{
|
||
- return (center_freq >= 5260 && center_freq <= 5700);
|
||
+ return false;
|
||
}
|
||
|
||
static void ath_force_clear_no_ir_chan(struct wiphy *wiphy,
|
scripts/files/regdb.txt | ||
---|---|---|
# Channel 12 - 13.
|
||
(2457 - 2482 @ 40), (20), NO-IR
|
||
# Channel 14. Only JP enables this and for 802.11b only
|
||
(2474 - 2494 @ 20), (20), NO-IR
|
||
(2474 - 2494 @ 20), (20), NO-IR, NO-OFDM
|
||
# Channel 36 - 48
|
||
(5170 - 5250 @ 80), (20), NO-IR
|
||
# NB: 5260 MHz - 5700 MHz requies DFS
|
||
(5170 - 5250 @ 160), (20), NO-IR
|
||
# Channel 52 - 64
|
||
(5250 - 5330 @ 160), (20), NO-IR, DFS
|
||
# Channel 100 - 144
|
||
(5490 - 5730 @ 160), (20), NO-IR, DFS
|
||
# Channel 149 - 165
|
||
(5735 - 5835 @ 80), (20), NO-IR
|
||
# IEEE 802.11ad (60GHz), channels 1..3
|
||
... | ... | |
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country AF: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
(5490 - 5710 @ 80), (27), DFS
|
||
|
||
country AL: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20.00)
|
||
... | ... | |
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
country BF: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (17)
|
||
(5250 - 5330 @ 80), (24), DFS
|
||
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country BG: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
... | ... | |
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
# Source:
|
||
# http://www.bicma.gov.bt/paper/publication/nrrpart4.pdf
|
||
country BT: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
(5490 - 5710 @ 80), (27), DFS
|
||
|
||
country BY: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
... | ... | |
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
# Source:
|
||
# http://www.art-rca.org
|
||
country CF: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 40), (17)
|
||
(5250 - 5330 @ 40), (24), DFS
|
||
(5490 - 5730 @ 40), (24), DFS
|
||
(5735 - 5835 @ 40), (30)
|
||
|
||
country CH: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
... | ... | |
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
country CI: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (17)
|
||
(5250 - 5330 @ 80), (24), DFS
|
||
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country CL: DFS-JP
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
... | ... | |
country CZ: DFS-ETSI
|
||
(2400 - 2483.5 @ 40), (100 mW)
|
||
(5150 - 5250 @ 80), (200 mW), NO-OUTDOOR
|
||
(5250 - 5350 @ 80), (100 mW), NO-OUTDOOR
|
||
(5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS
|
||
(5470 - 5725 @ 80), (500 mW), DFS
|
||
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
... | ... | |
country DE: DFS-ETSI
|
||
# entries 279004 and 280006
|
||
(2400 - 2483.5 @ 40), (100 mW)
|
||
# entry 303005, 304002 and 305002
|
||
(5150 - 5350 @ 80), (100 mW), NO-OUTDOOR
|
||
# entry 303005
|
||
(5150 - 5250 @ 80), (100 mW), NO-OUTDOOR
|
||
# entries 304002 and 305002
|
||
(5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS
|
||
# entries 308002, 309001 and 310003
|
||
(5470 - 5725 @ 80), (500 mW), DFS
|
||
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
... | ... | |
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
|
||
country ES: DFS-ETSI
|
||
(2400 - 2483.5 @ 40), (100 mW)
|
||
(5150 - 5250 @ 80), (100 mW), NO-OUTDOOR
|
||
(5250 - 5350 @ 80), (100 mW), NO-OUTDOOR
|
||
(5470 - 5725 @ 80), (500 mW), DFS
|
||
country ES:
|
||
(2400 - 2483.5 @ 40), (500 mW)
|
||
(5150 - 5250 @ 80), (500 mW)
|
||
(5250 - 5350 @ 80), (500 mW)
|
||
(5470 - 5725 @ 80), (500 mW)
|
||
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
... | ... | |
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
country FM: DFS-FCC
|
||
(2402 - 2472 @ 40), (30)
|
||
(5170 - 5250 @ 80), (24)
|
||
(5250 - 5330 @ 80), (24), DFS
|
||
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country FR: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
... | ... | |
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country GH: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (17)
|
||
(5250 - 5330 @ 80), (24), DFS
|
||
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country GR: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
... | ... | |
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country GY:
|
||
(2402 - 2482 @ 40), (30)
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country HN: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (17)
|
||
... | ... | |
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
country HT: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
(5490 - 5710 @ 80), (27), DFS
|
||
country HT: DFS-FCC
|
||
(2402 - 2472 @ 40), (30)
|
||
(5170 - 5250 @ 80), (24)
|
||
(5250 - 5330 @ 80), (24), DFS
|
||
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country HU: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
... | ... | |
|
||
country IL: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5150 - 5350 @ 80), (200 mW), NO-OUTDOOR
|
||
(5150 - 5250 @ 80), (200 mW), NO-OUTDOOR
|
||
(5250 - 5350 @ 80), (200 mW), NO-OUTDOOR, DFS
|
||
|
||
country IN: DFS-JP
|
||
(2402 - 2482 @ 40), (20)
|
||
... | ... | |
(5735 - 5815 @ 80), (30)
|
||
|
||
country KR: DFS-JP
|
||
(2402 - 2482 @ 20), (20)
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
... | ... | |
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
|
||
# Source:
|
||
# http://www.cept.org/files/1050/Tools%20and%20Services/EFIS%20-%20ECO%20Frequency%20Information%20System/National%20frequency%20tables/Montenegro%20NAFT%20-%202010.pdf
|
||
country ME: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
(5490 - 5710 @ 80), (27), DFS
|
||
|
||
country MO:
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 40), (23)
|
||
... | ... | |
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
# Source:
|
||
# http://www.are.mr/pdfs/telec_freq_TNAbf_2010.pdf
|
||
country MR: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
(5490 - 5710 @ 80), (27), DFS
|
||
|
||
country MT: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
... | ... | |
|
||
country NL: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5330 @ 80), (20), NO-OUTDOOR
|
||
(5170 - 5250 @ 80), (20), NO-OUTDOOR
|
||
(5250 - 5330 @ 80), (20), NO-OUTDOOR, DFS
|
||
(5490 - 5710 @ 80), (27), DFS
|
||
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
# Data from http://www.lovdata.no/dokument/SF/forskrift/2012-01-19-77
|
||
# Power at 5250 - 5350 MHz, 5470 - 5725 MHz and 5815 – 5850 MHz can
|
||
# be doubled if TPC is implemented.
|
||
# Up to 2W (or 4W with TPC) is allowed in the 5725 – 5795 MHz band
|
||
# which has been merged with 5470 - 5725 MHz to allow wide channels
|
||
country NO: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
(5490 - 5710 @ 80), (27), DFS
|
||
(2400 - 2483.5 @ 40), (100 mW)
|
||
(5150 - 5250 @ 80), (200 mW)
|
||
(5250 - 5350 @ 80), (100 mW), DFS
|
||
(5470 - 5795 @ 80), (500 mW), DFS
|
||
(5815 - 5850 @ 35), (2000 mW), DFS
|
||
(17100 - 17300 @ 200), (100 mW)
|
||
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
... | ... | |
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country PW: DFS-FCC
|
||
(2402 - 2472 @ 40), (30)
|
||
(5170 - 5250 @ 80), (24)
|
||
(5250 - 5330 @ 80), (24), DFS
|
||
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country QA: DFS-JP
|
||
(2402 - 2482 @ 40), (20)
|
||
(5735 - 5835 @ 80), (30)
|
||
... | ... | |
# 60 gHz band channels 1-4, ref: Etsi En 302 567
|
||
(57240 - 65880 @ 2160), (40), NO-OUTDOOR
|
||
|
||
# Source:
|
||
# Regulation N° 2004-005 ART/DG/DRC/D.Rég
|
||
country SN: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (17)
|
||
(5250 - 5330 @ 80), (24), DFS
|
||
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country SV: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (17)
|
||
... | ... | |
country SY:
|
||
(2402 - 2482 @ 40), (20)
|
||
|
||
country TD: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20), DFS
|
||
(5490 - 5710 @ 80), (27), DFS
|
||
|
||
country TG: DFS-ETSI
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 40), (20)
|
||
(5250 - 5330 @ 40), (20), DFS
|
||
(5490 - 5710 @ 40), (27), DFS
|
||
|
||
country TW: DFS-JP
|
||
(2402 - 2472 @ 40), (30)
|
||
(5270 - 5330 @ 40), (17), DFS
|
||
... | ... | |
|
||
country US:
|
||
(2402 - 2472 @ 40), (30)
|
||
(5170 - 5250 @ 80), (30)
|
||
(5250 - 5330 @ 80), (30)
|
||
(5735 - 5835 @ 80), (30)
|
||
(5170 - 5835 @ 80), (30)
|
||
# 60g band
|
||
# reference: http://cfr.regstoday.com/47cfr15.aspx#47_CFR_15p255
|
||
# channels 1,2,3, EIRP=40dBm(43dBm peak)
|
||
... | ... | |
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
# Source:
|
||
# http://cemc.uz/article/1976/
|
||
country UZ:
|
||
(2402 - 2472 @ 40), (30)
|
||
(5170 - 5250 @ 80), (17)
|
||
(5250 - 5330 @ 80), (24)
|
||
(5490 - 5730 @ 80), (24)
|
||
(5735 - 5835 @ 80), (30)
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (20)
|
||
(5250 - 5330 @ 80), (20)
|
||
|
||
# Source:
|
||
# Official Gazette (Gaceta Oficial) concerning Unlicensed transmitter use
|
||
# (10 June 2013)
|
||
# http://www.conatel.gob.ve/
|
||
country VE: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (17)
|
||
(2402 - 2482 @ 40), (30)
|
||
(5170 - 5250 @ 80), (23)
|
||
(5250 - 5330 @ 80), (23), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
... | ... | |
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
# Source:
|
||
# http://www.trr.vu/attachments/category/130/GURL_for_Short-range_Radiocommunication_Devices2.pdf
|
||
country VU: DFS-FCC
|
||
(2402 - 2482 @ 40), (20)
|
||
(5170 - 5250 @ 80), (17)
|
||
(5250 - 5330 @ 80), (24), DFS
|
||
(5490 - 5730 @ 80), (24), DFS
|
||
(5735 - 5835 @ 80), (30)
|
||
|
||
country YE:
|
||
(2402 - 2482 @ 40), (20)
|
||
|
També disponible a: Unified diff
Adapt regdb tuning to work in last OpenWRT trunk