From: Jouni Malinen Date: Mon, 30 Dec 2019 17:32:28 +0000 (+0200) Subject: tests: Fix sigma_dut_sae_h2e_rsnxe_mismatch to clear sae_pwe X-Git-Tag: hostap_2_10~2040 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78e931e7f9ff1afd41fc69a3cd8f34bb0a1d326d;p=thirdparty%2Fhostap.git tests: Fix sigma_dut_sae_h2e_rsnxe_mismatch to clear sae_pwe sae_pwe=1 could be left configured when exiting this test case since sigma_dut does not guarantee the default value to be restored. This could result in test case failures, e.g., in the following sequence: sigma_dut_sae_h2e_rsnxe_mismatch sae_pwe_h2e_only_ap_sta_forcing_loop Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index 7ab6d1da1..d3ffb5f5b 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -3591,6 +3591,7 @@ def test_sigma_dut_sae_h2e_rsnxe_mismatch(dev, apdev): raise Exception("Unexpected connection reported") finally: stop_sigma_dut(sigma) + dev[0].set("sae_pwe", "0") def test_sigma_dut_ap_sae_h2e_rsnxe_mismatch(dev, apdev, params): """sigma_dut controlled SAE H2E AP misbehavior with RSNXE"""