summaryrefslogtreecommitdiff
path: root/src/detect.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-03-11 21:10:13 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-03-11 21:10:13 +0100
commitdd5db19baeec6c4d586b23cd590cce53bfea044d (patch)
tree8139113fabbd28da5cfd6298c88eb3fa46354b84 /src/detect.c
parent64e21423a7872663e23bb369af56c6d0776b3658 (diff)
downloadconnman-dd5db19baeec6c4d586b23cd590cce53bfea044d.tar.gz
connman-dd5db19baeec6c4d586b23cd590cce53bfea044d.tar.bz2
connman-dd5db19baeec6c4d586b23cd590cce53bfea044d.zip
Add type for GPS based devices (just for power control)
Diffstat (limited to 'src/detect.c')
-rw-r--r--src/detect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/detect.c b/src/detect.c
index 01e67b1f..d26dc29f 100644
--- a/src/detect.c
+++ b/src/detect.c
@@ -189,6 +189,7 @@ static void detect_newlink(unsigned short type, int index,
name = index2ident(index, "dev_");
break;
case CONNMAN_DEVICE_TYPE_BLUETOOTH:
+ case CONNMAN_DEVICE_TYPE_GPS:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
@@ -211,6 +212,7 @@ static void detect_newlink(unsigned short type, int index,
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
case CONNMAN_DEVICE_TYPE_NOVATEL:
+ case CONNMAN_DEVICE_TYPE_GPS:
mode = CONNMAN_DEVICE_MODE_UNKNOWN;
break;
case CONNMAN_DEVICE_TYPE_ETHERNET: