From 73a2f828878b07a6fec207ae305646f3ce57efb8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 28 Nov 2014 18:23:11 +0200 Subject: [PATCH] tests: Increase retry limit and timeout for wpas_mesh_open_no_auto This test case was failing every now and then due to dev1 (no_auto_peer=1) not receiving the new-peer-candidate event in time before dev0 has already stopped retries on mesh peering open message. This sounds somewhat expected with the default 4 * 40 ms = 160 ms retries and 1000 TU beacon interval. Use maximum timeout 16 * 255 ms = 4080 ms to make this test case less likely to fail. Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_mesh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index e11cf1677..32183bafc 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -237,6 +237,8 @@ def _test_wpas_mesh_open_no_auto(dev, apdev, test_connectivity): dev[0].set_network_quoted(id, "ssid", "wpas-mesh-open") dev[0].set_network(id, "key_mgmt", "NONE") dev[0].set_network(id, "frequency", "2412") + dev[0].set_network(id, "dot11MeshMaxRetries", "16") + dev[0].set_network(id, "dot11MeshRetryTimeout", "255") dev[0].mesh_group_add(id) id = dev[1].add_network()