]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make wpa2_ocv_ap_group_hs more robust
authorJouni Malinen <j@w1.fi>
Thu, 26 Dec 2019 17:33:22 +0000 (19:33 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 26 Dec 2019 17:33:22 +0000 (19:33 +0200)
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 <j@w1.fi>
tests/hwsim/test_ocv.py

index 176e17faf8947e63c2d9e2245404f85986aeba2a..9573ecb9e8286f5bf53de7872bae22ece0edc831 100644 (file)
@@ -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