From: Jouni Malinen Date: Mon, 24 Jan 2022 20:58:04 +0000 (+0200) Subject: tests: Update dpp_proto_after_wrapped_data_pkex_cr_req for PKEXv2 X-Git-Tag: hostap_2_11~2287 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a4feed2f8f23a92ab17113b63b572a2513e6d86;p=thirdparty%2Fhostap.git tests: Update dpp_proto_after_wrapped_data_pkex_cr_req for PKEXv2 Check for both PKEX v1 and v2 variants of the message. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 339d7297f..9a82263d9 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -3797,7 +3797,7 @@ def test_dpp_proto_after_wrapped_data_pkex_cr_req(dev, apdev): """DPP protocol testing - attribute after Wrapped Data in PKEX CR Req""" run_dpp_proto_init_pkex(dev, 1, 4) ev = dev[0].wait_event(["DPP-RX"], timeout=5) - if ev is None or "type=7" not in ev: + if ev is None or ("type=7" not in ev and "type=18" not in ev): raise Exception("PKEX Exchange Request not seen") ev = dev[0].wait_event(["DPP-RX"], timeout=5) if ev is None or "type=9" not in ev: