From: Jouni Malinen Date: Fri, 8 May 2015 14:59:52 +0000 (+0300) Subject: tests: Add P2P Device support for persistent_group X-Git-Tag: hostap_2_5~721 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f033200e940489467d893631d68a1eaf45a50f7c;p=thirdparty%2Fhostap.git 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 --- 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])