tests: Make wpas_mesh_max_peering more robust
authorJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 20:12:38 +0000 (22:12 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 20:50:27 +0000 (22:50 +0200)
commitce8ca2f9a0bc75c034b20ee544a0f6914b2ed9e6
treefc3657a9082716fb2d9f33c2b7f6375a8c460f1f
parent29bac7cb8926dee94b6c32ad4d80fd6f4b840fdc
tests: Make wpas_mesh_max_peering more robust

The previous version was enabling all three stations at the same time
and left dev[1] and dev[2] competing on getting connected with dev[0]
that allowed only one pairing. This was not exactly robust and the pass
criteria depended on an extra event from either dev[1] or dev[2]. Fix
that by first connecting dev[0] and dev[1] and only after that, start
dev[2]. This allows proper validation of both the peering limit on
dev[0] and no extra event on dev[2].

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_mesh.py