Skip to content

Commit fc608cc

Browse files
committed
feat(wifi_remote): Add support for EAP client API
1 parent 4a2219b commit fc608cc

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.github/workflows/smoke_compat.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
matrix:
3636
idf_ver: ["latest", "release-v5.5", "release-v5.4", "release-v5.3", "v5.4", "v5.4.1", "v5.3.3", "v5.3.2", "v5.3.1"]
3737
idf_target: ["esp32p4", "esp32h2", "esp32s3"]
38-
test: [ { app: idf_mqtt_example, path: "examples/protocols/mqtt/tcp" }]
38+
test: [ { app: idf_mqtt_example, path: "examples/protocols/mqtt/tcp" }, { app: wifi_enterprise, path: "examples/wifi/wifi_enterprise" }]
3939
runs-on: ubuntu-latest
4040
container: espressif/idf:${{ matrix.idf_ver }}
4141
steps:
@@ -52,6 +52,12 @@ jobs:
5252
pip install idf-component-manager idf-build-apps --upgrade
5353
export OVERRIDE_PATH=`pwd`/components/esp_wifi_remote
5454
echo ${OVERRIDE_PATH}
55+
if [ "${{matrix.test.app}}" = "wifi_enterprise" ]; then
56+
cd ${IDF_PATH}/${{matrix.test.path}}
57+
echo -e "dependencies:\n espressif/esp_wifi_remote:\n version: \"*\"\n rules:\n - if: \"target in [esp32p4, esp32h2]\"" > main/idf_component.yml
58+
echo -e "CONFIG_ESP_WIFI_REMOTE_EAP_ENABLED=y" > sdkconfig.defaults
59+
cd -
60+
fi
5561
sed -i '/espressif\/esp_wifi_remote:/a \ \ \ \ override_path: "${OVERRIDE_PATH}"' ${IDF_PATH}/${{matrix.test.path}}/main/idf_component.yml
5662
cat ${IDF_PATH}/${{matrix.test.path}}/main/idf_component.yml
5763
export PEDANTIC_FLAGS="-DIDF_CI_BUILD -Werror -Werror=deprecated-declarations -Werror=unused-variable -Werror=unused-but-set-variable -Werror=unused-function"

components/esp_wifi_remote/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ set(TARGET_INCLUDE_TYPE "INTERFACE")
3131
set(TARGET_SOURCE_TYPE "INTERFACE")
3232
if(NOT CONFIG_ESP_WIFI_ENABLED AND NOT CONFIG_ESP_HOST_WIFI_ENABLED)
3333
set(src_wifi_with_remote ${IDF_VER_DIR}/esp_wifi_with_remote.c)
34+
if(CONFIG_ESP_WIFI_REMOTE_EAP_ENABLED)
35+
list(APPEND src_wifi_with_remote ${IDF_VER_DIR}/esp_eap_client_with_remote.c)
36+
endif()
3437
# We need to build wifi sources with wifi-remote properties, so the injected wifi headers are used
3538
get_target_property(wifi_sources ${wifi} SOURCES)
3639
set_target_properties(${wifi} PROPERTIES SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/dummy_src.c")
@@ -43,6 +46,9 @@ if(CONFIG_ESP_WIFI_REMOTE_LIBRARY_EPPP)
4346
set(TARGET_SOURCE_TYPE "PRIVATE")
4447
else()
4548
set(src_wifi_remote_weak ${IDF_VER_DIR}/esp_wifi_remote_weak.c)
49+
if(CONFIG_ESP_WIFI_REMOTE_EAP_ENABLED)
50+
list(APPEND src_wifi_remote_weak ${IDF_VER_DIR}/esp_eap_client_remote_weak.c)
51+
endif()
4652
endif()
4753

4854

@@ -59,3 +65,8 @@ if(NOT CONFIG_ESP_WIFI_ENABLED AND NOT CONFIG_ESP_HOST_WIFI_ENABLED)
5965
endif()
6066

6167
target_link_libraries(${wifi} PUBLIC ${COMPONENT_LIB})
68+
69+
if(CONFIG_ESP_WIFI_REMOTE_EAP_ENABLED)
70+
idf_component_optional_requires(PUBLIC wpa_supplicant)
71+
# target_link_libraries(${COMPONENT_LIB} PUBLIC wpa_supplicant)
72+
endif()

components/esp_wifi_remote/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ menu "Wi-Fi Remote"
99
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.soc_wifi_caps.in"
1010
orsource "./Kconfig.rpc.in"
1111

12+
config ESP_WIFI_REMOTE_EAP_ENABLED
13+
bool "Enable EAP client remote API"
14+
default n
15+
depends on WIFI_RMT_ENTERPRISE_SUPPORT
16+
help
17+
When enabled, the EAP client remote API will be available.
18+
This allows remote control of EAP authentication functions.
19+
1220
menu "Wi-Fi configuration"
1321
orsource "./idf_v$ESP_IDF_VERSION/Kconfig.wifi.in"
1422
endmenu

0 commit comments

Comments
 (0)