]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Increase retry limit and timeout for wpas_mesh_open_no_auto
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 28 Nov 2014 16:23:11 +0000 (18:23 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 28 Nov 2014 21:02:30 +0000 (23:02 +0200)
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 <jouni@qca.qualcomm.com>
tests/hwsim/test_wpas_mesh.py

index e11cf1677bf1fd568ff3eac41048df00d70119e8..32183bafc86fe88a67ed8eee3569c708f501dac8 100644 (file)
@@ -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()