From 97104a658834ee87b341fab6da12b3fdffc2ad9a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 7 Oct 2022 20:59:34 +0300 Subject: [PATCH] tests: Clear sae_groups when SAE could be used 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 --- tests/hwsim/test_sigma_dut.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index 6b1094b21..b29e0a71e 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -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):