Hello -

Inline below is a patch for the Huawei E181 -
this is/was marketed in the US as the T-Mobile 'Webconnect 3G'
as well as I'm sure as other things in other places.
The '181' was deduced from on-device labeling.

Patch generated from current as of about a week ago -
it's been running ever since (and being used to send this mail).

If someone with appropriate bit could commit that would be swell.

Cheers,
- Chris

Index: umsm.c
===================================================================
RCS file: /data/obsd/cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.77
diff -u -p -r1.77 umsm.c
--- umsm.c      8 Jul 2011 23:10:31 -0000       1.77
+++ umsm.c      10 Jul 2011 09:43:36 -0000
@@ -132,6 +132,7 @@ static const struct umsm_type umsm_devs[

        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E161 }, DEV_UMASS5},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E180 }, DEV_HUAWEI},
+       {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E181 }, DEV_HUAWEI},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E182 }, DEV_UMASS5},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E1820 }, DEV_UMASS5},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E220 }, DEV_HUAWEI},
Index: usbdevs
===================================================================
RCS file: /data/obsd/cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.548
diff -u -p -r1.548 usbdevs
--- usbdevs     8 Jul 2011 23:09:06 -0000       1.548
+++ usbdevs     10 Jul 2011 11:18:19 -0000
@@ -1963,6 +1963,7 @@ product HUAWEI E220               0x1003  HUAWEI Mobil
 product HUAWEI Mobile          0x1008  HUAWEI Mobile Modem
 product HUAWEI E180            0x140c  HUAWEI Mobile E180
 product HUAWEI E510            0x1411  HUAWEI Mobile E510
+product HUAWEI E181            0x1414  HUAWEI Mobile E181
 product HUAWEI E1752           0x1417  HUAWEI Mobile Modem
 product HUAWEI E182            0x1429  HUAWEI Mobile Modem
 product HUAWEI E161            0x1446  HUAWEI Mobile Modem
Index: usbdevs.h
===================================================================
RCS file: /data/obsd/cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.558
diff -u -p -r1.558 usbdevs.h
--- usbdevs.h   8 Jul 2011 23:09:28 -0000       1.558
+++ usbdevs.h   10 Jul 2011 11:18:22 -0000
@@ -4,7 +4,7 @@
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *     OpenBSD: usbdevs,v 1.548 2011/07/08 23:09:06 yuo Exp
+ *     OpenBSD: usbdevs,v 1.547 2011/07/08 23:02:21 yuo Exp
  */
 /* $NetBSD: usbdevs,v 1.322 2003/05/10 17:47:14 hamajima Exp $ */

@@ -1970,6 +1970,7 @@
 #define        USB_PRODUCT_HUAWEI_Mobile       0x1008          /* HUAWEI 
Mobile Modem */
 #define        USB_PRODUCT_HUAWEI_E180 0x140c          /* HUAWEI Mobile E180 */
 #define        USB_PRODUCT_HUAWEI_E510 0x1411          /* HUAWEI Mobile E510 */
+#define        USB_PRODUCT_HUAWEI_E181 0x1414          /* HUAWEI Mobile E181 */
 #define        USB_PRODUCT_HUAWEI_E1752        0x1417          /* HUAWEI 
Mobile Modem */
 #define        USB_PRODUCT_HUAWEI_E182 0x1429          /* HUAWEI Mobile Modem 
*/
 #define        USB_PRODUCT_HUAWEI_E161 0x1446          /* HUAWEI Mobile Modem 
*/
Index: usbdevs_data.h
===================================================================
RCS file: /data/obsd/cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.552
diff -u -p -r1.552 usbdevs_data.h
--- usbdevs_data.h      8 Jul 2011 23:09:28 -0000       1.552
+++ usbdevs_data.h      10 Jul 2011 11:18:24 -0000
@@ -4,7 +4,7 @@
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *     OpenBSD: usbdevs,v 1.548 2011/07/08 23:09:06 yuo Exp
+ *     OpenBSD: usbdevs,v 1.547 2011/07/08 23:02:21 yuo Exp
  */
 /* $NetBSD: usbdevs,v 1.322 2003/05/10 17:47:14 hamajima Exp $ */

@@ -4010,6 +4010,10 @@ const struct usb_known_product usb_known
            "HUAWEI Mobile E510",
        },
        {
+           USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E181,
+           "HUAWEI Mobile E181",
+       },
+       {
            USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1752,
            "HUAWEI Mobile Modem",
        },

Reply via email to