From: Jouni Malinen Date: Sun, 22 Mar 2015 18:54:07 +0000 (+0200) Subject: tests: Automatic reconnection on re-enabling temporarily disabled network X-Git-Tag: hostap_2_5~934 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a539d3f71f5f987eaa09a0502f601bfae603f941;p=thirdparty%2Fhostap.git tests: Automatic reconnection on re-enabling temporarily disabled network Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index 3fdc0da36..d2ebb2963 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -1873,3 +1873,10 @@ def test_ap_wpa2_psk_incorrect_passphrase(dev, apdev): ev = hapd.wait_event(["AP-STA-POSSIBLE-PSK-MISMATCH"], timeout=10) if ev is None: raise Exception("No AP-STA-POSSIBLE-PSK-MISMATCH reported") + dev[0].dump_monitor() + + hapd.disable() + hapd.set("wpa_passphrase", "incorrect passphrase") + hapd.enable() + + dev[0].wait_connected(timeout=20)