tests: Move P2P-REMOVE-AND-REFORM-GROUP cases more robust
authorJouni Malinen <j@w1.fi>
Thu, 24 Dec 2015 11:40:54 +0000 (13:40 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Dec 2015 11:40:54 +0000 (13:40 +0200)
commite85bb01998b6fc3dfb53186608d545d68922d9f2
tree15f626ee46f35ef0b963fc6bed2928570a59741c
parenta67e7e533ab542c0faa43758541c3bbed5bae6b6
tests: Move P2P-REMOVE-AND-REFORM-GROUP cases more robust

Wait for the AP-DISABLED and AP-ENABLED group events before reading the
current group operation frequency after P2P-REMOVE-AND-REFORM-GROUP.
This reduces a possibility of a race condition making a test case fail
with the returned frequency being 0 when reading this before the
reformed group is fully up. This may help avoid false error reports for
the following test cases: p2p_go_move_reg_change p2p_go_move_scm
p2p_go_move_scm_peer_supports p2p_go_move_scm_multi.

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