From 8adcdd6593a15a8a5e78aece6bb4cc4cb3ac8fc0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 28 Jul 2022 17:58:01 +0300 Subject: [PATCH] tests: Temporary workaround for dpp_chirp_ap_5g Configurator station seems to be unable to get the first Authentication Request frame transmitted through mac80211_hwsim for some reason. It is not really clear why this happens and why it started happening now, but as a temporary workaround, wait a second here since that seems to avoid this for some unknown reason. Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index af6eac613..ef8283b35 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -6602,6 +6602,10 @@ def test_dpp_chirp_ap_5g(dev, apdev): idc = dev[0].dpp_qr_code(uri) dev[0].dpp_bootstrap_set(idc, conf="ap-dpp", configurator=conf_id) dev[0].dpp_listen(5200) + # Workaround for some strange issues in the Authentication Request frame + # not getting transmitted. An extra wait of one second here seems to + # avoid that?! + time.sleep(1) if "OK" not in hapd.request("DPP_CHIRP own=%d iter=5" % id_h): raise Exception("DPP_CHIRP failed") wait_auth_success(hapd, dev[0], configurator=dev[0], enrollee=hapd, -- 2.47.2