From f033200e940489467d893631d68a1eaf45a50f7c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 8 May 2015 17:59:52 +0300 Subject: [PATCH] tests: Add P2P Device support for persistent_group The network operations need to use the global control interface to be performed on the interface that stores the network profiles for persistent groups. Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_persistent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py index 291bd81ef..eaf42335c 100644 --- a/tests/hwsim/test_p2p_persistent.py +++ b/tests/hwsim/test_p2p_persistent.py @@ -125,7 +125,7 @@ def test_persistent_group(dev): break if id is None: raise Exception("Could not find persistent group entry") - clients = dev[0].request("GET_NETWORK " + id + " p2p_client_list").rstrip() + clients = dev[0].global_request("GET_NETWORK " + id + " p2p_client_list").rstrip() if dev[1].p2p_dev_addr() not in clients: raise Exception("Peer missing from client list") if "FAIL" not in dev[1].request("SELECT_NETWORK " + str(id)): @@ -142,7 +142,7 @@ def test_persistent_group(dev): raise Exception("DISABLE_NETWORK succeeded unexpectedly(2)") if "FAIL" not in dev[1].request("REMOVE_NETWORK 1234567"): raise Exception("REMOVE_NETWORK succeeded unexpectedly") - dev[1].request("REMOVE_NETWORK all") + dev[1].global_request("REMOVE_NETWORK all") if len(dev[1].list_networks(p2p=True)) > 0: raise Exception("Unexpected network block remaining") invite(dev[0], dev[1])