]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix clean at the end of sigma_dut_client_privacy
authorJouni Malinen <j@w1.fi>
Sun, 21 Feb 2021 15:21:48 +0000 (17:21 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 21 Feb 2021 15:21:48 +0000 (17:21 +0200)
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>
tests/hwsim/test_sigma_dut.py

index 7c70d25dc792975b0e5b537e3879d435f4de28cd..8bf06e0783401635c6dcc799f4bed3161540f122 100644 (file)
@@ -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,