diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-02-13 18:51:57 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-02-13 18:51:57 -0300 |
commit | a721957f20ec79b1a19537e5c43d3a12e4286c6c (patch) | |
tree | 1dffb8894bde0f0829276e202b9dca3ff9504fcb /src/dbus-hci.c | |
parent | b5e64e37e108d782ad9496873fcdc579e5a4dc60 (diff) |
Fix emitting duplicated PropertyChanged signals for device Name property.
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r-- | src/dbus-hci.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 5ced560f..d75ee2fc 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -869,20 +869,8 @@ void hcid_dbus_remote_name(bdaddr_t *local, bdaddr_t *peer, uint8_t status, NULL); } - if (device) { - char alias[248]; - const char *dev_path = device_get_path(device); - - emit_property_changed(connection, dev_path, - DEVICE_INTERFACE, "Name", - DBUS_TYPE_STRING, &name); - - if (read_device_alias(srcaddr, dstaddr, - alias, sizeof(alias)) < 1) - emit_property_changed(connection, dev_path, - DEVICE_INTERFACE, "Alias", - DBUS_TYPE_STRING, &name); - } + if (device) + device_set_name(device, name); proceed: /* remove from remote name request list */ |