]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix sigma_dut_sae_h2e_enabled_group_rejected to clear sae_pwe
authorJouni Malinen <jouni@codeaurora.org>
Fri, 24 Apr 2020 14:03:32 +0000 (17:03 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Apr 2020 14:06:50 +0000 (17:06 +0300)
This test case was using sigma_dut to set sae_pwe=2, but that value was
not cleared in the end. This could result in following SAE test cases
failing due to unexpected behavior.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sigma_dut.py

index a115da12afe8f54d01fef2c80bfa2aabff835192..33a4b5751220918b1a5d327f5d7402eb6f70632f 100644 (file)
@@ -3955,6 +3955,7 @@ def test_sigma_dut_sae_h2e_enabled_group_rejected(dev, apdev):
             raise Exception("Unexpected connection reported")
     finally:
         stop_sigma_dut(sigma)
+        dev[0].set("sae_pwe", "0")
 
 def test_sigma_dut_sae_h2e_rsnxe_mismatch(dev, apdev):
     """sigma_dut controlled SAE H2E misbehavior with RSNXE"""