From: Jouni Malinen Date: Sun, 21 Feb 2021 15:21:48 +0000 (+0200) Subject: tests: Fix clean at the end of sigma_dut_client_privacy X-Git-Tag: hostap_2_10~529 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39fac5abd1abef16c262efadd962d99e29178e52;p=thirdparty%2Fhostap.git tests: Fix clean at the end of sigma_dut_client_privacy These commands were being issues to incorrect wpa_supplicant instance and were missing clearing of the MAC_RAND_SCAN parameter. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index 7c70d25dc..8bf06e078 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -5214,11 +5214,12 @@ def test_sigma_dut_client_privacy(dev, apdev, params): sigma_dut_cmd_check("sta_reset_default,interface," + ifname) finally: stop_sigma_dut(sigma) - dev[1].set("mac_addr", "0", allow_fail=True) - dev[1].set("rand_addr_lifetime", "60", allow_fail=True) - dev[1].set("preassoc_mac_addr", "0", allow_fail=True) - dev[1].set("gas_rand_mac_addr", "0", allow_fail=True) - dev[1].set("gas_rand_addr_lifetime", "60", allow_fail=True) + dev[0].set("mac_addr", "0", allow_fail=True) + dev[0].set("rand_addr_lifetime", "60", allow_fail=True) + dev[0].request("MAC_RAND_SCAN enable=0 all") + dev[0].set("preassoc_mac_addr", "0", allow_fail=True) + dev[0].set("gas_rand_mac_addr", "0", allow_fail=True) + dev[0].set("gas_rand_addr_lifetime", "60", allow_fail=True) out = run_tshark(os.path.join(logdir, "hwsim0.pcapng"), "wlan.addr == " + addr,