OSDN Git Service

audio/AVCTP: Use A/V_RemoteControl UUID for incoming connections
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 18 Nov 2013 13:42:14 +0000 (15:42 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 18 Nov 2013 14:27:14 +0000 (16:27 +0200)
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

profiles/audio/avctp.c

index dac7a66..476f61a 100644 (file)
@@ -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;