[PATCH 06/17] tests: Remove all P2P networks in call to reset

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


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

When resetting a device remove all the P2P networks to prevent
unexpected behavior in following tests.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
 tests/hwsim/wpasupplicant.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py
index 53df039..1cdcc09 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -119,6 +119,7 @@ class WpaSupplicant:
         res = self.request("FLUSH")
         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 ")
-- 
1.9.1



More information about the HostAP mailing list