Skip to contentSkip to conversation

audio/AVCTP: Use A/V_RemoteControl UUID for incoming connections

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Nov 18, 2013 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 audio/AVCTP: Use A/V_RemoteControl UUID for incoming connections

From: Luiz Augusto von Dentz <[email protected]>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
profiles/audio/avctp.c +1 -1
index dac7a66..476f61a 100644
@@ -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;
Signature · 1 line
1.8.3.1