summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
Diffstat (limited to 'hcid')
-rw-r--r--hcid/device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/device.c b/hcid/device.c
index a1cd7d37..da3c560e 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -1017,15 +1017,18 @@ static DBusSignalVTable device_signals[] = {
struct device *device_create(DBusConnection *conn, struct adapter *adapter,
const gchar *address, GSList *uuids)
{
+ gchar *address_up;
struct device *device;
device = g_try_malloc0(sizeof(struct device));
if (device == NULL)
return NULL;
+ address_up = g_ascii_strup(address, -1);
device->path = g_strdup_printf("/hci%d/dev_%s",
- adapter->dev_id, address);
+ adapter->dev_id, address_up);
g_strdelimit(device->path, ":", '_');
+ g_free(address_up);
debug("Creating device %s", device->path);