]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Avoid leaving dpp_connector_privacy_default=1 to next test case
authorJouni Malinen <j@w1.fi>
Sat, 22 Feb 2025 09:48:28 +0000 (11:48 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 22 Feb 2025 09:48:28 +0000 (11:48 +0200)
sigma_dut_ap_dpp_self_config_connector_privacy could end up leaving the
default DPP connector privacy setting modified for the following test
case. That would make dpp_network_intro_version_missing_req fail. Fix
this by explicitly clearing the modified configuration parameter.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_sigma_dut.py

index c570aa0ef9c49f64151900d2c25e349518dad3df..4d45ed7e48345fc47587b898bebe30ec769bbea1 100644 (file)
@@ -3252,6 +3252,7 @@ def test_sigma_dut_ap_dpp_self_config_connector_privacy(dev, apdev, params):
          SigmaDut(iface, hostapd_logdir=logdir) as dut:
         dev[0].set("dpp_connector_privacy_default", "1")
         run_sigma_dut_ap_dpp_self_config(dut, dev, apdev)
+        dev[0].set("dpp_connector_privacy_default", "0")
 
 def run_sigma_dut_ap_dpp_self_config(dut, dev, apdev):
     check_dpp_capab(dev[0])