From: Jouni Malinen Date: Sun, 11 Oct 2015 16:59:51 +0000 (+0300) Subject: tests: Speed up p2ps_connect_adv_go_persistent X-Git-Tag: hostap_2_6~1532 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dd55f2486480c2eba4eb5b9d24278c774b52119;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_p2ps.py b/tests/hwsim/test_p2ps.py index ae37366ca..8a746af59 100644 --- a/tests/hwsim/test_p2ps.py +++ b/tests/hwsim/test_p2ps.py @@ -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)