diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-11-17 20:26:27 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-11-17 20:26:27 +0000 |
commit | 3ace2361ad7c675f843ab7877d70f25613f26585 (patch) | |
tree | e65e71d18b0f9b3b799c64506c40345624567fbd | |
parent | 71094ca865f428f8ce699266c6d5037e60d525fb (diff) |
Register service record for all local adapters
-rw-r--r-- | hcid/dbus-manager.c | 2 | ||||
-rw-r--r-- | hcid/dbus-service.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-manager.c b/hcid/dbus-manager.c index cd423d60..216b1102 100644 --- a/hcid/dbus-manager.c +++ b/hcid/dbus-manager.c @@ -459,7 +459,7 @@ static DBusHandlerResult add_service_record(DBusConnection *conn, goto fail; } - if (sdp_device_record_register_binary(sess, BDADDR_LOCAL, rec->buf->data, + if (sdp_device_record_register_binary(sess, BDADDR_ANY, rec->buf->data, rec->buf->data_size, SDP_RECORD_PERSIST, &handle) < 0) { err = errno; sdp_close(sess); diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index d7000069..208dd160 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -228,7 +228,7 @@ int register_agent_records(struct slist *lrecords) continue; handle = 0; - if (sdp_device_record_register_binary(sess, BDADDR_LOCAL, rec->buf->data, + if (sdp_device_record_register_binary(sess, BDADDR_ANY, rec->buf->data, rec->buf->data_size, SDP_RECORD_PERSIST, &handle) < 0) { /* FIXME: If just one of the service record registration fails */ error("Service Record registration failed:(%s, %d)", |