From 06fc83e85b5eec75b46b3abaddd9e90fc5388c1c Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Fri, 26 Jul 2013 09:58:56 +0000 Subject: [PATCH] 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 --- sys/dev/usb/net/if_ipheth.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/dev/usb/net/if_ipheth.c b/sys/dev/usb/net/if_ipheth.c index 64f8d5486551..4460e00f4ea3 100644 --- a/sys/dev/usb/net/if_ipheth.c +++ b/sys/dev/usb/net/if_ipheth.c @@ -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