tests: Avoid race condition in autogo_passphrase_len
Wait for 4-way handshake to complete on the GO before the connectivity test between two P2P clients. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
fc995d3130
commit
52e869032a
1 changed files with 5 additions and 0 deletions
|
@ -459,6 +459,11 @@ def test_autogo_passphrase_len(dev):
|
|||
key_mgmt='WPA-PSK', pairwise='CCMP', group='CCMP',
|
||||
scan_freq=res['freq'])
|
||||
dev[0].wait_sta(addr=dev[2].own_addr())
|
||||
ev = dev[0].wait_group_event(["EAPOL-4WAY-HS-COMPLETED"], timeout=5)
|
||||
if ev is None:
|
||||
raise Exception("4-way handshake was not completed")
|
||||
if dev[2].own_addr() not in ev:
|
||||
raise Exception("Unexpected 4-way handshake address: " + ev)
|
||||
hwsim_utils.test_connectivity_p2p_sta(dev[1], dev[2])
|
||||
dev[2].request("DISCONNECT")
|
||||
|
||||
|
|
Loading…
Reference in a new issue