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 <jouni@qca.qualcomm.com>
This commit is contained in:
parent
f8fee78879
commit
c1e33588b8
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ def test_wifi_display_go_invite(dev):
|
||||||
dev[0].p2p_start_go(freq=2412)
|
dev[0].p2p_start_go(freq=2412)
|
||||||
|
|
||||||
# Add test client to the group
|
# 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")
|
logger.info("Invite peer to join the group")
|
||||||
dev[0].p2p_go_authorize_client(pin)
|
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")
|
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):
|
if "OK" not in dev[0].global_request("P2P_GROUP_ADD persistent=" + networks[0]['id'] + " freq=" + listen_freq):
|
||||||
raise Exception("Could not state GO")
|
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])
|
invite_from_cli(dev[0], dev[1])
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue