From: Jouni Malinen Date: Thu, 28 Jul 2022 14:58:01 +0000 (+0300) Subject: tests: Temporary workaround for dpp_chirp_ap_5g X-Git-Tag: hostap_2_11~1780 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8adcdd6593a15a8a5e78aece6bb4cc4cb3ac8fc0;p=thirdparty%2Fhostap.git 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 --- 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,