Hi,

I don't know why the device of CONNMAN_DEVICE_TYPE_BLUETOOTH hasn't call
the function connman_device_register.
Now I want to fix a issue, the function detect_newlink has some relevance
to the solution of the issue(https://bugs.tizen.org/jira/browse/TIVI-211).
Please help me.

-------------------------------------------------------------------------------------------------
static void detect_newlink(unsigned short type, int index,
                    unsigned flags, unsigned change)
{
    struct connman_device *device;
    enum connman_device_type devtype;

    DBG("type %d index %d", type, index);

    devtype = __connman_rtnl_get_device_type(index);

    switch (devtype) {
    case CONNMAN_DEVICE_TYPE_UNKNOWN:
    case CONNMAN_DEVICE_TYPE_VENDOR:
    case CONNMAN_DEVICE_TYPE_WIMAX:
    case CONNMAN_DEVICE_TYPE_BLUETOOTH:
    case CONNMAN_DEVICE_TYPE_CELLULAR:
    case CONNMAN_DEVICE_TYPE_GPS:
        return;
    case CONNMAN_DEVICE_TYPE_ETHERNET:
    case CONNMAN_DEVICE_TYPE_WIFI:
    case CONNMAN_DEVICE_TYPE_GADGET:
        break;
    }

    device = find_device(index);
    if (device != NULL)
        return;

    device = connman_inet_create_device(index);
    if (device == NULL)
        return;

    if (connman_device_register(device) < 0) {
        connman_device_unref(device);
        return;
    }

    device_list = g_slist_append(device_list, device);
}
--------------------------------------------------------------------------------------------

Best Regards,
Chengyi Zhao
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to