Diff between b3c0a8a339fe2faf73d49e0ef9ea7f9a4123cc16 and b11f10f8142a745cada3bd171d56959f1edb439d

Changed Files

File Additions Deletions Status
android/android-tester.c +6 -1 modified

Full Patch

diff --git a/android/android-tester.c b/android/android-tester.c
index 623e57e..3fbcb2f 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1368,9 +1368,14 @@ static void test_discovery_stop_done(const void *test_data)
 	check_expected_status(status);
 }
 
-static bool pre_inq_compl_hook(const void *data, uint16_t len, void *user_data)
+static bool pre_inq_compl_hook(const void *dummy, uint16_t len, void *user_data)
 {
+	struct test_data *data = tester_get_data();
+
 	/* Make sure Inquiry Command Complete is not called */
+
+	hciemu_del_hook(data->hciemu, HCIEMU_HOOK_PRE_EVT, BT_HCI_CMD_INQUIRY);
+
 	return false;
 }