mirror of
https://github.com/apache/nuttx.git
synced 2026-08-26 20:00:42 +00:00
riscv/esp32c3: Support more country codes
This commit is contained in:
parent
4fc2f6e28c
commit
65d7f4bfb3
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue