diff options
author | hselasky <hselasky@FreeBSD.org> | 2013-07-26 09:58:56 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2013-07-26 09:58:56 +0000 |
commit | d65e0ea48ed8682c6a77f52dd4aadb283a17cf63 (patch) | |
tree | 98ba4f14c4d8f87c2ef387129d3a2173bf079433 | |
parent | d47da97be70ed73cd188e0039c5ccdeb27f3bb23 (diff) | |
download | FreeBSD-src-d65e0ea48ed8682c6a77f52dd4aadb283a17cf63.zip FreeBSD-src-d65e0ea48ed8682c6a77f52dd4aadb283a17cf63.tar.gz |
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
-rw-r--r-- | sys/dev/usb/net/if_ipheth.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/usb/net/if_ipheth.c b/sys/dev/usb/net/if_ipheth.c index 64f8d54..4460e00 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 |