aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-11-28 22:06:50 (GMT)
committerJouni Malinen <j@w1.fi>2019-11-28 22:06:50 (GMT)
commitee275671980fdb095572535ddac6ede44e82c898 (patch)
tree18f1d098ce2e720c44afadb0626b8e7c34cd7b4b
parente0cd7172c2a80616af89e92d24d4852400668c8b (diff)
downloadhostap-ee275671980fdb095572535ddac6ede44e82c898.zip
hostap-ee275671980fdb095572535ddac6ede44e82c898.tar.gz
hostap-ee275671980fdb095572535ddac6ede44e82c898.tar.bz2
tests: Clear sae_pwe at the end of sigma_dut test cases
sigma_dut does not clear sae_pwe value when the command line argument "-2" is used, so we need to explicitly clear this from wpa_supplicant at the end of the test case. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--tests/hwsim/test_sigma_dut.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py
index 12f9d3b..7f24937 100644
--- a/tests/hwsim/test_sigma_dut.py
+++ b/tests/hwsim/test_sigma_dut.py
@@ -3334,6 +3334,7 @@ def test_sigma_dut_sae_h2e(dev, apdev):
raise Exception("Unexpected error result: " + res)
finally:
stop_sigma_dut(sigma)
+ dev[0].set("sae_pwe", "0")
def test_sigma_dut_sae_h2e_ap_loop(dev, apdev):
"""sigma_dut controlled SAE H2E association (AP using loop-only)"""
@@ -3350,6 +3351,7 @@ def test_sigma_dut_sae_h2e_ap_loop(dev, apdev):
no_connect_sae_pwe_sta(dev[0], ifname, extra="sae_pwe,h2e")
finally:
stop_sigma_dut(sigma)
+ dev[0].set("sae_pwe", "0")
def test_sigma_dut_sae_h2e_ap_h2e(dev, apdev):
"""sigma_dut controlled SAE H2E association (AP using H2E-only)"""
@@ -3366,6 +3368,7 @@ def test_sigma_dut_sae_h2e_ap_h2e(dev, apdev):
connect_sae_pwe_sta(dev[0], ifname, extra="sae_pwe,h2e")
finally:
stop_sigma_dut(sigma)
+ dev[0].set("sae_pwe", "0")
def test_sigma_dut_ap_sae_h2e(dev, apdev, params):
"""sigma_dut controlled AP with SAE H2E"""