aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211
diff options
context:
space:
mode:
authorOever González <notengobattery@gmail.com>2019-01-23 21:20:55 -0600
committerChristian Lamparter <chunkeey@gmail.com>2019-01-26 21:41:04 +0100
commit69aa1c5ac002d774f6d114eb3239c5531398dd83 (patch)
tree1afa56d63738b50367ab069dc7919c52d75ab1e1 /package/kernel/mac80211
parent47c3ada44aab26f7d0e11d5ebe750b2dd5410b25 (diff)
downloadupstream-69aa1c5ac002d774f6d114eb3239c5531398dd83.tar.gz
upstream-69aa1c5ac002d774f6d114eb3239c5531398dd83.tar.bz2
upstream-69aa1c5ac002d774f6d114eb3239c5531398dd83.zip
mac80211: ath: add extra 'regulatory domains'
This patch adds several country codes to the regd.h and regd_common.h files in order to support devices whose country codes are not present in the original list. Without this patch, all devices whose manufacturer programmed any of these code in their EEPROM will run without wireless interfaces. Signed-off-by: Oever González <notengobattery@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [matched signed-off]
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r--package/kernel/mac80211/patches/ath/407-regd_add_extra_country_codes.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/ath/407-regd_add_extra_country_codes.patch b/package/kernel/mac80211/patches/ath/407-regd_add_extra_country_codes.patch
new file mode 100644
index 0000000000..8f621002fe
--- /dev/null
+++ b/package/kernel/mac80211/patches/ath/407-regd_add_extra_country_codes.patch
@@ -0,0 +1,35 @@
+From: Oever Gonzalez <notengobattery@gmail.com>
+Date: Mon, 7 Jan 2019 01:07:12 +0200
+Subject: [PATCH] ath: regd: add extra coutry codes
+
+This patch adds several country codes to the regd.h and regd_common.h
+files in order to support devices whose country codes are not present in
+the original list. Without this patch, all devices whose manufacturer
+programmed any of these code in their EEPROM will not work.
+
+Signed-off-by: Oever Gonzalez <notengobattery@gmail.com>
+---
+
+--- a/drivers/net/wireless/ath/regd.h
++++ b/drivers/net/wireless/ath/regd.h
+@@ -185,7 +185,9 @@ enum CountryCode {
+ CTRY_UKRAINE = 804,
+ CTRY_UNITED_KINGDOM = 826,
+ CTRY_UNITED_STATES = 840,
++ CTRY_UNITED_STATES2 = 841,
+ CTRY_UNITED_STATES_FCC49 = 842,
++ CTRY_UNITED_STATES3 = 843,
+ CTRY_URUGUAY = 858,
+ CTRY_UZBEKISTAN = 860,
+ CTRY_VENEZUELA = 862,
+--- a/drivers/net/wireless/ath/regd_common.h
++++ b/drivers/net/wireless/ath/regd_common.h
+@@ -486,6 +486,8 @@ static struct country_code_to_enum_rd al
+ {CTRY_UNITED_KINGDOM, ETSI1_WORLD, "GB"},
+ {CTRY_UNITED_STATES, FCC3_FCCA, "US"},
+ {CTRY_UNITED_STATES, FCC3_FCCA_2, "US"},
++ {CTRY_UNITED_STATES2, FCC3_FCCA, "US"},
++ {CTRY_UNITED_STATES3, FCC3_FCCA, "US"},
+ /* This "PS" is for US public safety actually... to support this we
+ * would need to assign new special alpha2 to CRDA db as with the world
+ * regdomain and use another alpha2 */