From ff29aef5af3a2d1371e47e47225e833b7f57bd2b Mon Sep 17 00:00:00 2001 From: Hui Bai Date: Mon, 11 Aug 2025 10:27:15 +0800 Subject: [PATCH] samples: net: wifi: Add TLSv1.3 support in wifi example Add TLSv1.3 support in wifi example for RW612 and IW610. Signed-off-by: Hui Bai --- modules/hostap/CMakeLists.txt | 4 ++++ modules/hostap/Kconfig | 8 ++++++++ west.yml | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/hostap/CMakeLists.txt b/modules/hostap/CMakeLists.txt index 5c750f545d2ed..f3233bb2cfbbc 100644 --- a/modules/hostap/CMakeLists.txt +++ b/modules/hostap/CMakeLists.txt @@ -572,6 +572,10 @@ zephyr_library_compile_definitions_ifdef(CONFIG_EAP_FAST EAP_FAST ) +zephyr_library_compile_definitions_ifdef(CONFIG_EAP_TLSV1_3 + EAP_TLSV1_3 +) + zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_EAPOL ${HOSTAP_SRC_BASE}/eapol_supp/eapol_supp_sm.c ${HOSTAP_SRC_BASE}/eap_peer/eap.c diff --git a/modules/hostap/Kconfig b/modules/hostap/Kconfig index aa6d5d8689f68..58bef8e5ff0af 100644 --- a/modules/hostap/Kconfig +++ b/modules/hostap/Kconfig @@ -299,6 +299,14 @@ config EAP_ALL select EAP_TTLS select EAP_MSCHAPV2 default y + +config EAP_TLSV1_3 + bool "EAP TLSv1.3 support" + select MBEDTLS_TLS_VERSION_1_3 + select MBEDTLS_TLS_SESSION_TICKETS + select MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED + select MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED + select MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED endif # WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE config WIFI_NM_WPA_SUPPLICANT_WPA3 diff --git a/west.yml b/west.yml index ed867232c1c64..e881caae49add 100644 --- a/west.yml +++ b/west.yml @@ -210,7 +210,7 @@ manifest: groups: - hal - name: hal_nxp - revision: 10f1faf465440e48ecad1ab2b5adee8c72f41157 + revision: 455abbda0e2faa53086ad883ce843957f871ddc2 path: modules/hal/nxp groups: - hal @@ -281,7 +281,7 @@ manifest: - hal - name: hostap path: modules/lib/hostap - revision: c55683ce514953277be5566fceb38c4c2485f1e1 + revision: pull/98/head - name: liblc3 revision: 48bbd3eacd36e99a57317a0a4867002e0b09e183 path: modules/lib/liblc3