From 05c0e9d6d3325197d9ebaf4d4f8da1a5bfd43218 Mon Sep 17 00:00:00 2001 From: khorben Date: Fri, 5 Oct 2012 22:04:56 +0000 Subject: [PATCH] Added the device id for the Huawei EM770W 3G modem to u3g(4) Confirmed to work on a WeTab ok christos@ --- sys/dev/usb/u3g.c | 5 +++-- sys/dev/usb/usbdevs | 3 ++- sys/dev/usb/usbdevs.h | 3 ++- sys/dev/usb/usbdevs_data.h | 8 ++++++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/sys/dev/usb/u3g.c b/sys/dev/usb/u3g.c index 1c9185ad27f7..036a5a2685d5 100644 --- a/sys/dev/usb/u3g.c +++ b/sys/dev/usb/u3g.c @@ -1,4 +1,4 @@ -/* $NetBSD: u3g.c,v 1.25 2012/08/04 12:55:06 nonaka Exp $ */ +/* $NetBSD: u3g.c,v 1.26 2012/10/05 22:04:56 khorben Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -50,7 +50,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: u3g.c,v 1.25 2012/08/04 12:55:06 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: u3g.c,v 1.26 2012/10/05 22:04:56 khorben Exp $"); #include #include @@ -185,6 +185,7 @@ static const struct usb_devno u3g_devs[] = { { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750 }, { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1820 }, { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 }, + { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_EM770W }, { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765 }, { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE }, /* OEM: Merlin */ diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index f12f6aebe7db..f302e3554772 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -1,4 +1,4 @@ -$NetBSD: usbdevs,v 1.628 2012/10/03 06:57:36 mlelstv Exp $ +$NetBSD: usbdevs,v 1.629 2012/10/05 22:04:56 khorben Exp $ /* * Copyright (c) 1998-2004 The NetBSD Foundation, Inc. @@ -1673,6 +1673,7 @@ product HTC ANDROID 0x0ffe Android /* Huawei Technologies products */ product HUAWEI MOBILE 0x1001 Huawei Mobile product HUAWEI E220 0x1003 Huawei E220 +product HUAWEI EM770W 0x1404 Huawei EM770W product HUAWEI E1750 0x140c Huawei E1750 product HUAWEI E1750INIT 0x1446 Huawei E1750 USB CD product HUAWEI K3765 0x1465 Huawei K3765 diff --git a/sys/dev/usb/usbdevs.h b/sys/dev/usb/usbdevs.h index 693b0a6fbe41..54f86beb3cd0 100644 --- a/sys/dev/usb/usbdevs.h +++ b/sys/dev/usb/usbdevs.h @@ -1,4 +1,4 @@ -/* $NetBSD: usbdevs.h,v 1.620 2012/10/03 06:58:03 mlelstv Exp $ */ +/* $NetBSD: usbdevs.h,v 1.621 2012/10/05 22:04:56 khorben Exp $ */ /* * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. @@ -1680,6 +1680,7 @@ /* Huawei Technologies products */ #define USB_PRODUCT_HUAWEI_MOBILE 0x1001 /* Huawei Mobile */ #define USB_PRODUCT_HUAWEI_E220 0x1003 /* Huawei E220 */ +#define USB_PRODUCT_HUAWEI_EM770W 0x1404 /* Huawei EM770W */ #define USB_PRODUCT_HUAWEI_E1750 0x140c /* Huawei E1750 */ #define USB_PRODUCT_HUAWEI_E1750INIT 0x1446 /* Huawei E1750 USB CD */ #define USB_PRODUCT_HUAWEI_K3765 0x1465 /* Huawei K3765 */ diff --git a/sys/dev/usb/usbdevs_data.h b/sys/dev/usb/usbdevs_data.h index ee2c33ba3aa7..1e8fb5d6edd1 100644 --- a/sys/dev/usb/usbdevs_data.h +++ b/sys/dev/usb/usbdevs_data.h @@ -1,4 +1,4 @@ -/* $NetBSD: usbdevs_data.h,v 1.621 2012/10/03 06:58:03 mlelstv Exp $ */ +/* $NetBSD: usbdevs_data.h,v 1.622 2012/10/05 22:04:56 khorben Exp $ */ /* * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. @@ -5234,6 +5234,10 @@ const struct usb_product usb_products[] = { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220, "Huawei E220", }, + { + USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_EM770W, + "Huawei EM770W", + }, { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750, "Huawei E1750", @@ -9827,4 +9831,4 @@ const struct usb_product usb_products[] = { "Prestige", }, }; -const int usb_nproducts = 1928; +const int usb_nproducts = 1929;