]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Run dump_monitor() again if scan was pending
authorJouni Malinen <j@w1.fi>
Tue, 14 Jan 2014 21:37:15 +0000 (23:37 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 14 Jan 2014 22:09:56 +0000 (00:09 +0200)
commitb21df6e779979d334cc7e5aee878afc3d9213d1a
treef87b2a27465ab9ea0141c46f54e2aa4b61c5ef48
parentefc64886b8a285440e9954b5395a5370d8c5f84f
tests: Run dump_monitor() again if scan was pending

In addition to running the FLUSH command again, the pending monitor
interface events need be cleared in case the driver was running a scan
when reset() is called. This avoids issues, e.g., with discovery_dev_id
failing due to an unexpected P2P-DEVICE-FOUND event that was generated
by the pending scan operation that had not yet complete when the first
dump_monitor() call in reset() happened.

Signed-hostap: Jouni Malinen <j@w1.fi>
tests/hwsim/wpasupplicant.py