From: Jouni Malinen Date: Sun, 30 Nov 2014 13:44:37 +0000 (+0200) Subject: tests: Stop connection at the end of monitor_iface_unknown_sta X-Git-Tag: hostap_2_4~966 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faa907389b1f0ceaa1f3d2948cef1e45d046d92e;p=thirdparty%2Fhostap.git tests: Stop connection at the end of monitor_iface_unknown_sta Do not leave the station trying to connect at the end of the test case since that can have an effect to the following test case. Such sequences should be tested in test cases that are specifically designed for that rather than randomly between test cases. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_monitor_interface.py b/tests/hwsim/test_monitor_interface.py index 1ecf25bb1..7af8724ba 100644 --- a/tests/hwsim/test_monitor_interface.py +++ b/tests/hwsim/test_monitor_interface.py @@ -76,3 +76,4 @@ def test_monitor_iface_unknown_sta(dev, apdev): ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=5) if ev is None: raise Exception("No disconnection") + dev[0].request("DISCONNECT")