]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use the provided timeout for P2P peer discovery
authorJouni Malinen <j@w1.fi>
Sat, 27 Jan 2024 09:35:31 +0000 (11:35 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 27 Jan 2024 09:35:31 +0000 (11:35 +0200)
p2p_go_neg_init() ignored the provided timeout value and used the
default 15 second timeout in discover_peer(). This did not allow the
recently added go_neg_pbc() timeout increase for concurrent cases to be
used fully.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/wpasupplicant.py

index ae728a034c1a37723f122c3b1dd70d89dea07ba6..8912310b956f78d9e6e589bf8213d2d7a120ef47 100644 (file)
@@ -804,7 +804,7 @@ class WpaSupplicant:
                         persistent_id=None, freq=None, provdisc=False,
                         wait_group=True, freq2=None, max_oper_chwidth=None,
                         ht40=False, vht=False):
-        if not self.discover_peer(peer):
+        if not self.discover_peer(peer,timeout=timeout if timeout else 15):
             raise Exception("Peer " + peer + " not found")
         self.dump_monitor()
         if pin: