[PATCH 05/17] tests: change test_p2p_persistent to use the global control interface

Ilan Peer ilan.peer at intel.com
Tue May 5 05:36:53 EDT 2015


From: Ben Rosenfeld <ben.rosenfeld at intel.com>

Send request to set persistent_reconnect on the global control
interface so it would also work when using a dedicated P2P Device
interface.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
 tests/hwsim/test_p2p_persistent.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py
index eb32cdd..9abd604 100644
--- a/tests/hwsim/test_p2p_persistent.py
+++ b/tests/hwsim/test_p2p_persistent.py
@@ -41,9 +41,9 @@ def terminate_group(go, cli):
 def invite(inv, resp, extra=None, persistent_reconnect=True):
     addr = resp.p2p_dev_addr()
     if persistent_reconnect:
-        resp.request("SET persistent_reconnect 1")
+        resp.global_request("SET persistent_reconnect 1")
     else:
-        resp.request("SET persistent_reconnect 0")
+        resp.global_request("SET persistent_reconnect 0")
     resp.p2p_listen()
     if not inv.discover_peer(addr, social=True):
         raise Exception("Peer " + addr + " not found")
@@ -276,7 +276,7 @@ def test_persistent_group_per_sta_psk(dev):
     dev[0].dump_monitor()
 
     logger.info("Try to re-invoke persistent group from client")
-    dev[0].request("SET persistent_reconnect 1")
+    dev[0].global_request("SET persistent_reconnect 1")
     dev[0].p2p_listen()
     if not dev[1].discover_peer(addr0, social=True):
         raise Exception("Peer " + peer + " not found")
-- 
1.9.1



More information about the HostAP mailing list