riscv/esp32c3: Support more country codes

This commit is contained in:
ChenWen 2021-09-08 12:03:38 +08:00 committed by Alan Carvalho de Assis
parent 4fc2f6e28c
commit 65d7f4bfb3

View File

@ -6521,7 +6521,15 @@ int esp_wifi_sta_country(struct iwreq *iwr, bool set)
}
if (strncmp(country_code, "US", 3) == 0 ||
strncmp(country_code, "CA", 3) == 0)
strncmp(country_code, "CA", 3) == 0 ||
strncmp(country_code, "CO", 3) == 0 ||
strncmp(country_code, "DO", 3) == 0 ||
strncmp(country_code, "GT", 3) == 0 ||
strncmp(country_code, "MX", 3) == 0 ||
strncmp(country_code, "PA", 3) == 0 ||
strncmp(country_code, "PR", 3) == 0 ||
strncmp(country_code, "TW", 3) == 0 ||
strncmp(country_code, "UZ", 3) == 0)
{
country.nchan = 11;
}