From 9c12c5b8d050a6c1b74067c0d1d8feee399d1bfb Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 31 Jan 2013 14:24:19 -0600 Subject: [PATCH] tools: Update tester apps to use new hciemu API --- tools/gap-tester.c | 2 +- tools/mgmt-tester.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/gap-tester.c b/tools/gap-tester.c index c0252ca74..d78862631 100644 --- a/tools/gap-tester.c +++ b/tools/gap-tester.c @@ -40,7 +40,7 @@ static void connect_handler(DBusConnection *connection, void *user_data) { tester_print("Connected to daemon"); - hciemu_stack = hciemu_new(); + hciemu_stack = hciemu_new(HCIEMU_TYPE_BREDRLE); } static void disconnect_handler(DBusConnection *connection, void *user_data) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index a99a18e96..cf2d9607d 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -51,6 +51,7 @@ struct test_data { uint16_t mgmt_revision; uint16_t mgmt_index; struct hciemu *hciemu; + enum hciemu_type hciemu_type; int unmet_conditions; }; @@ -216,7 +217,7 @@ static void read_index_list_callback(uint8_t status, uint16_t length, mgmt_register(data->mgmt, MGMT_EV_INDEX_REMOVED, MGMT_INDEX_NONE, index_removed_callback, NULL, NULL); - data->hciemu = hciemu_new(); + data->hciemu = hciemu_new(data->hciemu_type); if (!data->hciemu) { tester_warn("Failed to setup HCI emulation"); tester_pre_setup_failed(); @@ -293,6 +294,7 @@ static void test_condition_complete(struct test_data *data) user = malloc(sizeof(struct test_data)); \ if (!user) \ break; \ + user->hciemu_type = HCIEMU_TYPE_BREDRLE; \ user->test_data = data; \ user->expected_version = 0x06; \ user->expected_manufacturer = 0x003f; \ -- 2.47.3