Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi: Hostap prepare upmerge #11899

Merged
merged 110 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
b2b1aec
hostap: Add support for Zephyr RTOS (#1)
sr1dh48r Jul 7, 2022
123c196
hostap: Fix build error (#4)
krish2718 Jul 27, 2023
4d4046b
hostap: Fix crash in case supplicant init fails (#5)
krish2718 Jul 27, 2023
94367f0
hostap: Cleanups related to Wi-Fi shell (#6)
krish2718 Jul 27, 2023
596dd0b
hostap: Compile out logs based on configured log level
Damian-Nordic Aug 3, 2022
c78fb47
hostap: Redesign the events passing to wpa_supplicant from driver
krish2718 Jul 27, 2023
dd23915
hostap: Restructure wpa_supplicant interface handle
krish2718 Jul 27, 2023
b831efe
hostap: Implement nRF Wi-Fi management APIs
rado17 Jul 21, 2022
7459df4
hostap: Migrate wpa_cli from NCS/sdk-nrf
krish2718 Jul 27, 2023
e77cfd9
hostap: Remove display scan
krish2718 Jul 27, 2023
8f75d5f
hostap: Use UNIX sockets instead of networking sockets
krish2718 Jul 27, 2023
7280a76
hostap: Fix WPA CLI build
krish2718 Jul 27, 2023
77d2633
hostap: Enable sub-menu only if menu is selected
krish2718 Jul 27, 2023
387d012
hostap: Fix the WPA_SUPP help
krish2718 Jul 27, 2023
71b7961
hostap: COV-175332: Fix memory leak
krish2718 Jul 27, 2023
5eb102d
hostap: Add a null check for ifname
krish2718 Jul 27, 2023
f4773ff
hostap: Support signal polling
rado17 Sep 2, 2022
a2851bd
hostap: Wait for WPA supplicant initialization
krish2718 Jul 27, 2023
e2e6bb9
hostap: Fix both API and Shell usage
krish2718 Jul 27, 2023
9c765bd
hostap: Add support for channel selection
krish2718 Jul 27, 2023
6ad50c1
hostap: Enable support for MBO
ajayparida Sep 27, 2022
bd554bd
hostap: Increase log buffer size
krish2718 Jul 27, 2023
cc7b6c7
hostap: Fix mutex unlock
krish2718 Jul 27, 2023
049fd71
hostap: Choose necessary MbedTLS Kconfig symbols by default
krish2718 Jul 27, 2023
e440188
hostap: Fix Zephyr includes with latest up-merge
krish2718 Jul 27, 2023
7d25d00
hostap: Fix deadlock during connect
krish2718 Jul 27, 2023
01da7d9
hostap: (dis)connection status: Terminate gracefully
krish2718 Jul 27, 2023
5166f5f
hostap: Fix header file prefix
krish2718 Jul 27, 2023
8af18d1
hostap: Remove nRF Wi-Fi management
krish2718 Jul 27, 2023
d69cff6
hostap: wifi: MBO Pre-certification bugfixes
sr1dh48r Oct 18, 2022
b40ea18
hostap: Fix link address buffer overflow
krish2718 Jul 27, 2023
48d16b1
hostap: Use the PMF setting from the user
krish2718 Jul 27, 2023
7bfb273
hostap: Fix sending terminate event for first requests
krish2718 Jul 27, 2023
2db64c4
hostap: Remove unncessary error message
krish2718 Jul 27, 2023
35130e1
hostap: Explicitly enabled CBC/CTR
krish2718 Jul 27, 2023
11e53d4
hostap: Fixed the connection timeout handling,
markaj-nordic Nov 25, 2022
e50037e
hostap: Fix handling connection timeout equal to 0
Damian-Nordic Nov 29, 2022
10d785c
hostap: Display correct link mode in "wifi status" output
rado17 Oct 27, 2022
dad540d
hostap: Add support for list_networks
krish2718 Jul 27, 2023
b600f8d
hostap: Implement connect and disconnect events to Zephyr
krish2718 Jul 27, 2023
b40bdd0
hostap: Add interface up check for connect
sachinthegreen Jan 9, 2023
5ce68ee
hostap: Mark WPA supplicant as experimental
Jan 11, 2023
6d27bed
hostap: Fix duplicate (dis)connection events
krish2718 Jul 27, 2023
41ab6b9
hostap: Rename the namespace
krish2718 Jul 27, 2023
3ad3be9
hostap: Add support for WPA CLI zephyr
krish2718 Jul 27, 2023
1f0d9fb
hostap: Make WPA CLI as passthrough
krish2718 Jul 27, 2023
a8bfb28
hostap: Use WPA CLI to interact with supplicant
krish2718 Jul 27, 2023
d985347
hostap: Fix WPA2-PSK-SHA256 security
krish2718 Jul 27, 2023
0a38ea4
hostap: Fix data access violation
Feb 6, 2023
96d486a
hostap: Remove editing support
Feb 7, 2023
7cff301
hostap: Fix namespaces
Feb 4, 2023
702cb99
hostap: Add interfaces hotplugging support
Feb 4, 2023
cf44c42
hostap: Implement channel in connect command
Feb 4, 2023
ad80f6b
hostap: Removed unused prototype
Feb 6, 2023
0e78a7a
hostap: Check return value
Feb 6, 2023
f161fe2
hostap: Improve the security check
Feb 6, 2023
dc6035b
hostap: Fix socketpair size for control interface
Feb 7, 2023
3a514d4
hostap: Indent using tabs
Feb 8, 2023
30a8657
hostap: Increase network management stack size
Feb 8, 2023
a98068b
hostap: Mark Wi-Fi supported for nRF7002DK
Feb 7, 2023
fa64b6b
hostap: Configure maximum polling sockets
Feb 13, 2023
a570d53
hostap: Protect events with a mutex
krish2718 Jul 27, 2023
4be5c37
hostap: Remove the dummy socket
krish2718 Jul 27, 2023
eb29416
hostap: Add global event support
krish2718 Jul 27, 2023
3ef5c7e
hostap: Fix a typo
krish2718 Jul 27, 2023
a1c3fd4
hostap: Notify WPA supplicant before removing interface
krish2718 Jul 27, 2023
f31adcf
hostap: Fix the return value check
krish2718 Jul 27, 2023
78bf31c
hostap: Decrease logs
krish2718 Jul 27, 2023
cdabb19
hostap: Mark nRF9160 as supported
krish2718 Jul 27, 2023
53c208e
hostap: Fix unused variable warning
krish2718 Jul 27, 2023
5b86615
hostap: Fix hidden SSID association
krish2718 Jul 27, 2023
8520eb0
hostap: Remove base64 utilities
Mar 8, 2023
dd26027
hostap: Clean boot log
sachinthegreen Mar 29, 2023
2cb3ebe
hostap: Fix build failure with signal API
Mar 28, 2023
d607c09
hostap: Enable POSIX_CLOCK automatically
Mar 28, 2023
7136401
hostap: Make EAPoL Supplicant separate
rado17 Apr 10, 2023
6337565
hostap: Fix WPA3 PMKSA caching
rado17 Apr 10, 2023
903f817
hostap: hostap: Read beacon interval and DTIM period
rado17 Jan 10, 2023
9e180ef
hostap: zephyr: remove unnecessary SYS_INIT()
mbolivar-nordic Apr 18, 2023
8fa056b
hostap: Rectify error handling while fetching connection info
rado17 May 2, 2023
f95b65f
hostap: Fix handling of IEs in authentication
Apr 27, 2023
b4ccaff
hostap: Fix MbedTLS HEAP
May 10, 2023
b6e78ef
hostap: Add missing crypto dependencies
Mar 20, 2023
387ebf2
hostap: Enable SuiteB
Mar 20, 2023
add30b8
hostap: Fix no crypto build
Mar 29, 2023
766f2a4
hostap: Switch to PSA Kconfig
Mar 29, 2023
75255ab
hostap: hostap: Read peer TWT capability
ajayparida Jan 31, 2023
1999456
hostap: Impelment blocking disconnect
May 15, 2023
f777f97
hostap: Send disconnect complete
May 15, 2023
0be6df0
hostap: Notify connection timeout
rado17 May 15, 2023
0c8cfc8
hostap: Add error logs
May 23, 2023
26c1ca6
hostap: Process only Wi-Fi interface events
krish2718 Jul 27, 2023
693f28c
hostap: crypto: Remove remnants of mbedtls entropy usage
joerchan Jun 8, 2023
ce489f0
hostap: Generate supplicant ready event
rado17 Jun 5, 2023
f7d9233
hostap: Add an option to disable all debugging
krish2718 Jul 27, 2023
2ce1165
hostap: Display correct key mgmt algo
rado17 Jun 23, 2023
9b6031d
hostap: Fix memory leak for connection info
krish2718 Jul 27, 2023
4053d19
hostap: Register as a Wi-Fi network manager
krish2718 Jul 27, 2023
d462f38
hostap: Re-arrange functions
krish2718 Jul 27, 2023
a71238e
hostap: Implement offloaded Wi-Fi management ops
krish2718 Jul 27, 2023
e878041
hostap: Fix the build failure
krish2718 Jul 27, 2023
3a1baf4
hostap: Fix the define for EAP WSC
krish2718 Jul 27, 2023
acaa02e
hostap: Include BSS max idle timeout in association request
krish2718 Jul 27, 2023
115d76e
hostap: zephyr: Kconfig: Fix PSA dependency on random numbers
joerchan Jul 7, 2023
c906d71
hostap: zephyr: kconfig: Enable AES key type for AES block cipher sup…
joerchan Jul 12, 2023
3124289
modules: Add hostap build support
krish2718 Jul 27, 2023
7baefcf
manifest: sdk-hostap: Update to snapshot tag
krish2718 Aug 1, 2023
9dd023f
manifest: sdk-hostap: Pull upmerge prep changes
krish2718 Jul 27, 2023
9e4a37d
hostap: Checkpatch fixes
krish2718 Jul 27, 2023
2fa4b60
modules: hostap: Fix missing license headers
krish2718 Jul 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .checkpatch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
--ignore ENOSYS
--ignore IS_ENABLED_CONFIG
--ignore EMBEDDED_FUNCTION_NAME
--ignore MACRO_WITH_FLOW_CONTROL
--exclude ext
--exclude samples/matter/.*/src
--exclude applications/matter_bridge/src
Expand Down
1 change: 1 addition & 0 deletions modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
add_subdirectory_ifdef(CONFIG_BUILD_WITH_TFM tfm/zephyr)
add_subdirectory_ifdef(CONFIG_MEMFAULT memfault-firmware-sdk)
add_subdirectory_ifdef(CONFIG_MCUBOOT mcuboot/hooks)
add_subdirectory(hostap)
1 change: 1 addition & 0 deletions modules/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@

osource "$(NCS_MEMFAULT_FIRMWARE_SDK_KCONFIG)"
rsource "tfm/zephyr/Kconfig"
rsource "hostap/Kconfig"
348 changes: 348 additions & 0 deletions modules/hostap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,348 @@
#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

if(CONFIG_WPA_SUPP)

zephyr_library()

set(HOSTAP_BASE ${CMAKE_CURRENT_SOURCE_DIR}/../../../modules/lib/hostap)
set(WPA_SUPPLICANT_BASE ${HOSTAP_BASE}/wpa_supplicant)
set(COMMON_SRC_BASE ${HOSTAP_BASE}/src)

set(CMAKE_EXE_LINKER_FLAGS "--specs=nosys.specs -lnosys")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMISSING_SYSCALL_NAMES")

zephyr_compile_definitions(
CONFIG_ZEPHYR
)

zephyr_include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/src
${HOSTAP_BASE}/
${WPA_SUPPLICANT_BASE}/
${COMMON_SRC_BASE}/
)

zephyr_library_compile_definitions(
TLS_DEFAULT_CIPHERS=\""DEFAULT:!EXP:!LOW"\"
CONFIG_SHA256
CONFIG_SME
CONFIG_NO_CONFIG_WRITE
CONFIG_NO_CONFIG_BLOBS
CONFIG_WPA_S_ZEPHYR_L2_WIFI_MGMT
CONFIG_CTRL_IFACE
CONFIG_CTRL_IFACE_ZEPHYR
CONFIG_NO_RANDOM_POOL
CONFIG_MBO
CONFIG_WNM
CONFIG_SUITEB192
)

zephyr_library_compile_definitions_ifndef(CONFIG_WPA_SUPP_CRYPTO
CONFIG_NO_PBKDF2
)

zephyr_library_compile_definitions_ifdef(CONFIG_WPA_SUPP_NO_DEBUG
CONFIG_NO_STDOUT_DEBUG
)

zephyr_library_include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/src
${HOSTAP_BASE}/
${COMMON_SRC_BASE}/utils
${COMMON_SRC_BASE}/drivers
${HOSTAP_BASE}/src
${ZEPHYR_BASE}/include
${ZEPHYR_BASE}/include/net
)

zephyr_library_sources(
${COMMON_SRC_BASE}/common/wpa_common.c
${COMMON_SRC_BASE}/common/ieee802_11_common.c
${COMMON_SRC_BASE}/common/hw_features_common.c
${COMMON_SRC_BASE}/common/wpa_ctrl.c
${COMMON_SRC_BASE}/common/cli.c

${COMMON_SRC_BASE}/drivers/driver_common.c
${COMMON_SRC_BASE}/drivers/drivers.c
${COMMON_SRC_BASE}/l2_packet/l2_packet_zephyr.c
${COMMON_SRC_BASE}/drivers/driver_zephyr.c
${COMMON_SRC_BASE}/utils/common.c
${COMMON_SRC_BASE}/utils/wpabuf.c
${COMMON_SRC_BASE}/utils/bitfield.c
${COMMON_SRC_BASE}/utils/eloop.c
${COMMON_SRC_BASE}/utils/os_zephyr.c
${COMMON_SRC_BASE}/utils/radiotap.c
${WPA_SUPPLICANT_BASE}/config.c
${WPA_SUPPLICANT_BASE}/notify.c
${WPA_SUPPLICANT_BASE}/bss.c
${WPA_SUPPLICANT_BASE}/eap_register.c
${WPA_SUPPLICANT_BASE}/op_classes.c
${WPA_SUPPLICANT_BASE}/rrm.c
${WPA_SUPPLICANT_BASE}/wmm_ac.c
${WPA_SUPPLICANT_BASE}/config_none.c
${WPA_SUPPLICANT_BASE}/sme.c
${WPA_SUPPLICANT_BASE}/wpa_supplicant.c
${WPA_SUPPLICANT_BASE}/events.c
${WPA_SUPPLICANT_BASE}/bssid_ignore.c
${WPA_SUPPLICANT_BASE}/wpas_glue.c
${WPA_SUPPLICANT_BASE}/scan.c
${WPA_SUPPLICANT_BASE}/robust_av.c
${WPA_SUPPLICANT_BASE}/ctrl_iface.c
${WPA_SUPPLICANT_BASE}/mbo.c
${WPA_SUPPLICANT_BASE}/wnm_sta.c
${WPA_SUPPLICANT_BASE}/wpa_cli_cmds.c
${WPA_SUPPLICANT_BASE}/ctrl_iface_zephyr.c
${WPA_SUPPLICANT_BASE}/wpa_cli_zephyr.c
# Zephyr main
src/supp_main.c
src/utils/wpa_debug.c
src/supp_api.c
src/supp_events.c
)

zephyr_library_sources_ifdef(CONFIG_WPA_CLI
src/wpa_cli.c
)

zephyr_library_sources_ifdef(CONFIG_WPA_SUPP_AP
${WPA_SUPPLICANT_BASE}/ap.c
${COMMON_SRC_BASE}/ap/ap_config.c
${COMMON_SRC_BASE}/ap/ap_drv_ops.c
${COMMON_SRC_BASE}/ap/ap_list.c
${COMMON_SRC_BASE}/ap/ap_mlme.c
${COMMON_SRC_BASE}/ap/authsrv.c
${COMMON_SRC_BASE}/ap/beacon.c
${COMMON_SRC_BASE}/ap/bss_load.c
${COMMON_SRC_BASE}/ap/dfs.c
${COMMON_SRC_BASE}/ap/drv_callbacks.c
${COMMON_SRC_BASE}/ap/eap_user_db.c
${COMMON_SRC_BASE}/ap/hostapd.c
${COMMON_SRC_BASE}/ap/hw_features.c
${COMMON_SRC_BASE}/ap/ieee802_11_auth.c
${COMMON_SRC_BASE}/ap/ieee802_11.c
${COMMON_SRC_BASE}/ap/ieee802_11_he.c
${COMMON_SRC_BASE}/ap/ieee802_11_ht.c
${COMMON_SRC_BASE}/ap/ieee802_11_shared.c
${COMMON_SRC_BASE}/ap/ieee802_11_vht.c
${COMMON_SRC_BASE}/ap/ieee802_1x.c
${COMMON_SRC_BASE}/ap/neighbor_db.c
${COMMON_SRC_BASE}/ap/p2p_hostapd.c
${COMMON_SRC_BASE}/ap/pmksa_cache_auth.c
${COMMON_SRC_BASE}/ap/preauth_auth.c
${COMMON_SRC_BASE}/ap/rrm.c
${COMMON_SRC_BASE}/ap/sta_info.c
${COMMON_SRC_BASE}/ap/tkip_countermeasures.c
${COMMON_SRC_BASE}/ap/utils.c
${COMMON_SRC_BASE}/ap/wmm.c

${COMMON_SRC_BASE}/ap/wpa_auth.c
${COMMON_SRC_BASE}/ap/wpa_auth_ie.c
${COMMON_SRC_BASE}/ap/wpa_auth_ft.c
${COMMON_SRC_BASE}/ap/wpa_auth_glue.c

${COMMON_SRC_BASE}/eap_common/eap_common.c
${COMMON_SRC_BASE}/eap_server/eap_server.c
${COMMON_SRC_BASE}/eap_server/eap_server_identity.c
${COMMON_SRC_BASE}/eap_server/eap_server_methods.c
${COMMON_SRC_BASE}/eapol_auth/eapol_auth_sm.c
)

zephyr_library_compile_definitions_ifdef(CONFIG_WPA_SUPP_AP
CONFIG_AP
CONFIG_NO_RADIUS
CONFIG_NO_VLAN
CONFIG_NO_ACCOUNTING
CONFIG_NEED_AP_MLME
CONFIG_IEEE80211AX
CONFIG_EAP_SERVER
CONFIG_EAP_SERVER_IDENTITY
)


zephyr_library_sources_ifndef(CONFIG_WPA_SUPP_CRYPTO
${COMMON_SRC_BASE}/crypto/crypto_none.c
${COMMON_SRC_BASE}/crypto/tls_none.c
)

zephyr_library_compile_definitions_ifndef(CONFIG_WPA_SUPP_CRYPTO
CONFIG_NO_WPA
CONFIG_CRYPTO_INTERNAL
)

zephyr_library_compile_definitions_ifdef(CONFIG_WPA_SUPP_CRYPTO
CONFIG_WEP
)

zephyr_library_sources_ifdef(CONFIG_WPA_SUPP_CRYPTO
${COMMON_SRC_BASE}/common/wpa_common.c
${COMMON_SRC_BASE}/rsn_supp/wpa.c
${COMMON_SRC_BASE}/rsn_supp/preauth.c
${COMMON_SRC_BASE}/rsn_supp/wpa_ie.c

${COMMON_SRC_BASE}/crypto/crypto_mbedtls-bignum.c
${COMMON_SRC_BASE}/crypto/crypto_mbedtls-ec.c
${COMMON_SRC_BASE}/crypto/crypto_mbedtls.c
${COMMON_SRC_BASE}/crypto/tls_mbedtls.c
${COMMON_SRC_BASE}/crypto/aes-wrap.c
${COMMON_SRC_BASE}/crypto/aes-unwrap.c
${COMMON_SRC_BASE}/crypto/rc4.c
#${COMMON_SRC_BASE}/crypto/random.c
${COMMON_SRC_BASE}/crypto/sha1-prf.c
${COMMON_SRC_BASE}/crypto/sha256-prf.c
${COMMON_SRC_BASE}/crypto/sha256-prf.c
${COMMON_SRC_BASE}/crypto/sha384-prf.c
)


zephyr_library_sources_ifdef(CONFIG_WPA_SUPP_WPA3
${COMMON_SRC_BASE}/common/sae.c
${COMMON_SRC_BASE}/common/dragonfly.c

${COMMON_SRC_BASE}/crypto/dh_groups.c
${COMMON_SRC_BASE}/crypto/sha256-kdf.c
)

zephyr_library_compile_definitions_ifdef(CONFIG_WPA_SUPP_WPA3
CONFIG_SAE
CONFIG_ECC
)

zephyr_library_include_directories_ifdef(CONFIG_WPA_SUPP_CRYPTO
${CMAKE_SOURCE_DIR}
)

zephyr_library_sources_ifdef(CONFIG_WPA_SUPP_P2P
${WPA_SUPPLICANT_BASE}/p2p_supplicant.c
${WPA_SUPPLICANT_BASE}/p2p_supplicant_sd.c
${COMMON_SRC_BASE}/p2p/p2p.c
${COMMON_SRC_BASE}/p2p/p2p_utils.c
${COMMON_SRC_BASE}/p2p/p2p_parse.c
${COMMON_SRC_BASE}/p2p/p2p_build.c
${COMMON_SRC_BASE}/p2p/p2p_go_neg.c
${COMMON_SRC_BASE}/p2p/p2p_sd.c
${COMMON_SRC_BASE}/p2p/p2p_pd.c
${COMMON_SRC_BASE}/p2p/p2p_invitation.c
${COMMON_SRC_BASE}/p2p/p2p_dev_disc.c
${COMMON_SRC_BASE}/p2p/p2p_group.c
${COMMON_SRC_BASE}/ap/p2p_hostapd.c
${COMMON_SRC_BASE}/common/gas.c
${WPA_SUPPLICANT_BASE}/gas_query.c
${WPA_SUPPLICANT_BASE}/offchannel.c
)
zephyr_library_sources_ifdef(CONFIG_WPA_SUPP_WPS
${WPA_SUPPLICANT_BASE}/wps_supplicant.c
${COMMON_SRC_BASE}/utils/uuid.c
${COMMON_SRC_BASE}/eap_peer/eap_wsc.c
${COMMON_SRC_BASE}/eap_common/eap_wsc_common.c
${COMMON_SRC_BASE}/wps/wps.c
${COMMON_SRC_BASE}/ap/wps_hostapd.c
${COMMON_SRC_BASE}/wps/wps_common.c
${COMMON_SRC_BASE}/wps/wps_attr_parse.c
${COMMON_SRC_BASE}/wps/wps_attr_build.c
${COMMON_SRC_BASE}/wps/wps_attr_process.c
${COMMON_SRC_BASE}/wps/wps_dev_attr.c
${COMMON_SRC_BASE}/wps/wps_enrollee.c
${COMMON_SRC_BASE}/wps/wps_registrar.c
${COMMON_SRC_BASE}/crypto/dh_groups.c
${COMMON_SRC_BASE}/crypto/dh_group5.c
)

zephyr_library_compile_definitions_ifdef(CONFIG_WPA_SUPP_P2P
CONFIG_P2P
CONFIG_GAS
CONFIG_OFFCHANNEL
)

zephyr_library_compile_definitions_ifdef(CONFIG_WPA_SUPP_WPS
CONFIG_WPS
EAP_WSC
)

zephyr_library_sources_ifdef(CONFIG_WPA_SUPP_CRYPTO_ENTERPRISE
${COMMON_SRC_BASE}/eap_peer/eap_tls.c
${COMMON_SRC_BASE}/eap_peer/eap_tls_common.c


${COMMON_SRC_BASE}/eap_peer/eap_peap.c
${COMMON_SRC_BASE}/eap_common/eap_peap_common.c
${COMMON_SRC_BASE}/eap_peer/eap_ttls.c
${COMMON_SRC_BASE}/eap_peer/eap_md5.c
${COMMON_SRC_BASE}/eap_peer/eap_mschapv2.c
${COMMON_SRC_BASE}/eap_common/chap.c
${COMMON_SRC_BASE}/eap_peer/mschapv2.c
${COMMON_SRC_BASE}/eap_peer/eap_leap.c

${COMMON_SRC_BASE}/eap_peer/eap_psk.c
${COMMON_SRC_BASE}/eap_common/eap_psk_common.c

${COMMON_SRC_BASE}/eap_peer/eap_fast.c
${COMMON_SRC_BASE}/eap_peer/eap_fast_pac.c
${COMMON_SRC_BASE}/eap_common/eap_fast_common.c

${COMMON_SRC_BASE}/eap_peer/eap_pax.c
${COMMON_SRC_BASE}/eap_common/eap_pax_common.c

${COMMON_SRC_BASE}/eap_peer/eap_sake.c
${COMMON_SRC_BASE}/eap_common/eap_sake_common.c

${COMMON_SRC_BASE}/eap_peer/eap_gpsk.c
${COMMON_SRC_BASE}/eap_common/eap_gpsk_common.c

${COMMON_SRC_BASE}/eap_peer/eap_pwd.c
${COMMON_SRC_BASE}/eap_common/eap_pwd_common.c

${COMMON_SRC_BASE}/eap_peer/eap_eke.c
${COMMON_SRC_BASE}/eap_common/eap_eke_common.c

${COMMON_SRC_BASE}/eap_peer/eap_ikev2.c
${COMMON_SRC_BASE}/eap_peer/ikev2.c
${COMMON_SRC_BASE}/eap_common/eap_ikev2_common.c
${COMMON_SRC_BASE}/eap_common/ikev2_common.c

# common
${COMMON_SRC_BASE}/crypto/sha384-tlsprf.c
${COMMON_SRC_BASE}/crypto/sha256-tlsprf.c
${COMMON_SRC_BASE}/crypto/sha1-tlsprf.c
${COMMON_SRC_BASE}/crypto/sha1-tprf.c
${COMMON_SRC_BASE}/crypto/ms_funcs.c
${COMMON_SRC_BASE}/crypto/aes-eax.c
# MD4 removed from MbedTLS
${COMMON_SRC_BASE}/crypto/md4-internal
${COMMON_SRC_BASE}/crypto/aes-encblock.c

)

zephyr_library_compile_definitions_ifdef(CONFIG_WPA_SUPP_CRYPTO_ENTERPRISE
CONFIG_EAP_TLS
CONFIG_IEEE8021X_EAPOL
CONFIG_EAP_PEAP
CONFIG_EAP_TTLS
CONFIG_EAP_MD5
CONFIG_EAP_MSCHAPv2
CONFIG_EAP_LEAP
CONFIG_EAP_PSK
CONFIG_EAP_FAST
CONFIG_EAP_PAX
CONFIG_EAP_SAKE
CONFIG_EAP_GPSK
CONFIG_EAP_PWD
CONFIG_EAP_EKE
CONFIG_EAP_IKEv2
)

zephyr_library_sources_ifdef(CONFIG_WPA_SUPP_EAPOL
${COMMON_SRC_BASE}/eapol_supp/eapol_supp_sm.c
${COMMON_SRC_BASE}/eap_peer/eap.c
${COMMON_SRC_BASE}/eap_peer/eap_methods.c
${COMMON_SRC_BASE}/eap_common/eap_common.c
${COMMON_SRC_BASE}/rsn_supp/pmksa_cache.c
)

zephyr_library_compile_definitions_ifdef(CONFIG_WPA_SUPP_EAPOL
IEEE8021X_EAPOL
)
endif()
Loading
Loading