From: Benjamin Berg Date: Thu, 12 Jun 2025 08:10:21 +0000 (+0200) Subject: tests: Permit multiple GO negotiation failures X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13ab8ab9dd9a353ce4b99cad69d99ad1cc514662;p=thirdparty%2Fhostap.git tests: Permit multiple GO negotiation failures In this test the station will do a P2P find and then send a GO negotiation request. However, the other station may not be on the listen channel at the time when the action frame is transmitted. In this case, the find/GO neg request sequence is restarted. The test currently times out if this sequence fails twice in a row. Be more tolerant to this type of failure and increase the timeout. It may also be possible to improve the retransmit strategy. Signed-off-by: Benjamin Berg Reviewed-by: Andrei Otcheretianski --- diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py index 6b18c42e7..178bd7381 100644 --- a/tests/hwsim/test_p2p_grpform.py +++ b/tests/hwsim/test_p2p_grpform.py @@ -958,7 +958,7 @@ def test_grpform_not_ready2(dev): if not dev[1].discover_peer(addr0): raise Exception("Could not discover peer") dev[1].global_request("P2P_CONNECT " + addr0 + " pbc") - ev = dev[0].wait_global_event(["P2P-GO-NEG-REQUEST"], timeout=5) + ev = dev[0].wait_global_event(["P2P-GO-NEG-REQUEST"], timeout=10) if ev is None: raise Exception("No P2P-GO-NEG-REQUEST event") dev[0].dump_monitor()