forked from espressif/esp-idf
change(wpa_supplicant): clean up test_sae, set leak thresholds
- fix relative includes - remove ESP32-H2-related TODO — an ifdef is not needed now since the whole app is built only for SOC_WIFI_SUPPORTED=y - set leak threshold in test case
This commit is contained in:
@ -16,10 +16,11 @@
|
|||||||
#include "utils/common.h"
|
#include "utils/common.h"
|
||||||
#include "utils/includes.h"
|
#include "utils/includes.h"
|
||||||
#include "crypto/crypto.h"
|
#include "crypto/crypto.h"
|
||||||
#include "../src/common/sae.h"
|
#include "common/sae.h"
|
||||||
#include "utils/wpabuf.h"
|
#include "utils/wpabuf.h"
|
||||||
#include "test_utils.h"
|
#include "test_utils.h"
|
||||||
#if !CONFIG_IDF_TARGET_ESP32H2 // IDF-6781
|
#include "test_wpa_supplicant_common.h"
|
||||||
|
|
||||||
typedef struct crypto_bignum crypto_bignum;
|
typedef struct crypto_bignum crypto_bignum;
|
||||||
|
|
||||||
static struct wpabuf *wpabuf_alloc2(size_t len)
|
static struct wpabuf *wpabuf_alloc2(size_t len)
|
||||||
@ -47,6 +48,7 @@ void wpabuf_free2(struct wpabuf *buf)
|
|||||||
|
|
||||||
TEST_CASE("Test SAE functionality with ECC group", "[wpa3_sae]")
|
TEST_CASE("Test SAE functionality with ECC group", "[wpa3_sae]")
|
||||||
{
|
{
|
||||||
|
set_leak_threshold(120);
|
||||||
ESP_LOGI("SAE Test", "### Beginning SAE init and deinit ###");
|
ESP_LOGI("SAE Test", "### Beginning SAE init and deinit ###");
|
||||||
{
|
{
|
||||||
/* Test init and deinit*/
|
/* Test init and deinit*/
|
||||||
@ -422,5 +424,5 @@ TEST_CASE("Test SAE functionality with ECC group", "[wpa3_sae]")
|
|||||||
ESP_LOGI("SAE Test", "=========== Complete ============");
|
ESP_LOGI("SAE Test", "=========== Complete ============");
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#endif /* CONFIG_WPA3_SAE */
|
#endif /* CONFIG_WPA3_SAE */
|
||||||
|
Reference in New Issue
Block a user