From: Jouni Malinen Date: Fri, 7 Oct 2022 17:59:34 +0000 (+0300) Subject: tests: Clear sae_groups when SAE could be used X-Git-Tag: hostap_2_11~1662 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97104a658834ee87b341fab6da12b3fdffc2ad9a;p=thirdparty%2Fhostap.git 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 --- 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):