It was apparently possible for the test script to fetch the
PTKSA_CACHE_LIST information from hostapd before the PASN message 3 had
been processed since only the event from wpa_supplicant related to
sending of that frame was explicitly waited for. Add a small wait to try
to avoid this race condition with UML time-travel.
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
if status:
return
+ # There is a small window for a race condition here since the hostapd side
+ # might not yet have processed the PASN message 3 and added the PTKSA entry,
+ # so wait a bit before checking the results.
+ time.sleep(0.1)
+
check_pasn_ptk(dev, hapd, cipher, fail_ptk)
@remote_compatible