diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2021-05-18 14:23:04 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2021-05-18 14:23:04 +0000 |
commit | 3a297ed5fb7f66101ea7061eb6b6a85126a409cf (patch) | |
tree | bf7ed2a99baec935adcaf821404ccab340e10e5a /sys/dev/usb | |
parent | e62b761dbb0c6a32b43e73d62bfa097b85089e6b (diff) |
Add support for Quectel EC25.
To issue an AT command (AT+QCFG="usbnet",2) to change to MBIM mode.
Tested by Shawn Chiou on rpi4; "of course" deraadt@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_umb.c | 9 | ||||
-rw-r--r-- | sys/dev/usb/umsm.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/usbdevs | 6 |
3 files changed, 16 insertions, 3 deletions
diff --git a/sys/dev/usb/if_umb.c b/sys/dev/usb/if_umb.c index a560e5f2972..9c585cf61af 100644 --- a/sys/dev/usb/if_umb.c +++ b/sys/dev/usb/if_umb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_umb.c,v 1.44 2021/04/22 14:06:59 patrick Exp $ */ +/* $OpenBSD: if_umb.c,v 1.45 2021/05/18 14:23:03 kevlo Exp $ */ /* * Copyright (c) 2016 genua mbH @@ -238,6 +238,13 @@ const struct umb_quirk umb_quirks[] = { UMATCH_VENDOR_PRODUCT }, + { { USB_VENDOR_QUECTEL, USB_PRODUCT_QUECTEL_EC25 }, + 0, + 1, + UMATCH_VENDOR_PRODUCT + }, + + { { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_ME906S }, UMBFLG_NDP_AT_END, 3, diff --git a/sys/dev/usb/umsm.c b/sys/dev/usb/umsm.c index a631f83485c..3c613bdafcb 100644 --- a/sys/dev/usb/umsm.c +++ b/sys/dev/usb/umsm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umsm.c,v 1.118 2020/07/31 10:49:33 mglocker Exp $ */ +/* $OpenBSD: umsm.c,v 1.119 2021/05/18 14:23:03 kevlo Exp $ */ /* * Copyright (c) 2008 Yojiro UO <yuo@nui.org> @@ -173,6 +173,8 @@ static const struct umsm_type umsm_devs[] = { {{ USB_VENDOR_QUANTA2, USB_PRODUCT_QUANTA2_UMASS }, DEV_UMASS4}, {{ USB_VENDOR_QUANTA2, USB_PRODUCT_QUANTA2_Q101 }, 0}, + {{ USB_VENDOR_QUECTEL, USB_PRODUCT_QUECTEL_EC25 }, 0}, + {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_AC2746 }, 0}, {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER }, DEV_UMASS4}, {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER2 }, DEV_UMASS6}, diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index 85cdd98f405..be2674988fb 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -1,4 +1,4 @@ -$OpenBSD: usbdevs,v 1.739 2021/04/25 15:58:01 stsp Exp $ +$OpenBSD: usbdevs,v 1.740 2021/05/18 14:23:03 kevlo Exp $ /* $NetBSD: usbdevs,v 1.322 2003/05/10 17:47:14 hamajima Exp $ */ /* @@ -644,6 +644,7 @@ vendor THINGM 0x27b8 ThingM vendor ASUSTEK 0x2821 ASUSTeK Computer vendor PIONEERDJ 0x2b73 Pioneer DJ vendor PLANEX 0x2c02 Planex Communications +vendor QUECTEL 0x2c7c Quectel vendor CLUB3D 0x2d1c Club 3D vendor CLEVO 0x30da CLEVO vendor DYNABOOK 0x30f3 Dynabook @@ -3680,6 +3681,9 @@ product QUANTA RT3070 0x0304 RT3070 product QUANTA2 UMASS 0x1000 Quanta USB MSM (umass mode) product QUANTA2 Q101 0xea02 Quanta Q101 HSDPA USB modem +/* Quectel products */ +product QUECTEL EC25 0x0125 EC25 LTE + /* Quickshot products */ product QUICKSHOT STRIKEPAD 0x6238 USB StrikePad |