This patch removes the hard-coded Handsfree Profile version to register
the external BlueZ profile.
---
 plugins/hfp_hf_bluez5.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index ea2c848..c1f3ba2 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -484,8 +484,8 @@ static void connect_handler(DBusConnection *conn, void 
*user_data)
 {
        DBG("Registering External Profile handler ...");
 
-       bt_register_profile(conn, HFP_HS_UUID, HFP_VERSION_1_5, "hfp_hf",
-                                               HFP_EXT_PROFILE_PATH);
+       bt_register_profile(conn, HFP_HS_UUID, ofono_handsfree_get_version(),
+                                       "hfp_hf", HFP_EXT_PROFILE_PATH);
 }
 
 static gboolean has_hfp_ag_uuid(DBusMessageIter *array)
-- 
1.7.11.7

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

Reply via email to