Modem object is created when the Device Proxy is added, and it is paired. Another path is when the Device "Paired" property changes to True. --- plugins/hfp_hf_bluez5.c | 4 ---- 1 file changed, 4 deletions(-)
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c index 2f4a89e..543bf0f 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -166,10 +166,6 @@ static struct ofono_modem *modem_register(const char *device, struct ofono_modem *modem; char *path; - modem = g_hash_table_lookup(modem_hash, device); - if (modem != NULL) - return modem; - path = g_strconcat("hfp", device, NULL); modem = ofono_modem_create(path, "hfp"); -- 1.7.11.7 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono