From: Jouni Malinen Date: Sun, 31 Mar 2013 21:59:50 +0000 (+0300) Subject: tests: Stop wpa_supplicant before hostapd X-Git-Tag: aosp-kk-from-upstream~370 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b67117a34e3c683cee6965c016b36d94c56bcae;p=thirdparty%2Fhostap.git tests: Stop wpa_supplicant before hostapd Stopping the AP first was not ideal for the test cases since it could result in wpa_supplicant trying to connect back and start a scan at the end of a test case and cause problems for the following test case that tried to scan in the beginning while the previously started scan was still in progress. Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 24d51cad2..c1de3308c 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -18,10 +18,10 @@ from hostapd import HostapdGlobal def reset_devs(dev, apdev): hapd = HostapdGlobal() - for ap in apdev: - hapd.remove(ap['ifname']) for d in dev: d.reset() + for ap in apdev: + hapd.remove(ap['ifname']) def main(): test_file = None