]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add more time for the Presence Announcements to be received
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 20 Dec 2023 19:30:00 +0000 (21:30 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 21 Dec 2023 10:13:17 +0000 (12:13 +0200)
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>
tests/hwsim/test_dpp.py

index 909d63c92b80dd8f6968c62d0a6665314098d3ce..3047533160661e032ff9af7c6302f5b395997079 100644 (file)
@@ -5841,7 +5841,7 @@ def run_dpp_controller_relay(dev, apdev, params, chirp=False, discover=False,
             raise Exception("DPP_CHIRP failed")
         if duplicate:
             for i in range(10):
-                msg = relay.mgmt_rx(timeout=10)
+                msg = relay.mgmt_rx(timeout=30)
                 if msg is None:
                     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())
@@ -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())
                     break
             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:
             raise Exception("Presence Announcement not seen")
         if "type=13" not in ev: