From 5ec855c1b823c3f6ebfeb009398f82fe93210288 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Sat, 8 Feb 2014 14:15:33 +0200 Subject: core/profile: Add authorization UUID information to btd_profile This is necessary since some profiles may use different UUID for authorization. --- profiles/audio/a2dp.c | 2 ++ profiles/audio/avrcp.c | 2 ++ profiles/network/manager.c | 3 +++ src/profile.h | 1 + 4 files changed, 8 insertions(+) diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index a88a0ca08..f2be1d20f 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -2431,6 +2431,7 @@ static struct btd_profile a2dp_source_profile = { .remote_uuid = A2DP_SOURCE_UUID, .local_uuid = A2DP_SINK_UUID, + .auth_uuid = ADVANCED_AUDIO_UUID, .device_probe = a2dp_source_probe, .device_remove = a2dp_source_remove, @@ -2450,6 +2451,7 @@ static struct btd_profile a2dp_sink_profile = { .remote_uuid = A2DP_SINK_UUID, .local_uuid = A2DP_SOURCE_UUID, + .auth_uuid = ADVANCED_AUDIO_UUID, .device_probe = a2dp_sink_probe, .device_remove = a2dp_sink_remove, diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 5101d227a..f9980b37e 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -4326,6 +4326,7 @@ static struct btd_profile avrcp_target_profile = { .remote_uuid = AVRCP_TARGET_UUID, .local_uuid = AVRCP_REMOTE_UUID, + .auth_uuid = AVRCP_REMOTE_UUID, .device_probe = avrcp_target_probe, .device_remove = avrcp_target_remove, @@ -4412,6 +4413,7 @@ static struct btd_profile avrcp_controller_profile = { .remote_uuid = AVRCP_REMOTE_UUID, .local_uuid = AVRCP_TARGET_UUID, + .auth_uuid = AVRCP_REMOTE_UUID, .device_probe = avrcp_controller_probe, .device_remove = avrcp_controller_remove, diff --git a/profiles/network/manager.c b/profiles/network/manager.c index 79a65a3d3..ca7763c6f 100644 --- a/profiles/network/manager.c +++ b/profiles/network/manager.c @@ -136,6 +136,7 @@ static struct btd_profile panu_profile = { .version = 0x0100, .local_uuid = NAP_UUID, .remote_uuid = PANU_UUID, + .auth_uuid = BNEP_SVC_UUID, .device_probe = connection_register, .device_remove = connection_unregister, .connect = connection_connect, @@ -149,6 +150,7 @@ static struct btd_profile gn_profile = { .version = 0x0100, .local_uuid = PANU_UUID, .remote_uuid = GN_UUID, + .auth_uuid = BNEP_SVC_UUID, .device_probe = connection_register, .device_remove = connection_unregister, .connect = connection_connect, @@ -162,6 +164,7 @@ static struct btd_profile nap_profile = { .version = 0x0100, .local_uuid = PANU_UUID, .remote_uuid = NAP_UUID, + .auth_uuid = BNEP_SVC_UUID, .device_probe = connection_register, .device_remove = connection_unregister, .connect = connection_connect, diff --git a/src/profile.h b/src/profile.h index 96f2b2015..649fc9776 100644 --- a/src/profile.h +++ b/src/profile.h @@ -34,6 +34,7 @@ struct btd_profile { const char *local_uuid; const char *remote_uuid; + const char *auth_uuid; bool auto_connect; bool external; -- cgit v1.2.1