audio/AVCTP: Use A/V_RemoteControl UUID for incoming connections
Luiz Augusto von Dentz
maintainerPATCH 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
@@ -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
Johan Hedberg
AppliedHi Luiz,
Quoted 8 lines · Luiz Augusto von Dentz
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(-)
Applied. Thanks.
Johan