FreeBSD Bugzilla – Attachment 184536 Details for
Bug 220852
[cdce] [usb] raspberry pi or anything that can emulate Ethernet gadget over usb mac id not read
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
USB RNDIS
urndis.diff (text/plain), 694 bytes, created by
Hans Petter Selasky
on 2017-07-20 08:09:33 UTC
(
hide
)
Description:
USB RNDIS
Filename:
MIME Type:
Creator:
Hans Petter Selasky
Created:
2017-07-20 08:09:33 UTC
Size:
694 bytes
patch
obsolete
>Index: sys/dev/usb/net/if_urndis.c >=================================================================== >--- sys/dev/usb/net/if_urndis.c (revision 320767) >+++ sys/dev/usb/net/if_urndis.c (working copy) >@@ -245,6 +245,7 @@ > > mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_DEF); > >+retry: > /* scan the alternate settings looking for a valid one */ > for (i = 0; i != 32; i++) { > error = usbd_set_alt_interface_index(uaa->device, >@@ -261,6 +262,10 @@ > break; > } > if ((error != 0) || (i == 32)) { >+ if (iface_index[0] != iface_index[1]) { >+ iface_index[0] = iface_index[1]; >+ goto retry; >+ } > device_printf(dev, "No valid alternate setting found\n"); > goto detach; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220852
: 184536