Diff between 7cd4d622f9d3b6a6cb2ae8bca83b37f958fe673a and c376ba31df39eaf0fd84943d60a5c9ce679c5483

Changed Files

File Additions Deletions Status
profiles/audio/avctp.c +3 -2 modified
profiles/audio/avdtp.c +1 -1 modified

Full Patch

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
@@ -1228,13 +1228,14 @@ static void avctp_confirm_cb(GIOChannel *chan, gpointer data)
 	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);
@@ -1247,7 +1248,7 @@ static void avctp_confirm_cb(GIOChannel *chan, gpointer data)
 
 	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
@@ -2476,7 +2476,7 @@ static void avdtp_confirm_cb(GIOChannel *chan, gpointer data)
 
 	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;