]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use social channel scan to speed up tests
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 18 Mar 2013 15:36:12 +0000 (17:36 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 18 Mar 2013 15:36:12 +0000 (17:36 +0200)
The discovery and group formation test cases do not need to run the full
scan as the first step, so get rid of it to make the tests complete more
quickly.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

tests/hwsim/test_p2p_discovery.py
tests/hwsim/test_p2p_grpform.py

index ed520a2c39937b50a1611fb396dc6800bd2150a7..508325adf8c4b01fff5111e590a33fad31d1b664 100644 (file)
@@ -14,8 +14,8 @@ def test_discovery(dev):
     addr0 = dev[0].p2p_dev_addr()
     addr1 = dev[1].p2p_dev_addr()
     logger.info("Start device discovery")
-    dev[0].p2p_find()
-    dev[1].p2p_find()
+    dev[0].p2p_find(social=True)
+    dev[1].p2p_find(social=True)
     ev0 = dev[0].wait_event(["P2P-DEVICE-FOUND"], timeout=15)
     if ev0 is None:
         raise Exception("Device discovery timed out")
index 6fa1ebc95d98c1f80e26cb4376f3580e2e9ddab2..6c976acb63ddeeab9881de73b54178a6c6652460 100644 (file)
@@ -84,8 +84,8 @@ def go_neg_init_pbc(i_dev, r_dev, i_intent, res):
     res.put(i_res)
 
 def go_neg_pbc(i_dev, r_dev, i_intent=None, r_intent=None):
-    r_dev.p2p_find()
-    i_dev.p2p_find()
+    r_dev.p2p_find(social=True)
+    i_dev.p2p_find(social=True)
     logger.info("Start GO negotiation " + i_dev.ifname + " -> " + r_dev.ifname)
     r_dev.dump_monitor()
     res = Queue.Queue()