tests: Allow some more time for a scan in discovery_group_client

This makes the test case a bit more likely to be able to complete with
S1G being enabled in mac80211_hwsim. However, the 15 second P2P protocol
timeout itself can be hit in this type of a case and the test case will
still fail every now and then if all mac80211_hwsim supported channels
are included.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-01-20 19:56:20 +02:00 committed by Jouni Malinen
parent d5b7560de5
commit 85ac165d64

View file

@ -163,7 +163,7 @@ def test_discovery_group_client(dev):
# make group client available on operating channe # make group client available on operating channe
dev[1].group_request("REASSOCIATE") dev[1].group_request("REASSOCIATE")
ev = dev[1].wait_global_event(["CTRL-EVENT-CONNECTED", ev = dev[1].wait_global_event(["CTRL-EVENT-CONNECTED",
"P2P-GO-NEG-REQUEST"], timeout=10) "P2P-GO-NEG-REQUEST"], timeout=15)
if ev is None: if ev is None:
raise Exception("Timeout on reconnection to group") raise Exception("Timeout on reconnection to group")
if "P2P-GO-NEG-REQUEST" not in ev: if "P2P-GO-NEG-REQUEST" not in ev: