Date: Tue, 31 Aug 2021 06:44:53 GMT From: Wojciech Macek <wma@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 28d549826844 - main - umodem: Add Huawei E3372h-320 device id Message-ID: <202108310644.17V6irSt077373@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by wma: URL: https://cgit.FreeBSD.org/src/commit/?id=28d549826844b89224f0335b6318eb277031ea78 commit 28d549826844b89224f0335b6318eb277031ea78 Author: Kornel Duleba <mindal@semihalf.com> AuthorDate: 2021-08-31 06:44:36 +0000 Commit: Wojciech Macek <wma@FreeBSD.org> CommitDate: 2021-08-31 06:44:36 +0000 umodem: Add Huawei E3372h-320 device id After switching the dongle to the Huawei alternate mode(modem mode) with usb_modeswitch the serial interfaces had all of their ids set to 0xFF. After modifying umodem to work with that it attached successfully and I've managed to configure device with standard AT commands to get internet connection. --- sys/dev/usb/serial/umodem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/usb/serial/umodem.c b/sys/dev/usb/serial/umodem.c index 573d74cdb526..4fa108e962f2 100644 --- a/sys/dev/usb/serial/umodem.c +++ b/sys/dev/usb/serial/umodem.c @@ -146,6 +146,8 @@ static const STRUCT_USB_HOST_ID umodem_host_devs[] = { {USB_VENDOR(USB_VENDOR_HUAWEI),USB_IFACE_CLASS(UICLASS_CDC), USB_IFACE_SUBCLASS(UISUBCLASS_ABSTRACT_CONTROL_MODEL), USB_IFACE_PROTOCOL(0xFF)}, + {USB_VENDOR(USB_VENDOR_HUAWEI), USB_IFACE_CLASS(0xFF), + USB_IFACE_SUBCLASS(0xF), USB_IFACE_PROTOCOL(0xFF)}, /* Kyocera AH-K3001V */ {USB_VPI(USB_VENDOR_KYOCERA, USB_PRODUCT_KYOCERA_AHK3001V, 1)}, {USB_VPI(USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC5720, 1)},
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108310644.17V6irSt077373>