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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2021-02-21 17:21:48 +02:00
parent c210aed4b6
commit 39fac5abd1

View file

@ -5214,11 +5214,12 @@ def test_sigma_dut_client_privacy(dev, apdev, params):
sigma_dut_cmd_check("sta_reset_default,interface," + ifname) sigma_dut_cmd_check("sta_reset_default,interface," + ifname)
finally: finally:
stop_sigma_dut(sigma) stop_sigma_dut(sigma)
dev[1].set("mac_addr", "0", allow_fail=True) dev[0].set("mac_addr", "0", allow_fail=True)
dev[1].set("rand_addr_lifetime", "60", allow_fail=True) dev[0].set("rand_addr_lifetime", "60", allow_fail=True)
dev[1].set("preassoc_mac_addr", "0", allow_fail=True) dev[0].request("MAC_RAND_SCAN enable=0 all")
dev[1].set("gas_rand_mac_addr", "0", allow_fail=True) dev[0].set("preassoc_mac_addr", "0", allow_fail=True)
dev[1].set("gas_rand_addr_lifetime", "60", 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"), out = run_tshark(os.path.join(logdir, "hwsim0.pcapng"),
"wlan.addr == " + addr, "wlan.addr == " + addr,