From: Jouni Malinen Date: Mon, 19 Aug 2019 14:22:41 +0000 (+0300) Subject: tests: Make mbo_cell_capa_update_pmf more robust X-Git-Tag: hostap_2_10~2431 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5ffe45908cae43925bb5cb13d98251c802b4717;p=thirdparty%2Fhostap.git tests: Make mbo_cell_capa_update_pmf more robust Wait for hostapd to report completion of connection so that the WNM Notification Request frame does not get sent before the AP has processed EAPOL-Key msg 4/4 and configured the TK. This could result in a race condition especially when testing using UML with time-travel. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_mbo.py b/tests/hwsim/test_mbo.py index 693ddf587..5a71cfba8 100644 --- a/tests/hwsim/test_mbo.py +++ b/tests/hwsim/test_mbo.py @@ -321,6 +321,7 @@ def test_mbo_cell_capa_update_pmf(dev, apdev): dev[0].connect(ssid, psk=passphrase, key_mgmt="WPA-PSK-SHA256", proto="WPA2", ieee80211w="2", scan_freq="2412") + hapd.wait_sta() addr = dev[0].own_addr() sta = hapd.get_sta(addr)