]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear sae_groups when SAE could be used
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 7 Oct 2022 17:59:34 +0000 (20:59 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 7 Oct 2022 17:59:34 +0000 (20:59 +0300)
This makes sigma_dut_ap_dpp_qr* test cases with SAE more robust by
avoiding unexpected behavior. This was found with the following test
sequence:
mesh_sae_anti_clogging sigma_dut_ap_dpp_qr_sae

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

index 6b1094b21c38010fce2452c36bf9ff39fda42939..b29e0a71e4163821fca02e6454b5b534533ebd6e 100644 (file)
@@ -2764,6 +2764,8 @@ def test_sigma_dut_ap_dpp_qr_mud_url(dev, apdev, params):
 def run_sigma_dut_ap_dpp_qr(dev, apdev, params, ap_conf, sta_conf, extra="",
                             mud_url=False):
     check_dpp_capab(dev[0])
+    if "sae" in sta_conf:
+        check_sae_capab(dev[1])
     logdir = params['prefix'] + ".sigma-hostapd"
     with HWSimRadio() as (radio, iface):
         sigma = start_sigma_dut(iface, hostapd_logdir=logdir)
@@ -2800,6 +2802,7 @@ def run_sigma_dut_ap_dpp_qr(dev, apdev, params, ap_conf, sta_conf, extra="",
 
             id0b = dev[0].dpp_qr_code(uri1)
 
+            dev[1].set("sae_groups", "")
             dev[1].set("dpp_config_processing", "2")
             cmd = "DPP_LISTEN 2412"
             if "OK" not in dev[1].request(cmd):