OSDN Git Service

tools/l2cap-tester: Fix using right hciemu type
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 19 Sep 2013 16:41:06 +0000 (19:41 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 19 Sep 2013 17:41:50 +0000 (20:41 +0300)
tools/l2cap-tester.c

index 53a08fd..20b84be 100644 (file)
@@ -167,7 +167,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(HCIEMU_TYPE_BREDRLE);
+       data->hciemu = hciemu_new(data->hciemu_type);
        if (!data->hciemu) {
                tester_warn("Failed to setup HCI emulation");
                tester_pre_setup_failed();