Skip to content

Commit 73bf2c7

Browse files
krish2718jukkar
authored andcommitted
net: lib: hostap_crypto: Add a check for nRF SoC's
The hostap external crypto module relies on nRF security which is only available for nRF family of SoC's. Fix NCSDK-30884. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 91bd16d commit 73bf2c7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

subsys/net/lib/hostap_crypto/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7+
# This is for use in NCS with nRF security which works only on nRF platforms
8+
if(NOT DEFINED CONFIG_SOC_FAMILY_NORDIC_NRF)
9+
return()
10+
endif()
11+
712
zephyr_interface_library_named(hostap_crypto)
813

914
set(HOSTAP_BASE ${ZEPHYR_HOSTAP_MODULE_DIR})

subsys/net/lib/hostap_crypto/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
if WIFI_NM_WPA_SUPPLICANT
7+
if WIFI_NM_WPA_SUPPLICANT && SOC_FAMILY_NORDIC_NRF
88

99
choice WIFI_NM_WPA_SUPPLICANT_CRYPTO_BACKEND
1010
default WIFI_NM_WPA_SUPPLICANT_CRYPTO_EXT

0 commit comments

Comments
 (0)