---
 plugins/hfp_hf_bluez5.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index 2b9275b..d975a42 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -636,10 +636,19 @@ static const GDBusMethodTable profile_methods[] = {
 
 static void connect_handler(DBusConnection *conn, void *user_data)
 {
+       struct bt_profile_info optional;
+
+       memset(&optional, 0, sizeof(optional));
+
+       optional.features = HFP_SDP_HF_FEATURE_3WAY |
+                               HFP_SDP_HF_FEATURE_CLIP |
+                               HFP_SDP_HF_FEATURE_REMOTE_VOLUME_CONTROL |
+                               HFP_SDP_HF_FEATURE_WIDEBAND_SPEECH;
+
        DBG("Registering External Profile handler ...");
 
-       bt_register_profile(conn, HFP_HS_UUID, HFP_VERSION_1_6, "hfp_hf",
-                                               HFP_EXT_PROFILE_PATH);
+       bt_register_profile_full(conn, HFP_HS_UUID, HFP_VERSION_1_6, "hfp_hf",
+                                       HFP_EXT_PROFILE_PATH, &optional);
 }
 
 static gboolean has_hfp_ag_uuid(DBusMessageIter *array)
-- 
1.8.2.1

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to