]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Fix thread handling in P2P GO Negotiation test cases
authorJouni Malinen <j@w1.fi>
Fri, 27 Dec 2019 16:14:09 +0000 (18:14 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2019 16:14:09 +0000 (18:14 +0200)
commit6cd59688b86551665b4833f0e1bafa5e9670e5a6
tree14134b77f2a501a4b70c8ca0e72db2a1f4229cfe
parentc64b6f62cd09af4690107f54c63bf3fa4c58068a
tests: Fix thread handling in P2P GO Negotiation test cases

Some of the error paths in go_neg_pbc() and go_neg_pin() did not wait
for the helper thread to complete processing. This could result in
unexpected behavior when the test case could have exited while the
thread was still performing tasks for the GO Negotiation. This could
result in getting stuck in one of the following test cases with
"go_neg_init_pbc thread caught an exception from p2p_go_neg_init: Group
formation timed out" showing up in the log.

This was hit, e.g., with the following test sequence:
no_go_freq p2p_channel_drv_pref_autogo

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