summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-manager.c2
-rw-r--r--hcid/dbus-service.c2
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)",