[PATCH 02/16] tests: modify reset() to use the global control interface

Ilan Peer ilan.peer at intel.com
Wed Jun 17 09:24:48 EDT 2015


Change the reset() method to use the global control interface
for resetting P2P state and also add a call to P2P_FLUSH.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 tests/hwsim/wpasupplicant.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py
index 4f574e2..4323ff5 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -120,11 +120,12 @@ class WpaSupplicant:
         if not "OK" in res:
             logger.info("FLUSH to " + self.ifname + " failed: " + res)
         self.global_request("REMOVE_NETWORK all")
-        self.request("SET p2p_add_cli_chan 0")
-        self.request("SET p2p_no_go_freq ")
-        self.request("SET p2p_pref_chan ")
-        self.request("SET p2p_no_group_iface 1")
-        self.request("SET p2p_go_intent 7")
+        self.global_request("SET p2p_add_cli_chan 0")
+        self.global_request("SET p2p_no_go_freq ")
+        self.global_request("SET p2p_pref_chan ")
+        self.global_request("SET p2p_no_group_iface 1")
+        self.global_request("SET p2p_go_intent 7")
+        self.global_request("P2P_FLUSH")
         self.request("SET ignore_old_scan_res 0")
         if self.gctrl_mon:
             try:
-- 
1.9.1



More information about the HostAP mailing list