CONNMAN_DEVICE_TYPE_MODEM = CONNMAN_ELEMENT_SUBTYPE_MODEM,
CONNMAN_DEVICE_TYPE_BLUETOOTH = CONNMAN_ELEMENT_SUBTYPE_BLUETOOTH,
CONNMAN_DEVICE_TYPE_VENDOR = 42,
+ CONNMAN_DEVICE_TYPE_HSO,
};
enum connman_device_mode {
struct connman_device *device;
gchar *name, *devname;
- DBG("index %d", index);
+ DBG("type %d index %d", type, index);
device = find_device(index);
if (device != NULL)
devtype = CONNMAN_DEVICE_TYPE_ETHERNET;
close(sk);
+ } else if (type == ARPHRD_NONE) {
+ if (g_str_has_prefix(devname, "hso") == TRUE)
+ devtype = CONNMAN_DEVICE_TYPE_HSO;
}
if (devtype == CONNMAN_DEVICE_TYPE_UNKNOWN) {
{
struct connman_device *device;
- DBG("index %d", index);
+ DBG("type %d index %d", type, index);
device = find_device(index);
if (device == NULL)