Skip to content

Commit e9ac41e

Browse files
committed
feat(wifi_remote): Support for IDF v5.4 via a separate dir
1 parent 7ca5ed1 commit e9ac41e

22 files changed

+816
-774
lines changed

components/esp_wifi_remote/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
set(IDF_VER_DIR "idf_v$ENV{ESP_IDF_VERSION}")
2+
13
if(NOT CONFIG_ESP_WIFI_ENABLED)
2-
set(src_wifi_is_remote esp_wifi_remote.c esp_wifi_with_remote.c esp_wifi_remote_net.c)
4+
set(src_wifi_is_remote esp_wifi_remote.c ${IDF_VER_DIR}/esp_wifi_with_remote.c esp_wifi_remote_net.c)
35
endif()
46

57
if(CONFIG_ESP_WIFI_REMOTE_LIBRARY_EPPP)
68
set(src_wifi_remote_eppp eppp/wifi_remote_rpc_client.cpp eppp/wifi_remote_rpc_server.cpp eppp/eppp_init.c)
79
else()
8-
set(src_wifi_remote_weak esp_wifi_remote_weak.c)
10+
set(src_wifi_remote_weak ${IDF_VER_DIR}/esp_wifi_remote_weak.c)
911
endif()
1012

11-
idf_component_register(INCLUDE_DIRS include
13+
idf_component_register(INCLUDE_DIRS include ${IDF_VER_DIR}/include
1214
SRCS ${src_wifi_remote_weak}
1315
${src_wifi_remote_eppp}
1416
${src_wifi_is_remote}

components/esp_wifi_remote/Kconfig

Lines changed: 5 additions & 724 deletions
Large diffs are not rendered by default.

components/esp_wifi_remote/Kconfig.slave_select.in renamed to components/esp_wifi_remote/idf_v5.4/Kconfig.slave_select.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616
bool "esp32c6"
1717
config SLAVE_IDF_TARGET_ESP32C5
1818
bool "esp32c5"
19+
config SLAVE_IDF_TARGET_ESP32C61
20+
bool "esp32c61"
1921
endchoice

components/esp_wifi_remote/Kconfig.soc_wifi_caps.in renamed to components/esp_wifi_remote/idf_v5.4/Kconfig.soc_wifi_caps.in

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,43 @@ if SLAVE_IDF_TARGET_ESP32C5
267267
default y
268268

269269
endif # ESP32C5
270+
271+
if SLAVE_IDF_TARGET_ESP32C61
272+
273+
config SLAVE_SOC_WIFI_SUPPORTED
274+
bool
275+
default y
276+
277+
config SLAVE_SOC_WIFI_LIGHT_SLEEP_CLK_WIDTH
278+
int
279+
default 12
280+
281+
config SLAVE_SOC_WIFI_HW_TSF
282+
bool
283+
default y
284+
285+
config SLAVE_SOC_WIFI_FTM_SUPPORT
286+
bool
287+
default n
288+
289+
config SLAVE_SOC_WIFI_GCMP_SUPPORT
290+
bool
291+
default y
292+
293+
config SLAVE_SOC_WIFI_WAPI_SUPPORT
294+
bool
295+
default y
296+
297+
config SLAVE_SOC_WIFI_CSI_SUPPORT
298+
bool
299+
default y
300+
301+
config SLAVE_SOC_WIFI_MESH_SUPPORT
302+
bool
303+
default y
304+
305+
config SLAVE_SOC_WIFI_HE_SUPPORT
306+
bool
307+
default y
308+
309+
endif # ESP32C61

components/esp_wifi_remote/idf_v5.4/Kconfig.wifi.in

Lines changed: 726 additions & 0 deletions
Large diffs are not rendered by default.

components/esp_wifi_remote/include/esp_wifi_types_native.h renamed to components/esp_wifi_remote/idf_v5.4/include/esp_wifi_types_native.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ extern "C" {
1818

1919
#if CONFIG_SLAVE_IDF_TARGET_ESP32C2
2020
#define ESP_WIFI_MAX_CONN_NUM (4) /**< max number of stations which can connect to ESP32C2 soft-AP */
21-
#elif CONFIG_SLAVE_IDF_TARGET_ESP32C3 || CONFIG_SLAVE_IDF_TARGET_ESP32C6 || CONFIG_SLAVE_IDF_TARGET_ESP32C5
22-
#define ESP_WIFI_MAX_CONN_NUM (10) /**< max number of stations which can connect to ESP32C3 soft-AP */
21+
#elif CONFIG_SLAVE_IDF_TARGET_ESP32C3 || CONFIG_SLAVE_IDF_TARGET_ESP32C6 || CONFIG_SLAVE_IDF_TARGET_ESP32C5 || CONFIG_SLAVE_IDF_TARGET_ESP32C61
22+
#define ESP_WIFI_MAX_CONN_NUM (10) /**< max number of stations which can connect to ESP32C3/ESP32C6/ESP32C5/ESP32C61 soft-AP */
2323
#else
2424
#define ESP_WIFI_MAX_CONN_NUM (15) /**< max number of stations which can connect to ESP32/ESP32S3/ESP32S2 soft-AP */
2525
#endif

0 commit comments

Comments
 (0)