From: Jouni Malinen Date: Mon, 18 Dec 2023 18:09:26 +0000 (+0200) Subject: tests: Make dpp_controller_init_through_relay* more robust X-Git-Tag: hostap_2_11~625 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5ababa1d91377195da0764e3a2c5460dc61aa3;p=thirdparty%2Fhostap.git tests: Make dpp_controller_init_through_relay* more robust 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 --- diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 49da060ad..e595beea7 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -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: