OSDN Git Service

android/tester: Fix handling inquiry by android tester
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>
Thu, 20 Mar 2014 11:25:08 +0000 (12:25 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 20 Mar 2014 12:18:23 +0000 (14:18 +0200)
commit26389bf206b4d3e018e178169dd0eb0b825afcdf
tree96c23f7c42ccc6631f426d07d825546f574b1412
parent0e6b13b702ce6be781e8e68fb6f508fcc1f1aff6
android/tester: Fix handling inquiry by android tester

Previously btdev sent inquiry_complete in one mainloop iteration. Due to
new way of handling it we need to make sure cancel_discovery is called
if start_discovery has been used.
There is also no need to hook before inquiry_complete_event in case of
test for cancel_discovery.
android/android-tester.c