From: Luiz Augusto von Dentz Date: Mon, 18 Nov 2013 13:42:14 +0000 (+0200) Subject: audio/AVCTP: Use A/V_RemoteControl UUID for incoming connections X-Git-Tag: android-x86-4.4-r3~6821 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9ee7b3dd69e93a94d82e4aa94c7ef41640f5f7e6;p=android-x86%2Fexternal-bluetooth-bluez.git audio/AVCTP: Use A/V_RemoteControl UUID for incoming connections By the time and incoming connection arrives it is not possible to determine the role, so this changes the UUID to A/V_RemoteControl which according to assigned number page bellow is the profile UUID for AVRCP: https://www.bluetooth.org/en-us/specification/assigned-numbers/service-discovery --- diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index dac7a66c5..476f61ac1 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1311,7 +1311,7 @@ static void avctp_control_confirm(struct avctp *session, GIOChannel *chan, dst = device_get_address(dev); session->auth_id = btd_request_authorization(src, dst, - AVRCP_TARGET_UUID, + AVRCP_REMOTE_UUID, auth_cb, session); if (session->auth_id == 0) goto drop;