Diff between 939da35000846943480e86e9c318641536e6fd30 and 9c12c5b8d050a6c1b74067c0d1d8feee399d1bfb

Changed Files

File Additions Deletions Status
tools/gap-tester.c +1 -1 modified
tools/mgmt-tester.c +3 -1 modified

Full Patch

diff --git a/tools/gap-tester.c b/tools/gap-tester.c
index c0252ca..d788626 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 a99a18e..cf2d960 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; \