tests: Wait for a specific DPP-PB-STATUS event

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>
This commit is contained in:
Jouni Malinen 2024-03-08 10:36:38 +02:00 committed by Jouni Malinen
parent 2986146d9c
commit d8dca78a3a
2 changed files with 2 additions and 2 deletions

View 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

View 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