407-regd_add_extra_country_codes.patch 1.3 KB

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