From: Jouni Malinen Date: Sat, 27 Sep 2014 09:16:06 +0000 (+0300) Subject: tests: Fix autogo_bridge to clear autoscan setting X-Git-Tag: hostap_2_3~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=377babb205a8f3b7cb711f623682a29c84416a78;p=thirdparty%2Fhostap.git tests: Fix autogo_bridge to clear autoscan setting 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 --- diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index fbd605cb4..a6e879215 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -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'],