File tree Expand file tree Collapse file tree 2 files changed +28
-8
lines changed
components/esp_wifi_remote Expand file tree Collapse file tree 2 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 1
1
set (IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " )
2
2
3
- if (NOT CONFIG_ESP_WIFI_ENABLED)
3
+ if (NOT CONFIG_ESP_WIFI_ENABLED AND NOT CONFIG_ESP_HOST_WIFI_ENABLED )
4
4
set (src_wifi_is_remote esp_wifi_remote.c ${IDF_VER_DIR} /esp_wifi_with_remote.c esp_wifi_remote_net.c)
5
5
endif ()
6
6
Original file line number Diff line number Diff line change 1
1
menu "Wi-Fi Remote"
2
2
config ESP_WIFI_REMOTE_ENABLED
3
3
bool
4
- default y
4
+ default y if !ESP_HOST_WIFI_ENABLED
5
+ default n if ESP_HOST_WIFI_ENABLED
5
6
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"
9
11
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
13
33
14
34
endmenu # Wi-Fi Remote
You can’t perform that action at this time.
0 commit comments