]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Speed up p2ps_active_go_seeker by using a single-channel scan
authorJouni Malinen <j@w1.fi>
Sun, 11 Oct 2015 17:08:56 +0000 (20:08 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Oct 2015 18:42:03 +0000 (21:42 +0300)
There is no test coverage benefit from using all-channels scan in
P2P_CONNECT-join here.

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

index 8a746af59d4ea0b710cb2bfdf815bcdcd68c75e0..c23f6ab008b16a4d56d73c6611c712a345bff45d 100644 (file)
@@ -1312,7 +1312,7 @@ def test_p2ps_active_go_seeker(dev, apdev):
         if ev is None:
             raise Exception("P2P-GROUP-STARTED timeout on " + dev[1].p2p_dev_addr())
 
-        dev[1].group_form_result(ev)
+        res = dev[1].group_form_result(ev)
 
         p2ps_advertise(r_dev=dev[0], r_role='2',
                        svc_name='org.wi-fi.wfds.send.rx',
@@ -1322,7 +1322,8 @@ def test_p2ps_active_go_seeker(dev, apdev):
                                                   srv_info='2 GB')
 
         ev1, ev0 = p2ps_provision(dev[1], dev[0], adv_id)
-        p2ps_connect_pd(dev[0], dev[1], ev0, ev1)
+        p2ps_connect_pd(dev[0], dev[1], ev0, ev1,
+                        join_extra=" freq=" + res['freq'])
     finally:
         remove_group(dev[0], dev[1])
         dev[0].global_request("P2P_SERVICE_DEL asp all")