]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Permit multiple GO negotiation failures
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 12 Jun 2025 08:10:21 +0000 (10:10 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 21 Jun 2025 08:52:01 +0000 (11:52 +0300)
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 <benjamin.berg@intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
tests/hwsim/test_p2p_grpform.py

index 6b18c42e7928a8134eb8fd7faeb97e6b3a83f3b7..178bd73817b01ec131502457a74da3dbab481a73 100644 (file)
@@ -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()