]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix autogo_bridge to clear autoscan setting
authorJouni Malinen <j@w1.fi>
Sat, 27 Sep 2014 09:16:06 +0000 (12:16 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 27 Sep 2014 13:12:41 +0000 (16:12 +0300)
Previously, periodic autoscan could have been left running and that
could result in the following test cases failing in some cases.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_autogo.py

index fbd605cb4ceb00a84bd3964d70838a9fee17ec98..a6e8792150ed5e88773a201a048b2896b1d76cd6 100644 (file)
@@ -414,6 +414,7 @@ def test_autogo_bridge(dev):
             raise Exception("Unexpected wpa_state")
         dev[0].remove_group()
     finally:
+        dev[0].request("AUTOSCAN ")
         subprocess.Popen(['sudo', 'brctl', 'delif', 'p2p-br0', dev[0].ifname],
                          stderr=open('/dev/null', 'w'))
         subprocess.Popen(['sudo', 'ip', 'link', 'set', 'dev', 'p2p-br0', 'down'],