From 1bc93b7fe3965872968676af10ccda397ee09575 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 17 Feb 2023 16:20:20 +0200 Subject: [PATCH] tests: Clear SAE groups for dpp_ap_config_sae This is needed to avoid failures due to previously executed test cases. Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 9477ea4f3..69669bc2a 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -1922,6 +1922,12 @@ def update_hapd_config(hapd): def run_dpp_ap_config(dev, apdev, curve=None, conf_curve=None, reconf_configurator=False, sae=False): + if sae: + check_sae_capab(dev[0]) + check_sae_capab(dev[1]) + dev[0].set("sae_groups", "") + dev[1].set("sae_groups", "") + brainpool = (curve and "BP-" in curve) or \ (conf_curve and "BP-" in conf_curve) check_dpp_capab(dev[0], brainpool)