]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Stop wpa_supplicant before hostapd
authorJouni Malinen <j@w1.fi>
Sun, 31 Mar 2013 21:59:50 +0000 (00:59 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 31 Mar 2013 21:59:50 +0000 (00:59 +0300)
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 <j@w1.fi>

tests/hwsim/run-tests.py

index 24d51cad2f1f91ee47de133eff92767e58ea5cec..c1de3308c8cdb04df1a9bad3c17528c9bf84c334 100755 (executable)
@@ -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