Date: Wed, 29 May 2013 14:15:52 GMT From: Christopher Sean Hilton <chris@vindaloo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: usb/179078: if_ipheth doesn't support iPhone 4S Message-ID: <201305291415.r4TEFqIm075705@oldred.FreeBSD.org> Resent-Message-ID: <201305291420.r4TEK0I8043333@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 179078 >Category: usb >Synopsis: if_ipheth doesn't support iPhone 4S >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed May 29 14:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Christopher Sean Hilton >Release: 8.4 PRERELEASE >Organization: >Environment: FreeBSD dagobah.vindaloo.com 8.4-PRERELEASE FreeBSD 8.4-PRERELEASE #0 r249843: Thu Apr 25 10:31:17 EDT 2013 root@dagobah:/usr/obj/usr/src/sys/GENERIC i386 >Description: The if_ipheth driver doesn't support the iPhone 4S due to a missing usb product id. The supplied patch adds support for the 4S I've tested this by running FreeBSD tethered to my iPhone for about an hour or so. >How-To-Repeat: Configure if_ipheth and attach an iPhone 4S. Notice that you get a ugen device but if_ipheth does not attach. >Fix: Add the iPhone 4S (product Id 0x12a0) to list of registered devices that if_ipheth handles. Patch attached with submission follows: --- usr/src/sys/dev/usb/net/if_ipheth.c.orig 2013-04-15 00:00:00.000000000 -0400 +++ usr/src/sys/dev/usb/net/if_ipheth.c 2013-05-28 19:57:28.000000000 -0400 @@ -161,6 +161,9 @@ {IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_4, IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS, IPHETH_USBINTF_PROTO)}, + {IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_4S, + IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS, + IPHETH_USBINTF_PROTO)}, {IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_5, IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS, IPHETH_USBINTF_PROTO)}, --- usr/src/sys/dev/usb/usbdevs.orig 2013-04-15 00:00:00.000000000 -0400 +++ usr/src/sys/dev/usb/usbdevs 2013-05-28 19:54:45.000000000 -0400 @@ -1081,6 +1081,7 @@ product APPLE IPHONE_3G 0x1292 iPhone 3G product APPLE IPHONE_3GS 0x1294 iPhone 3GS product APPLE IPHONE_4 0x1297 iPhone 4 +product APPLE IPHONE_4S 0x12a0 iPhone 4S product APPLE IPHONE_5 0x12a8 iPhone 5 product APPLE IPAD 0x129a iPad product APPLE ETHERNET 0x1402 Ethernet A1277 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305291415.r4TEFqIm075705>