diff options
author | 2009-05-11 08:07:42 +0000 | |
---|---|---|
committer | 2009-05-11 08:07:42 +0000 | |
commit | 9e629d85ad711675bbfabc6404023d97ea873246 (patch) | |
tree | d6175d322edc8cff0f95c3480668755cec6ada65 | |
parent | On VT6105M, use hardware IP, TCP and UDP checksums in and out. Tested on (diff) | |
download | wireguard-openbsd-9e629d85ad711675bbfabc6404023d97ea873246.tar.xz wireguard-openbsd-9e629d85ad711675bbfabc6404023d97ea873246.zip |
some huawei E220 OEM devices has broken strings in the device descriptor.
to suppress broken output in dmesg, add { UQ_NO_STRINGS } flag to the device.
-rw-r--r-- | sys/dev/usb/usb_quirks.c | 5 | ||||
-rw-r--r-- | sys/dev/usb/usbdevs | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/usb/usb_quirks.c b/sys/dev/usb/usb_quirks.c index 6489265444a..f50a8b88514 100644 --- a/sys/dev/usb/usb_quirks.c +++ b/sys/dev/usb/usb_quirks.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb_quirks.c,v 1.51 2009/04/22 18:56:56 deraadt Exp $ */ +/* $OpenBSD: usb_quirks.c,v 1.52 2009/05/11 08:07:42 yuo Exp $ */ /* $NetBSD: usb_quirks.c,v 1.45 2003/05/10 17:47:14 hamajima Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_quirks.c,v 1.30 2003/01/02 04:15:55 imp Exp $ */ @@ -157,6 +157,9 @@ const struct usbd_quirk_entry { { USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_SISPM, ANY, { UQ_BAD_HID }}, { USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_SISPM_FLASH, ANY, { UQ_BAD_HID }}, + /* HUAWEI devices */ + { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220, ANY, { UQ_NO_STRINGS }}, + { 0, 0, 0, { 0 } } }; diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index 36466e40153..5b737861042 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -1,4 +1,4 @@ -$OpenBSD: usbdevs,v 1.426 2009/04/22 18:56:33 deraadt Exp $ +$OpenBSD: usbdevs,v 1.427 2009/05/11 08:07:42 yuo Exp $ /* $NetBSD: usbdevs,v 1.322 2003/05/10 17:47:14 hamajima Exp $ */ /* @@ -1647,7 +1647,7 @@ product HTC SMARTPHONE 0x0a51 SmartPhone /* HUAWEI products */ product HUAWEI E618 0x1001 HUAWEI Mobile E618 -product HUAWEI E220 0x1003 HUAWEI Mobile E220 +product HUAWEI E220 0x1003 HUAWEI Mobile Modem product HUAWEI E510 0x1411 HUAWEI Mobile E510 /* HUMAX products */ |