From 65d7f4bfb3d0ae53ba819ecfe60f588e94fa38c0 Mon Sep 17 00:00:00 2001 From: ChenWen Date: Wed, 8 Sep 2021 12:03:38 +0800 Subject: [PATCH] riscv/esp32c3: Support more country codes --- arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c b/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c index 9c866407cf3..5f9177edb18 100644 --- a/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c +++ b/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c @@ -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; }