diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c
index 61890cc..d2dce3e 100644
--- a/profiles/audio/avctp.c
+++ b/profiles/audio/avctp.c
struct avctp *session;
struct audio_device *dev;
char address[18];
- bdaddr_t src;
+ bdaddr_t src, dst;
GError *err = NULL;
uint16_t psm;
struct btd_device *device;
bt_io_get(chan, &err,
BT_IO_OPT_SOURCE_BDADDR, &src,
+ BT_IO_OPT_DEST_BDADDR, &dst,
BT_IO_OPT_DEST, address,
BT_IO_OPT_PSM, &psm,
BT_IO_OPT_INVALID);
DBG("AVCTP: incoming connect from %s", address);
- device = adapter_find_device(adapter_find(&src), address);
+ device = adapter_find_device(adapter_find(&src), &dst);
if (!device)
return;
diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
index 4921fdc..0187691 100644
--- a/profiles/audio/avdtp.c
+++ b/profiles/audio/avdtp.c
DBG("AVDTP: incoming connect from %s", address);
- device = adapter_find_device(adapter_find(&src), address);
+ device = adapter_find_device(adapter_find(&src), &dst);
if (!device)
goto drop;