From c1e33588b89676d03f264e3fc59c19ae68e00e91 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 5 Dec 2014 15:30:46 +0200 Subject: [PATCH] tests: Optimize WFD connect_cli() calls 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 --- tests/hwsim/test_p2p_wifi_display.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_p2p_wifi_display.py b/tests/hwsim/test_p2p_wifi_display.py index f4acff223..fb6580664 100644 --- a/tests/hwsim/test_p2p_wifi_display.py +++ b/tests/hwsim/test_p2p_wifi_display.py @@ -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: