diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-27 08:54:35 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-27 08:54:35 +0100 |
commit | 7e090d498e11ae435d973bea44e393a6e42beb3d (patch) | |
tree | 49581658bf7424cc0114e77267bfb5a80b7996e2 /src | |
parent | a5a91a7189c48532309888a150e973fed1f12852 (diff) | |
download | connman-7e090d498e11ae435d973bea44e393a6e42beb3d.tar.gz connman-7e090d498e11ae435d973bea44e393a6e42beb3d.tar.bz2 connman-7e090d498e11ae435d973bea44e393a6e42beb3d.zip |
Add basic detection of Option HSO devices
Diffstat (limited to 'src')
-rw-r--r-- | src/detect.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/detect.c b/src/detect.c index 85fb077a..f6c66a79 100644 --- a/src/detect.c +++ b/src/detect.c @@ -135,7 +135,7 @@ static void detect_newlink(unsigned short type, int index, 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) @@ -171,6 +171,9 @@ static void detect_newlink(unsigned short type, int index, 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) { @@ -206,7 +209,7 @@ static void detect_dellink(unsigned short type, int index, { struct connman_device *device; - DBG("index %d", index); + DBG("type %d index %d", type, index); device = find_device(index); if (device == NULL) |