This patch adds the modem reference as user data when the Handsfree
Audio Card is created, allowing to access the service level connection
in the connect callback.
---
 plugins/hfp_hf_bluez5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index 810107f..1d26a28 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -495,7 +495,7 @@ static DBusMessage *profile_new_connection(DBusConnection 
*conn,
 
        hfp = ofono_modem_get_data(modem);
        hfp->msg = dbus_message_ref(msg);
-       hfp->card = ofono_handsfree_card_create(remote, local, version);
+       hfp->card = ofono_handsfree_card_create(remote, local, version, modem);
 
        return NULL;
 
-- 
1.7.11.7

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

Reply via email to