svn commit: r184659 - head/sys/dev/usb2/wlan
Rink Springer
rink at FreeBSD.org
Tue Nov 4 12:57:40 PST 2008
Author: rink
Date: Tue Nov 4 20:57:39 2008
New Revision: 184659
URL: http://svn.freebsd.org/changeset/base/184659
Log:
Even though the previous commit was functionally equivalent with the code it replaced, it was wrong: le16toh should have been used.
Note that these changes will not make the driver work on powerpc, but it should fix at least the i386/amd64 cases.
Obtained from: //depot/projects/usb/src/sys/dev/usb2/wlan/if_zyd2.c#20
Noticed by: jeli, ed
Modified:
head/sys/dev/usb2/wlan/if_zyd2.c
Modified: head/sys/dev/usb2/wlan/if_zyd2.c
==============================================================================
--- head/sys/dev/usb2/wlan/if_zyd2.c Tue Nov 4 19:28:19 2008 (r184658)
+++ head/sys/dev/usb2/wlan/if_zyd2.c Tue Nov 4 20:57:39 2008 (r184659)
@@ -392,7 +392,7 @@ zyd_intr_read_callback(struct usb2_xfer
usb2_copy_out(xfer->frbuffers, 0,
&sc->sc_intr_ibuf, actlen);
- switch (htole16(cmd->code)) {
+ switch (le16toh(cmd->code)) {
case ZYD_NOTIF_RETRYSTATUS:
goto handle_notif_retrystatus;
case ZYD_NOTIF_IORD:
More information about the svn-src-all
mailing list