Skip to content

Commit 7c79d6e

Browse files
QingzhaoYinEspressif-liuuuu
authored andcommitted
feat(wifi): add support for country EU
1 parent fbc18b2 commit 7c79d6e

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

components/esp_wifi/include/esp_wifi_types_generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ typedef struct {
14671467
bool dcm; /**< Using dcm rate to send frame */
14681468
} wifi_tx_rate_config_t;
14691469

1470-
#define WIFI_MAX_SUPPORT_COUNTRY_NUM 175 /**< max number of supported countries */
1470+
#define WIFI_MAX_SUPPORT_COUNTRY_NUM 176 /**< max number of supported countries */
14711471
#ifdef CONFIG_SOC_WIFI_SUPPORT_5G
14721472
#define WIFI_MAX_REGULATORY_RULE_NUM 7 /**< max number of regulatory rules */
14731473
#else

components/esp_wifi/regulatory/esp_wifi_regulatory.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ typedef enum {
8989

9090
const wifi_regdomain_t regdomain_table[WIFI_MAX_SUPPORT_COUNTRY_NUM] = {
9191
{"01", ESP_WIFI_REGULATORY_TYPE_DEFAULT},
92+
{"EU", ESP_WIFI_REGULATORY_TYPE_CE},
9293
{"AD", ESP_WIFI_REGULATORY_TYPE_CE},
9394
{"AE", ESP_WIFI_REGULATORY_TYPE_IFETEL},
9495
{"AF", ESP_WIFI_REGULATORY_TYPE_AF},
@@ -1067,6 +1068,7 @@ typedef enum {
10671068

10681069
const wifi_regdomain_t regdomain_table[WIFI_MAX_SUPPORT_COUNTRY_NUM] = {
10691070
{"01", ESP_WIFI_REGULATORY_TYPE_DEFAULT},
1071+
{"EU", ESP_WIFI_REGULATORY_TYPE_CE},
10701072
{"AD", ESP_WIFI_REGULATORY_TYPE_CE},
10711073
{"AE", ESP_WIFI_REGULATORY_TYPE_CE},
10721074
{"AF", ESP_WIFI_REGULATORY_TYPE_CE},

components/esp_wifi/regulatory/esp_wifi_regulatory.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ country 01:
4444
# Channel 52 - 64
4545
(5250 - 5330 @ 80), (20), NO-IR, DFS, AUTO-BW
4646

47+
# EU decision 2005/513/EC: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02005D0513-20070213
48+
# EU decision 2006/771/EC: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02008D0432-20080611
49+
# Harmonized CEPT countries: https://www.ecodocdb.dk/download/25c41779-cd6e/Rec7003e.pdf
50+
country EU: DFS-ETSI
51+
(2400 - 2483.5 @ 40), (100 mW)
52+
(5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
53+
(5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW, wmmrule=ETSI
54+
(5470 - 5725 @ 160), (500 mW), DFS, wmmrule=ETSI
55+
# short range devices (ETSI EN 300 440-1)
56+
(5725 - 5875 @ 80), (25 mW)
57+
4758
# AD as part of CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893)
4859
# and 2006/771/EC (amended by 2008/432/EC, Short-Range Devices, EN 300 440)
4960
# EU decision 2005/513/EC: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02005D0513-20070213

0 commit comments

Comments
 (0)