[PATCH 1/1] usbnet: cdc_ether.c: use Samsung Galaxy Grand Prime VE as an USB modem

From: J. Mayer
Date: Mon May 09 2016 - 05:37:49 EST


From: Jocelyn Mayer <l_indien@xxxxxxxx>

Make cdc_ether able to use Samsung Galaxy Grand Prime VE (aka SM-G531F)
smartphone as an USB modem

Signed-off-by: Jocelyn Mayer <l_indien@xxxxxxxx>

Please explicitly keep me on CC as I did not register.

---

diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 7cba2c3..6186693 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -641,6 +641,12 @@ static const struct usb_device_idÂÂproducts[] = {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂUSB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
ÂÂÂÂÂÂÂÂ.driver_info = 0,
Â},
+/* Samsung Galaxy Grand Prime VE */
+{
+ÂÂÂÂÂÂÂUSB_DEVICE_AND_INTERFACE_INFO(SAMSUNG_VENDOR_ID, 0x6863,
USB_CLASS_COMM,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂUSB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
+ÂÂÂÂÂÂÂ.driver_info = 0,
+},
Â
Â/* Lenovo Thinkpad USB 3.0 Ethernet Adapters (based on Realtek
RTL8153) */
Â{