]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix a race condition in mesh_link_probe
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 22 Apr 2024 20:14:08 +0000 (23:14 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 22 Apr 2024 20:14:08 +0000 (23:14 +0300)
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>
tests/hwsim/test_wpas_mesh.py

index 5d212400550fe312f2b1288491ccb17c4a02ae05..d3d8c93cd121c879f5bb4f6996dc14f5662530c7 100644 (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: