Skip to content

Commit

Permalink
fix(network_prov): Compile sources for WIFI_REMOTE case
Browse files Browse the repository at this point in the history
 - In cases, such as ESP32-P4, we do not have native Wi-Fi and it uses other
   mechanisms., such as esp-hosted. esp-wifi-remote is used in this case.
 - Provisioning component currently check if Wi-Fi is natively
   enabled for it to compile wifi_provisioning sources.
   This causes link errors when enabling the provisiong for ESP32-P4
 - Extend the check for Wi-Fi remote as well, so the sources are compiled
  • Loading branch information
vikramdattu committed Feb 17, 2025
1 parent 52be198 commit a82202f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion network_provisioning/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(srcs "src/network_config.c"
"proto-c/network_ctrl.pb-c.c"
"proto-c/network_constants.pb-c.c")

if(CONFIG_ESP_WIFI_ENABLED AND CONFIG_ESP_WIFI_SOFTAP_SUPPORT)
if((CONFIG_ESP_WIFI_ENABLED OR CONFIG_ESP_WIFI_REMOTE_ENABLED) AND CONFIG_ESP_WIFI_SOFTAP_SUPPORT)
list(APPEND srcs "src/scheme_softap.c")
endif()

Expand Down
4 changes: 2 additions & 2 deletions network_provisioning/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ menu "Network Provisioning Manager"

choice NETWORK_PROV_NETWORK_TYPE
prompt "Network Type"
default NETWORK_PROV_NETWORK_TYPE_WIFI if ESP_WIFI_ENABLED
default NETWORK_PROV_NETWORK_TYPE_WIFI if (ESP_WIFI_ENABLED || ESP_WIFI_REMOTE_ENABLED)
default NETWORK_PROV_NETWORK_TYPE_THREAD if !ESP_WIFI_ENABLE && OPENTHREAD_ENABLED

config NETWORK_PROV_NETWORK_TYPE_WIFI
bool "Network Type - Wi-Fi"
depends on ESP_WIFI_ENABLED
depends on ESP_WIFI_ENABLED || ESP_WIFI_REMOTE_ENABLED

config NETWORK_PROV_NETWORK_TYPE_THREAD
bool "Network Type - Thread"
Expand Down
2 changes: 1 addition & 1 deletion network_provisioning/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.0.3"
version: "1.0.4"
description: Network provisioning component for Wi-Fi or Thread devices
url: https://github.com/espressif/idf-extra-components/tree/master/network_provisioning
dependencies:
Expand Down

0 comments on commit a82202f

Please sign in to comment.