tests: Use the provided timeout for P2P peer discovery
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>
This commit is contained in:
parent
9e9afd9569
commit
c579b07e26
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,7 @@ class WpaSupplicant:
|
||||||
persistent_id=None, freq=None, provdisc=False,
|
persistent_id=None, freq=None, provdisc=False,
|
||||||
wait_group=True, freq2=None, max_oper_chwidth=None,
|
wait_group=True, freq2=None, max_oper_chwidth=None,
|
||||||
ht40=False, vht=False):
|
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")
|
raise Exception("Peer " + peer + " not found")
|
||||||
self.dump_monitor()
|
self.dump_monitor()
|
||||||
if pin:
|
if pin:
|
||||||
|
|
Loading…
Reference in a new issue