diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-02 23:53:25 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-02 23:53:25 +0100 |
commit | df8540c0cd1e8cf3fe1a1de8f0594ecca0eac41d (patch) | |
tree | 069b101105d0399425fe3adcf91a5eb86ce2488c /src | |
parent | e332ca14596915316a66e671fd2e0fd7e4e0fbca (diff) | |
download | connman-df8540c0cd1e8cf3fe1a1de8f0594ecca0eac41d.tar.gz connman-df8540c0cd1e8cf3fe1a1de8f0594ecca0eac41d.tar.bz2 connman-df8540c0cd1e8cf3fe1a1de8f0594ecca0eac41d.zip |
Add detection support for Nozomi based hardware
Diffstat (limited to 'src')
-rw-r--r-- | src/connman.rules | 2 | ||||
-rw-r--r-- | src/udev.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/connman.rules b/src/connman.rules index 8a935cef..84b3b4b6 100644 --- a/src/connman.rules +++ b/src/connman.rules @@ -1,6 +1,8 @@ SUBSYSTEM=="net", DRIVERS=="hso", ENV{CONNMAN_TYPE}="hso" +SUBSYSTEM=="tty", KERNEL=="noz[0-9]*", ENV{CONNMAN_TYPE}="nozomi" + SUBSYSTEM=="tty", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1003", \ ENV{CONNMAN_TYPE}="huawei" @@ -100,10 +100,13 @@ static void add_device(struct udev_device *udev_device) if (type == NULL || interface == NULL) return; - if (g_str_equal(interface, "ttyUSB0") == FALSE) + if (g_str_equal(interface, "ttyUSB0") == FALSE && + g_str_equal(interface, "noz0") == FALSE) return; - if (g_str_equal(type, "huawei") == TRUE) + if (g_str_equal(type, "nozomi") == TRUE) + devtype = CONNMAN_DEVICE_TYPE_NOZOMI; + else 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; |