]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix sigma_dut_sae_h2e_rsnxe_mismatch to clear sae_pwe
authorJouni Malinen <j@w1.fi>
Mon, 30 Dec 2019 17:32:28 +0000 (19:32 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Dec 2019 17:32:28 +0000 (19:32 +0200)
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 <j@w1.fi>
tests/hwsim/test_sigma_dut.py

index 7ab6d1da15fe5a8741c2a3d6d9e635a4a5390aac..d3ffb5f5b5fe476d8e88456c70b9815d77a8e14a 100644 (file)
@@ -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"""