p2p: clear event queue before running continuous tests

During p2p scan running period, there might be several WifiP2pOnPeersAvailable received.
This additional event is not handled, as a result, next WifiP2pOnPeersAvailable
event popping will get this obsolete event.

Clearing the event queue before next reinvoke connection test to resolve
this issue.

Bug: 124009598
Test: act.py -c \
tools/test/connectivity/acts/tests/google/wifi/p2p/config/wifi_p2p.json \
-tc WifiP2pManagerTest
Change-Id: Iff9828444d6b9e474ff8938807e4cf1d1d12ce8a
1 file changed
tree: 37920871fd343d006dc5e9ed649709f0356430e6
  1. acts/
  2. tools/
  3. wts-acts/
  4. Android.mk
  5. OWNERS
  6. PREUPLOAD.cfg