From 9b7c345bce5ed032b750ec004e81855d6b157267 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Fri, 4 Mar 2022 16:22:05 +0100 Subject: [PATCH 1/2] Fix compiler error in mbedtls Closes https://github.com/espressif/esp-idf/pull/8500 Closes https://github.com/espressif/esp-idf/issues/8499 Closes IDFGH-6879 Closes IDFGH-6881 --- components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c b/components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c index b8722eae1c..14c537dfc9 100644 --- a/components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c +++ b/components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c @@ -801,7 +801,7 @@ void crypto_debug_print_ec_key(const char *title, struct crypto_key *key) mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( *pkey ); u8 x[32], y[32], d[32]; wpa_printf(MSG_ERROR, "curve: %s\n", - mbedtls_ecp_curve_info_from_grp_id( ecp->grp.id )->name ); + mbedtls_ecp_curve_info_from_grp_id( ecp->MBEDTLS_PRIVATE(grp).id )->name ); int len = mbedtls_mpi_size((mbedtls_mpi *)crypto_ec_get_prime((struct crypto_ec *)crypto_ec_get_group_from_key(key))); wpa_printf(MSG_ERROR, "prime len is %d\n", len); From 9ba1b333f99fe3b5d1a844ffd25e1cfb53b9b9be Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Mon, 7 Mar 2022 12:17:04 +0530 Subject: [PATCH 2/2] examples/wifi: add test coverage for CONFIG_WPA_DEBUG_PRINT --- examples/wifi/roaming/sdkconfig.ci | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 examples/wifi/roaming/sdkconfig.ci diff --git a/examples/wifi/roaming/sdkconfig.ci b/examples/wifi/roaming/sdkconfig.ci new file mode 100644 index 0000000000..6618e6cc09 --- /dev/null +++ b/examples/wifi/roaming/sdkconfig.ci @@ -0,0 +1,2 @@ +# Add CI coverage for WPA supplicant debug feature +CONFIG_WPA_DEBUG_PRINT=y