tests: Speed up p2ps_connect_adv_go_persistent
Stop the pending P2P_LISTEN operation priot to issuing P2P_GROUP_ADD to start a GO. This avoids excessively long wait for the previous Listen step to complete before being able to start the GO. This makes p2ps_connect_adv_go_persistent take significantly less time. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
85ceafd39a
commit
7dd55f2486
1 changed files with 1 additions and 0 deletions
|
@ -292,6 +292,7 @@ def p2ps_connect_pd(dev0, dev1, ev0, ev1, pin=None, join_extra=""):
|
|||
|
||||
# Persistent Connection (todo: handle frequency)
|
||||
if persist0 is not None:
|
||||
dev0.p2p_stop_find()
|
||||
if "OK" not in dev0.global_request("P2P_GROUP_ADD persistent=" + persist0 + " freq=2412"):
|
||||
raise Exception("Could not re-start persistent group")
|
||||
ev0 = dev0.wait_global_event(["P2P-GROUP-STARTED"], timeout=10)
|
||||
|
|
Loading…
Reference in a new issue