]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Optimize WFD connect_cli() calls
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 5 Dec 2014 13:30:46 +0000 (15:30 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 5 Dec 2014 13:47:21 +0000 (15:47 +0200)
There is no need to run full scan in these test cases, so use single
channel scan to save time.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_p2p_wifi_display.py

index f4acff223385f7ecab689122c011ae96493d2c62..fb6580664c21b1297be77c6f258aca293c8ac35c 100644 (file)
@@ -231,7 +231,7 @@ def test_wifi_display_go_invite(dev):
         dev[0].p2p_start_go(freq=2412)
 
         # Add test client to the group
-        connect_cli(dev[0], dev[2])
+        connect_cli(dev[0], dev[2], social=True, freq=2412)
 
         logger.info("Invite peer to join the group")
         dev[0].p2p_go_authorize_client(pin)
@@ -274,7 +274,7 @@ def test_wifi_display_persistent_group(dev):
             raise Exception("Not the persistent group data")
         if "OK" not in dev[0].global_request("P2P_GROUP_ADD persistent=" + networks[0]['id'] + " freq=" + listen_freq):
             raise Exception("Could not state GO")
-        connect_cli(dev[0], dev[2])
+        connect_cli(dev[0], dev[2], social=True, freq=listen_freq)
         invite_from_cli(dev[0], dev[1])
 
     finally: