Hi Mikel, On 10/20/2011 11:38 AM, Mikel Astiz wrote: > --- > plugins/hfp_hf.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/plugins/hfp_hf.c b/plugins/hfp_hf.c > index ba06434..bceae55 100644 > --- a/plugins/hfp_hf.c > +++ b/plugins/hfp_hf.c > @@ -38,12 +38,14 @@ > #include > #include > #include > +#include > #include > #include > #include > #include > > #include > +#include > > #include "bluetooth.h" > > @@ -207,6 +209,7 @@ static int hfp_hf_probe(const char *device, const char *dev_addr, > struct ofono_modem *modem; > struct hfp_data *data; > char buf[256]; > + struct hfp_devinfo_params devinfo_params; > > /* We already have this device in our hash, ignore */ > if (g_hash_table_lookup(modem_hash, device) != NULL) > @@ -232,6 +235,10 @@ static int hfp_hf_probe(const char *device, const char *dev_addr, > > ofono_modem_set_data(modem, data); > ofono_modem_set_name(modem, alias); > + > + devinfo_params.device_address = dev_addr; > + ofono_devinfo_create(modem, 0, "hfpmodem", &devinfo_params); > + This looks way too complicated, why don't you just pass the const char *dev_addr to ofono_devinfo_create? > ofono_modem_register(modem); > > g_hash_table_insert(modem_hash, g_strdup(device), modem); Regards, -Denis