mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
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
@ -292,6 +292,7 @@ def p2ps_connect_pd(dev0, dev1, ev0, ev1, pin=None, join_extra=""):
|
|||||||
|
|
||||||
# Persistent Connection (todo: handle frequency)
|
# Persistent Connection (todo: handle frequency)
|
||||||
if persist0 is not None:
|
if persist0 is not None:
|
||||||
|
dev0.p2p_stop_find()
|
||||||
if "OK" not in dev0.global_request("P2P_GROUP_ADD persistent=" + persist0 + " freq=2412"):
|
if "OK" not in dev0.global_request("P2P_GROUP_ADD persistent=" + persist0 + " freq=2412"):
|
||||||
raise Exception("Could not re-start persistent group")
|
raise Exception("Could not re-start persistent group")
|
||||||
ev0 = dev0.wait_global_event(["P2P-GROUP-STARTED"], timeout=10)
|
ev0 = dev0.wait_global_event(["P2P-GROUP-STARTED"], timeout=10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user