Skip to content

Commit 1f6fe16

Browse files
committed
fix(config): Disable WiFi remote impl if ESP_HOST_WIFI_ENABLED=y
1 parent a4fd5e1 commit 1f6fe16

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

components/esp_wifi_remote/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")
22

3-
if(NOT CONFIG_ESP_WIFI_ENABLED)
3+
if(NOT CONFIG_ESP_WIFI_ENABLED AND NOT CONFIG_ESP_HOST_WIFI_ENABLED)
44
set(src_wifi_is_remote esp_wifi_remote.c ${IDF_VER_DIR}/esp_wifi_with_remote.c esp_wifi_remote_net.c)
55
endif()
66

components/esp_wifi_remote/Kconfig

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
11
menu "Wi-Fi Remote"
22
config ESP_WIFI_REMOTE_ENABLED
33
bool
4-
default y
4+
default y if !ESP_HOST_WIFI_ENABLED
5+
default n if ESP_HOST_WIFI_ENABLED
56

6-
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.slave_select.in"
7-
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.soc_wifi_caps.in"
8-
orsource "./Kconfig.rpc.in"
7+
if ESP_WIFI_REMOTE_ENABLED
8+
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.slave_select.in"
9+
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.soc_wifi_caps.in"
10+
orsource "./Kconfig.rpc.in"
911

10-
menu "Wi-Fi configuration"
11-
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.wifi.in"
12-
endmenu
12+
menu "Wi-Fi configuration"
13+
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.wifi.in"
14+
endmenu
15+
endif
16+
if !ESP_WIFI_REMOTE_ENABLED
17+
18+
# This helper variables is only used to indicate that Wi-Fi remote if OFF
19+
# and explains why
20+
config ESP_WIFI_REMOTE_IS_DISABLED
21+
bool "Wi-Fi Remote is disabled (Host Wi-Fi is ON)"
22+
default y
23+
help
24+
Wi-Fi Remote is disabled because ESP_HOST_WIFI_ENABLED is ON.
25+
These options are mutually exclusive.
26+
Disable ESP_HOST_WIFI_ENABLED to use ESP_WIFI_REMOTE.
27+
28+
config ESP_WIFI_REMOTE_FORCE_DISABLED
29+
bool
30+
default y
31+
select ESP_WIFI_REMOTE_IS_DISABLED
32+
endif
1333

1434
endmenu # Wi-Fi Remote

0 commit comments

Comments
 (0)