tests: Make pmksa_cache_and_cui more robust
Make sure hostapd has had time to complete 4-way handshake processing before initiating reauthentication from wpa_supplicant. There is a small window for race condition here when testing with UML and time travel. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
2d3afc273d
commit
eff82f93af
1 changed files with 1 additions and 0 deletions
|
@ -422,6 +422,7 @@ def test_pmksa_cache_and_cui(dev, apdev):
|
|||
raise Exception("No PMKSA cache entry found")
|
||||
if pmksa['pmkid'] != pmksa1b['pmkid']:
|
||||
raise Exception("Unexpected PMKID change for AP1")
|
||||
hapd.wait_sta()
|
||||
|
||||
dev[0].request("REAUTHENTICATE")
|
||||
ev = dev[0].wait_event(["CTRL-EVENT-EAP-SUCCESS"], timeout=10)
|
||||
|
|
Loading…
Reference in a new issue