Date: Tue, 4 Nov 2008 20:57:40 +0000 (UTC) From: Rink Springer <rink@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184659 - head/sys/dev/usb2/wlan Message-ID: <200811042057.mA4KvenY007508@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811042057.mA4KvenY007508>