]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Wait for a specific DPP-PB-STATUS event
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 8 Mar 2024 08:36:38 +0000 (10:36 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 8 Mar 2024 08:37:28 +0000 (10:37 +0200)
This wait for a specific event is needed to allow a new DPP-PB-STATUS
event to be added at the start of the PB operation.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_dpp3.py
tests/hwsim/test_sigma_dut.py

index b4d7116bcfba54bebffdab90aec1b2866e93ce86..0fde418ba0472277dfb52c20c6a711eeb366a7de 100644 (file)
@@ -356,7 +356,7 @@ def test_dpp_push_button_session_overlap_sta(dev, apdev):
         raise Exception("Failed to press push button on the AP")
     if "OK" not in dev[0].request("DPP_PUSH_BUTTON"):
         raise Exception("Failed to press push button on the station")
-    ev = dev[0].wait_event(["DPP-PB-STATUS"], timeout=30)
+    ev = dev[0].wait_event(["DPP-PB-STATUS discovered"], timeout=30)
     if ev is None:
         raise Exception("Push button status not reported on station")
     # Force bootstrap key change since both instances share the same global
index cb289099f2728068d936fd0bb8c094fddee49ff8..2a35bd4b4e1f59e745ba860c3bc00d9f0563c7a3 100644 (file)
@@ -4384,7 +4384,7 @@ def test_sigma_dut_dpp_pb_sta_first(dev, apdev):
 def dpp_ap_pb_overlap(hapd, hapd2, dev0):
     if "OK" not in hapd.request("DPP_PUSH_BUTTON"):
         raise Exception("Failed to press push button on the AP")
-    ev = dev0.wait_event(["DPP-PB-STATUS"], timeout=30)
+    ev = dev0.wait_event(["DPP-PB-STATUS discovered"], timeout=30)
     if ev is None:
         raise Exception("Push button status not reported on station")
     # Force bootstrap key change since both instances share the same global