]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make dpp_controller_init_through_relay* more robust
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 18 Dec 2023 18:09:26 +0000 (20:09 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 18 Dec 2023 18:09:26 +0000 (20:09 +0200)
Avoid a race condition that could result in the relay (hostapd)
maintaining STA association with PMF and discarding of the GAS frames.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_dpp.py

index 49da060ad64fe06a207962dc3d48b89412afba4e..e595beea7b079b31e9352c41ba2748e00e96d988 100644 (file)
@@ -5977,9 +5977,11 @@ def run_dpp_controller_init_through_relay(dev, apdev, params, dynamic=False,
         raise Exception("DPP network id not reported")
     network = int(ev.split(' ')[1])
     dev[0].wait_connected()
+    relay.wait_sta()
     dev[0].dump_monitor()
     dev[0].request("DISCONNECT")
     dev[0].wait_disconnected()
+    relay.wait_sta_disconnect()
     dev[0].dump_monitor()
 
     if add: