From: Jouni Malinen Date: Mon, 23 Dec 2019 18:19:03 +0000 (+0200) Subject: tests: Make nfc_wps_handover_init more robust X-Git-Tag: hostap_2_10~2126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2636362717f8197f24d2974ce02396efb6f9dd97;p=thirdparty%2Fhostap.git tests: Make nfc_wps_handover_init more robust Data connectivity test could have been started in the middle of 4-way handshake. This test case needs to wait for two STA connections before starting the connectivity test since the first one is only for the provisioning step. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_nfc_wps.py b/tests/hwsim/test_nfc_wps.py index 760963976..e98eb4113 100644 --- a/tests/hwsim/test_nfc_wps.py +++ b/tests/hwsim/test_nfc_wps.py @@ -241,6 +241,9 @@ def _test_nfc_wps_handover_init(dev, apdev): if "FAIL" in res: raise Exception("Failed to report NFC connection handover to to wpa_supplicant") dev[0].wait_connected(timeout=15) + # WPS provisioning + hapd.wait_sta() + # data connection hapd.wait_sta() check_wpa2_connection(dev[0], apdev[0], hapd, ssid, mixed=True)