From: Ben Rosenfeld Date: Tue, 5 May 2015 09:36:54 +0000 (+0300) Subject: tests: Remove all P2P networks in call to reset X-Git-Tag: hostap_2_5~733 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09f60224a5c7ebb7a39736f397105c2518d31477;p=thirdparty%2Fhostap.git tests: Remove all P2P networks in call to reset When resetting a device, remove all the P2P networks to prevent unexpected behavior in following tests. This is needed for the case where P2P Device interface is used. Signed-off-by: Ben Rosenfeld --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 53df0390c..1cdcc0965 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 ")