]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear SAE groups for dpp_ap_config_sae
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 17 Feb 2023 14:20:20 +0000 (16:20 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 17 Feb 2023 14:20:20 +0000 (16:20 +0200)
This is needed to avoid failures due to previously executed test cases.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_dpp.py

index 9477ea4f3ac7159059e681e5b1cf15a688096156..69669bc2a9bdecc9a168a26c835bd3b048088554 100644 (file)
@@ -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)