Add detection support for Novatel devices
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Jan 2009 21:33:21 +0000 (22:33 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Jan 2009 21:33:21 +0000 (22:33 +0100)
src/connman.rules
src/udev.c

index 3cf20e1..8a935ce 100644 (file)
@@ -4,5 +4,8 @@ SUBSYSTEM=="net", DRIVERS=="hso", ENV{CONNMAN_TYPE}="hso"
 SUBSYSTEM=="tty", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1003", \
                                                ENV{CONNMAN_TYPE}="huawei"
 
+SUBSYSTEM=="tty", ATTRS{idVendor}=="1410", ATTRS{idProduct}=="4400", \
+                                               ENV{CONNMAN_TYPE}="novatel"
+
 ENV{CONNMAN_TYPE}=="?*", ENV{CONNMAN_INTERFACE}="$kernel", \
                                RUN+="socket:@/org/moblin/connman/udev"
index 58510aa..623962a 100644 (file)
@@ -105,6 +105,8 @@ static void add_device(struct udev_device *udev_device)
 
        if (g_str_equal(type, "huawei") == TRUE)
                devtype = CONNMAN_DEVICE_TYPE_HUAWEI;
+       else if (g_str_equal(type, "novatel") == TRUE)
+               devtype = CONNMAN_DEVICE_TYPE_NOVATEL;
        else
                return;