diff options
author | Cidorvan Leite <cidorvan.leite@openbossa.org> | 2008-05-07 15:02:14 +0000 |
---|---|---|
committer | Cidorvan Leite <cidorvan.leite@openbossa.org> | 2008-05-07 15:02:14 +0000 |
commit | ecbcc749831ab86da7ed8d15c36f1bd1fb380be8 (patch) | |
tree | 031cf08f8c62ebbd5535566de93cc2a186d0ae96 /hcid | |
parent | 4538ab2cc8f6a59a5a4bb987fe89ae361dcf0f60 (diff) |
MAC address converted to upper case when creating an object path
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/device.c | 5 |
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); |