]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make dpp_qr_code_curve_select more robust
authorJouni Malinen <jouni@codeaurora.org>
Wed, 7 Feb 2018 15:09:20 +0000 (17:09 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 7 Feb 2018 15:09:20 +0000 (17:09 +0200)
Wait for the configuration exchange to complete before issuing the
DPP_STOP_LISTEN command to avoid confusing sequence of operation between
the ongoing and immediately following DPP exchanges.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_dpp.py

index 2ab2134900d23ff9ebd163e9f5b0c5aa112716f3..8608d063ca17e5c50db162aa2377b3972cfeb078 100644 (file)
@@ -159,6 +159,12 @@ def test_dpp_qr_code_curve_select(dev, apdev):
         ev = dev[1].wait_event(["DPP-AUTH-SUCCESS"], timeout=5)
         if ev is None:
             raise Exception("DPP authentication did not succeed (Initiator)")
+        ev = dev[0].wait_event(["DPP-CONF-FAILED"], timeout=2)
+        if ev is None:
+            raise Exception("DPP configuration result not seen (Enrollee)")
+        ev = dev[1].wait_event(["DPP-CONF-SENT"], timeout=2)
+        if ev is None:
+            raise Exception("DPP configuration result not seen (Responder)")
         dev[0].request("DPP_STOP_LISTEN")
         dev[1].request("DPP_STOP_LISTEN")
         dev[0].dump_monitor()