From cb395e52c28088cfcf56d2fa53aae74af0942179 Mon Sep 17 00:00:00 2001 From: Mikel Astiz Date: Fri, 10 May 2013 13:41:04 +0200 Subject: [PATCH] avctp: Fix missing UUID registration When there is an incoming connection to AVCTP PSM, there is no way to know if the remote UUID corresponds to AVRCP_REMOTE_UUID or AVRCP_TARGET_UUID. Therefore both UUIDs should be reported to the core. Without this patch, a crash has been observed with the iPhone 5 immediately after pairing. --- profiles/audio/avctp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 637270937..db03456dc 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1370,6 +1370,8 @@ static void avctp_confirm_cb(GIOChannel *chan, gpointer data) if (dev->control == NULL) { btd_device_add_uuid(dev->btd_dev, AVRCP_REMOTE_UUID); + btd_device_add_uuid(dev->btd_dev, AVRCP_TARGET_UUID); + if (dev->control == NULL) goto drop; } -- 2.47.3