-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(config): Disable WiFi remote impl if ESP_HOST_WIFI_ENABLED=y
- Loading branch information
1 parent
a4fd5e1
commit 1f6fe16
Showing
2 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
menu "Wi-Fi Remote" | ||
config ESP_WIFI_REMOTE_ENABLED | ||
bool | ||
default y | ||
default y if !ESP_HOST_WIFI_ENABLED | ||
default n if ESP_HOST_WIFI_ENABLED | ||
|
||
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.slave_select.in" | ||
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.soc_wifi_caps.in" | ||
orsource "./Kconfig.rpc.in" | ||
if ESP_WIFI_REMOTE_ENABLED | ||
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.slave_select.in" | ||
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.soc_wifi_caps.in" | ||
orsource "./Kconfig.rpc.in" | ||
|
||
menu "Wi-Fi configuration" | ||
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.wifi.in" | ||
endmenu | ||
menu "Wi-Fi configuration" | ||
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.wifi.in" | ||
endmenu | ||
endif | ||
if !ESP_WIFI_REMOTE_ENABLED | ||
|
||
# This helper variables is only used to indicate that Wi-Fi remote if OFF | ||
# and explains why | ||
config ESP_WIFI_REMOTE_IS_DISABLED | ||
bool "Wi-Fi Remote is disabled (Host Wi-Fi is ON)" | ||
default y | ||
help | ||
Wi-Fi Remote is disabled because ESP_HOST_WIFI_ENABLED is ON. | ||
These options are mutually exclusive. | ||
Disable ESP_HOST_WIFI_ENABLED to use ESP_WIFI_REMOTE. | ||
|
||
config ESP_WIFI_REMOTE_FORCE_DISABLED | ||
bool | ||
default y | ||
select ESP_WIFI_REMOTE_IS_DISABLED | ||
endif | ||
|
||
endmenu # Wi-Fi Remote |