]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Clear pending monitor events before starting scan
authorJouni Malinen <jouni@codeaurora.org>
Fri, 15 Mar 2019 11:40:04 +0000 (13:40 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 15 Mar 2019 11:51:55 +0000 (13:51 +0200)
commit043a29ecc4ff958ae9176f8568b81aa8d7b3e79a
tree011cf2507f6e57ea506c0f18ea33f3a9763f4c2e
parent4131ba5c554ea023e7d94b8660352245c372d0a7
tests: Clear pending monitor events before starting scan

The wait_event() call for scan completion could have processed a
previously received event from a prior scan instead of the newly started
one. This could result in flush_scan_cache() assuming there are still
results in the cache even though the scan request to clear the cache had
not even be started yet.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/wpasupplicant.py