From: Alok Barsode <alok.barsode@xxxxxxxxxx> --- src/main.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index d12edc5..93dbf71 100644 --- a/src/main.c +++ b/src/main.c @@ -531,14 +531,11 @@ static void init_all_devices(int ctl) for (i = 0; i < dl->dev_num; i++, dr++) { gboolean devup; - info("HCI dev %d registered", dr->dev_id); - device_devreg_setup(dr->dev_id); + device_event(HCI_DEV_REG, dr->dev_id); devup = hci_test_bit(HCI_UP, &dr->dev_opt); - if (devup) { - info("HCI dev %d already up", dr->dev_id); - device_devup_setup(dr->dev_id); - } + if (devup) + device_event(HCI_DEV_UP, dr->dev_id); } g_free(dl); -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html