Assume that all Apple products using interface class 255, subclass 253

and protocol 1 are USB ethernet adapters. This avoids keeping and updating
the product list every now and then. This patch will add support for the
USB ethernet interface found in the IPAD.

MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2013-07-26 09:58:56 +00:00
parent 20dd2f38dc
commit 06fc83e85b

View File

@ -149,6 +149,7 @@ static const struct usb_ether_methods ipheth_ue_methods = {
USB_IFACE_PROTOCOL(pt)
static const STRUCT_USB_HOST_ID ipheth_devs[] = {
#if 0
{IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE,
IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
IPHETH_USBINTF_PROTO)},
@ -167,6 +168,13 @@ static const STRUCT_USB_HOST_ID ipheth_devs[] = {
{IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_5,
IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
IPHETH_USBINTF_PROTO)},
#else
/* product agnostic interface match */
{USB_VENDOR(USB_VENDOR_APPLE),
USB_IFACE_CLASS(IPHETH_USBINTF_CLASS),
USB_IFACE_SUBCLASS(IPHETH_USBINTF_SUBCLASS),
USB_IFACE_PROTOCOL(IPHETH_USBINTF_PROTO)},
#endif
};
static int