mac80211: ath10k: adjust tx power reduction for US regulatory domain
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / ath / 407-regd_add_extra_country_codes.patch
1 From: Oever Gonzalez <notengobattery@gmail.com>
2 Date: Mon, 7 Jan 2019 01:07:12 +0200
3 Subject: [PATCH] ath: regd: add extra coutry codes
4
5 This patch adds several country codes to the regd.h and regd_common.h
6 files in order to support devices whose country codes are not present in
7 the original list. Without this patch, all devices whose manufacturer
8 programmed any of these code in their EEPROM will not work.
9
10 Signed-off-by: Oever Gonzalez <notengobattery@gmail.com>
11 ---
12
13 --- a/drivers/net/wireless/ath/regd.h
14 +++ b/drivers/net/wireless/ath/regd.h
15 @@ -185,7 +185,9 @@ enum CountryCode {
16 CTRY_UKRAINE = 804,
17 CTRY_UNITED_KINGDOM = 826,
18 CTRY_UNITED_STATES = 840,
19 + CTRY_UNITED_STATES2 = 841,
20 CTRY_UNITED_STATES_FCC49 = 842,
21 + CTRY_UNITED_STATES3 = 843,
22 CTRY_URUGUAY = 858,
23 CTRY_UZBEKISTAN = 860,
24 CTRY_VENEZUELA = 862,
25 --- a/drivers/net/wireless/ath/regd_common.h
26 +++ b/drivers/net/wireless/ath/regd_common.h
27 @@ -486,6 +486,8 @@ static struct country_code_to_enum_rd al
28 {CTRY_UNITED_KINGDOM, ETSI1_WORLD, "GB"},
29 {CTRY_UNITED_STATES, FCC3_FCCA, "US"},
30 {CTRY_UNITED_STATES, FCC3_FCCA_2, "US"},
31 + {CTRY_UNITED_STATES2, FCC3_FCCA, "US"},
32 + {CTRY_UNITED_STATES3, FCC3_FCCA, "US"},
33 /* This "PS" is for US public safety actually... to support this we
34 * would need to assign new special alpha2 to CRDA db as with the world
35 * regdomain and use another alpha2 */