All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath: regd: add extra US coutry codes
@ 2019-01-26 16:30 Christian Lamparter
  2019-02-07 15:03 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Lamparter @ 2019-01-26 16:30 UTC (permalink / raw)
  To: linux-wireless; +Cc: Oever Gonzalez, Kalle Valo

From: Oever Gonzalez <notengobattery@gmail.com>

This patch adds several country codes to the regd.h and regd_common.h
files in order to support devices like the Linksys EA6350v3, 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.

The values for CTRY_UNITED_STATES2 and CTRY_UNITED_STATES3 were taken
from a post by Sven Eckelmann <sven.eckelmann@openmesh.com>:
<http://lists.infradead.org/pipermail/ath10k/2017-August/010014.html>

Signed-off-by: Oever Gonzalez <notengobattery@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
---
 drivers/net/wireless/ath/regd.h        | 2 ++
 drivers/net/wireless/ath/regd_common.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/drivers/net/wireless/ath/regd.h b/drivers/net/wireless/ath/regd.h
index d73e45e26547..75ddaefdd049 100644
--- 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,
diff --git a/drivers/net/wireless/ath/regd_common.h b/drivers/net/wireless/ath/regd_common.h
index 4021e37a225a..c4bd26e65949 100644
--- a/drivers/net/wireless/ath/regd_common.h
+++ b/drivers/net/wireless/ath/regd_common.h
@@ -483,6 +483,8 @@ static struct country_code_to_enum_rd allCountries[] = {
 	{CTRY_UAE, NULL1_WORLD, "AE"},
 	{CTRY_UNITED_KINGDOM, ETSI1_WORLD, "GB"},
 	{CTRY_UNITED_STATES, FCC3_FCCA, "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 */
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ath: regd: add extra US coutry codes
  2019-01-26 16:30 [PATCH] ath: regd: add extra US coutry codes Christian Lamparter
@ 2019-02-07 15:03 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-02-07 15:03 UTC (permalink / raw)
  To: Christian Lamparter; +Cc: linux-wireless, Oever Gonzalez

Christian Lamparter <chunkeey@gmail.com> wrote:

> This patch adds several country codes to the regd.h and regd_common.h
> files in order to support devices like the Linksys EA6350v3, 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.
> 
> The values for CTRY_UNITED_STATES2 and CTRY_UNITED_STATES3 were taken
> from a post by Sven Eckelmann <sven.eckelmann@openmesh.com>:
> <http://lists.infradead.org/pipermail/ath10k/2017-August/010014.html>
> 
> Signed-off-by: Oever Gonzalez <notengobattery@gmail.com>
> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

62a2c1355c15 ath: regd: add extra US coutry codes

-- 
https://patchwork.kernel.org/patch/10782507/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-07 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-26 16:30 [PATCH] ath: regd: add extra US coutry codes Christian Lamparter
2019-02-07 15:03 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.