tests: Add more time for the Presence Announcements to be received

The previous timeout allowed only a single chirping round, and sometimes
not even that full round. That resulted in test failures for cases where
there was not really any incorrect behavior.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-12-20 21:30:00 +02:00 committed by Jouni Malinen
parent 38b16904cf
commit fc4532d0d3

View file

@ -5841,7 +5841,7 @@ def run_dpp_controller_relay(dev, apdev, params, chirp=False, discover=False,
raise Exception("DPP_CHIRP failed") raise Exception("DPP_CHIRP failed")
if duplicate: if duplicate:
for i in range(10): for i in range(10):
msg = relay.mgmt_rx(timeout=10) msg = relay.mgmt_rx(timeout=30)
if msg is None: if msg is None:
raise Exception("MGMT RX wait timed out") raise Exception("MGMT RX wait timed out")
relay.request("MGMT_RX_PROCESS freq=2462 datarate=0 ssi_signal=-30 frame=" + binascii.hexlify(msg['frame']).decode()) relay.request("MGMT_RX_PROCESS freq=2462 datarate=0 ssi_signal=-30 frame=" + binascii.hexlify(msg['frame']).decode())
@ -5850,7 +5850,7 @@ def run_dpp_controller_relay(dev, apdev, params, chirp=False, discover=False,
relay.request("MGMT_RX_PROCESS freq=2462 datarate=0 ssi_signal=-30 frame=" + binascii.hexlify(msg['frame']).decode()) relay.request("MGMT_RX_PROCESS freq=2462 datarate=0 ssi_signal=-30 frame=" + binascii.hexlify(msg['frame']).decode())
break break
relay.set("ext_mgmt_frame_handling", "0") relay.set("ext_mgmt_frame_handling", "0")
ev = relay.wait_event(["DPP-RX"], timeout=10) ev = relay.wait_event(["DPP-RX"], timeout=30)
if ev is None: if ev is None:
raise Exception("Presence Announcement not seen") raise Exception("Presence Announcement not seen")
if "type=13" not in ev: if "type=13" not in ev: