Skip to content

Commit 014dee7

Browse files
krish2718dkalowsk
authored andcommitted
modules: hostap: Fix EAP dependencies
In case anyone enabled EAP_*_ALL explicitly without enabling the Enterprise then it leads to a build error. Fix by adding the dependency. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent 3197e7a commit 014dee7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/hostap/Kconfig

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ config WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
200200
select MBEDTLS_TLS_VERSION_1_2
201201
depends on !WIFI_NM_WPA_SUPPLICANT_CRYPTO_NONE
202202

203+
if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
203204
config EAP_TLS
204205
bool "EAP-TLS support"
205206

@@ -258,7 +259,8 @@ config EAP_ALL
258259
select EAP_GTC
259260
select EAP_TTLS
260261
select EAP_MSCHAPV2
261-
default y if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
262+
default y
263+
endif # WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
262264

263265
config WIFI_NM_WPA_SUPPLICANT_WPA3
264266
bool "WPA3 support"
@@ -302,6 +304,7 @@ config WIFI_NM_HOSTAPD_CRYPTO_ENTERPRISE
302304
bool "Hostapd crypto enterprise support"
303305
depends on WIFI_NM_HOSTAPD_AP
304306

307+
if WIFI_NM_HOSTAPD_CRYPTO_ENTERPRISE
305308
config EAP_SERVER_TLS
306309
bool "EAP-TLS server support"
307310

@@ -330,7 +333,9 @@ config EAP_SERVER_ALL
330333
select EAP_SERVER_PEAP
331334
select EAP_SERVER_GTC
332335
select EAP_SERVER_TTLS
333-
default y if WIFI_NM_HOSTAPD_CRYPTO_ENTERPRISE
336+
default y
337+
338+
endif # WIFI_NM_HOSTAPD_CRYPTO_ENTERPRISE
334339

335340
config WIFI_NM_WPA_SUPPLICANT_BSS_MAX_IDLE_TIME
336341
int "BSS max idle timeout in seconds"

0 commit comments

Comments
 (0)