]> git.baikalelectronics.ru Git - kernel.git/commitdiff
cdc_ether: flag the Huawei ME906/ME909 as WWAN
authorAleksander Morgado <aleksander@aleksander.es>
Mon, 23 Oct 2017 15:16:41 +0000 (17:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 09:32:54 +0000 (18:32 +0900)
The Huawei ME906 (12d1:15c1) comes with a standard ECM interface that
requires management via AT commands sent over one of the control TTYs
(e.g. connected with AT^NDISDUP).

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ether.c

index 5529bd136624c0e36e4b593f846dc3e8e20f3e91..3e7a3ac3a36236054b897bc7beda770a765a95e5 100644 (file)
@@ -871,6 +871,12 @@ static const struct usb_device_id  products[] = {
        USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, 0x81ba, USB_CLASS_COMM,
                        USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
        .driver_info = (kernel_ulong_t)&wwan_info,
+}, {
+       /* Huawei ME906 and ME909 */
+       USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0x15c1, USB_CLASS_COMM,
+                                     USB_CDC_SUBCLASS_ETHERNET,
+                                     USB_CDC_PROTO_NONE),
+       .driver_info = (unsigned long)&wwan_info,
 }, {
        /* ZTE modules */
        USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, USB_CLASS_COMM,