From: Jouni Malinen Date: Thu, 26 Dec 2019 17:33:22 +0000 (+0200) Subject: tests: Make wpa2_ocv_ap_group_hs more robust X-Git-Tag: hostap_2_10~2097 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c364e2cd3485b5a0beff173c0f1608c3f45668;p=thirdparty%2Fhostap.git tests: Make wpa2_ocv_ap_group_hs more robust Wait for hostapd to indicate connection before disconnecting from the station side. This avoids a race condition especially with UML time-travel. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ocv.py b/tests/hwsim/test_ocv.py index 176e17faf..9573ecb9e 100644 --- a/tests/hwsim/test_ocv.py +++ b/tests/hwsim/test_ocv.py @@ -648,6 +648,7 @@ def test_wpa2_ocv_ap_group_hs(dev, apdev): conn.hapd.request("SET ext_eapol_frame_io 0") dev[1].connect(conn.ssid, psk=conn.passphrase, scan_freq="2412", ocv="1", ieee80211w="1") + conn.hapd.wait_sta() conn.hapd.request("SET ext_eapol_frame_io 1") # Trigger a group key handshake