tests: Make fils_sk_auth_mismatch more robust
Wait STA connection to be completed in hostapd before testing connectivity. This avoids a possible race condition that could be hit especially when testing with UML time-travel. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e6d3aca9cf
commit
534d36210b
1 changed files with 2 additions and 0 deletions
|
@ -1640,6 +1640,7 @@ def test_fils_sk_auth_mismatch(dev, apdev, params):
|
|||
dev[0].request("DISCONNECT")
|
||||
dev[0].wait_disconnected()
|
||||
|
||||
hapd.dump_monitor()
|
||||
dev[0].dump_monitor()
|
||||
dev[0].select_network(id, freq=2412)
|
||||
ev = dev[0].wait_event(["CTRL-EVENT-EAP-STARTED",
|
||||
|
@ -1650,6 +1651,7 @@ def test_fils_sk_auth_mismatch(dev, apdev, params):
|
|||
if "CTRL-EVENT-EAP-STARTED" not in ev:
|
||||
raise Exception("No EAP exchange seen")
|
||||
dev[0].wait_connected()
|
||||
hapd.wait_sta()
|
||||
hwsim_utils.test_connectivity(dev[0], hapd)
|
||||
|
||||
def setup_fils_rekey(dev, apdev, params, wpa_ptk_rekey=0, wpa_group_rekey=0,
|
||||
|
|
Loading…
Reference in a new issue