Skip to content

Commit 69b9374

Browse files
committed
hostap: add DPP support
Add kconfig and cmake to support DPP (Easy Connect). Signed-off-by: Fengming Ye <[email protected]>
1 parent 7c08b75 commit 69b9374

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

modules/hostap/CMakeLists.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,33 @@ zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_NW_SEL_RE
366366
CONFIG_NW_SEL_RELIABILITY
367367
)
368368

369+
zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
370+
${WIFI_NM_WPA_SUPPLICANT_BASE}/dpp_supplicant.c
371+
${WIFI_NM_WPA_SUPPLICANT_BASE}/offchannel.c
372+
${WIFI_NM_WPA_SUPPLICANT_BASE}/gas_query.c
373+
374+
${HOSTAP_SRC_BASE}/ap/dpp_hostapd.c
375+
${HOSTAP_SRC_BASE}/ap/gas_query_ap.c
376+
${HOSTAP_SRC_BASE}/ap/gas_serv.c
377+
378+
${HOSTAP_SRC_BASE}/common/dpp_tcp.c
379+
${HOSTAP_SRC_BASE}/common/dpp.c
380+
${HOSTAP_SRC_BASE}/common/dpp_pkex.c
381+
${HOSTAP_SRC_BASE}/common/dpp_crypto.c
382+
${HOSTAP_SRC_BASE}/common/dpp_auth.c
383+
${HOSTAP_SRC_BASE}/common/dpp_reconfig.c
384+
${HOSTAP_SRC_BASE}/common/gas_server.c
385+
${HOSTAP_SRC_BASE}/common/gas.c
386+
${HOSTAP_SRC_BASE}/common/dpp_backup.c
387+
388+
${HOSTAP_SRC_BASE}/crypto/aes-siv.c
389+
390+
${HOSTAP_SRC_BASE}/utils/json.c
391+
${HOSTAP_SRC_BASE}/utils/ip_addr.c
392+
393+
${HOSTAP_SRC_BASE}/tls/asn1.c
394+
)
395+
369396
# crypto mbedtls related
370397
if(CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO)
371398
zephyr_library_sources(

modules/hostap/Kconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,18 @@ config WIFI_NM_WPA_SUPPLICANT_BSS_MAX_IDLE_TIME
202202
config WIFI_NM_WPA_SUPPLICANT_NO_DEBUG
203203
bool "Disable printing of debug messages, saves code size significantly"
204204

205+
206+
config WIFI_NM_WPA_SUPPLICANT_DPP
207+
bool "WFA Easy Connect DPP"
208+
select DPP
209+
select DPP2
210+
select DPP3
211+
select GAS
212+
select GAS_SERVER
213+
select OFFCHANNEL
214+
select MBEDTLS_X509_CSR_WRITE_C
215+
select MBEDTLS_X509_CSR_PARSE_C
216+
205217
# Create hidden config options that are used in hostap. This way we do not need
206218
# to mark them as allowed for CI checks, and also someone else cannot use the
207219
# same name options.
@@ -282,6 +294,9 @@ config P2P
282294
config GAS
283295
bool
284296

297+
config GAS_SERVER
298+
bool
299+
285300
config OFFCHANNEL
286301
bool
287302

@@ -386,6 +401,15 @@ config RRM
386401
config WMM_AC
387402
bool
388403

404+
config DPP
405+
bool
406+
407+
config DPP2
408+
bool
409+
410+
config DPP3
411+
bool
412+
389413
config NW_SEL_RELIABILITY
390414
bool
391415
default y

0 commit comments

Comments
 (0)