summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Dalleau <frederic.dalleau@collabora.co.uk>2016-09-29 09:52:57 +0200
committerDenis Kenzior <denkenz@gmail.com>2016-09-29 10:58:47 -0500
commit1978934740c6e17457b9bfda830b8b82cf1f168d (patch)
treef19e9a107fbf82418460470117242c186d153b44
parent80a71f32cd2fd0f780cf4b76a54140aa4e1084c4 (diff)
downloadofono-1978934740c6e17457b9bfda830b8b82cf1f168d.tar.gz
udevng: Detect huawei E3372 pcui
The huawei E3372 exposes two USB tty at /dev/ttyUSB0 and /dev/ttyUSB1 /dev/ttyUSB1 is properly detected as modem. /dev/ttyUSB0 is the pcui. lsusb shows 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
-rw-r--r--plugins/udevng.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/udevng.c b/plugins/udevng.c
index 607e3815..1a85246b 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -330,6 +330,7 @@ static gboolean setup_huawei(struct modem_info *modem)
} else if (g_strcmp0(info->label, "pcui") == 0 ||
g_strcmp0(info->interface, "255/1/2") == 0 ||
g_strcmp0(info->interface, "255/2/2") == 0 ||
+ g_strcmp0(info->interface, "255/2/18") == 0 ||
g_strcmp0(info->interface, "255/1/50") == 0) {
pcui = info->devnode;
} else if (g_strcmp0(info->label, "diag") == 0 ||