tests: Fix a race condition in mesh_link_probe

Wait for both peers to be connected before checking MESH_LINK_PROBE
behavior. Without this, it was possible for a MESH_LINK_PROBE command to
be issues before the specific peer had been added and that would result
in the nl80211 command failing.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2024-04-22 23:14:08 +03:00 committed by Jouni Malinen
parent 97da087c0c
commit e141b33a66

View file

@ -2562,6 +2562,7 @@ def test_mesh_link_probe(dev, apdev, params):
check_mesh_group_added(dev[i])
for i in range(3):
check_mesh_peer_connected(dev[i])
check_mesh_peer_connected(dev[i])
res = dev[0].request("MESH_LINK_PROBE " + addr1)
if "FAIL" in res: