diff options
author | rink <rink@FreeBSD.org> | 2008-11-04 20:57:39 +0000 |
---|---|---|
committer | rink <rink@FreeBSD.org> | 2008-11-04 20:57:39 +0000 |
commit | 4b489f9e4949c5f6f67754cdc0df93a4370d2437 (patch) | |
tree | dbcdcd62b3d32b8be6c3309761c32db81e6a1c87 /sys/dev | |
parent | 482c2c52e81af97d4127523efc24ed5a4ae0fc7e (diff) | |
download | FreeBSD-src-4b489f9e4949c5f6f67754cdc0df93a4370d2437.zip FreeBSD-src-4b489f9e4949c5f6f67754cdc0df93a4370d2437.tar.gz |
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
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb2/wlan/if_zyd2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb2/wlan/if_zyd2.c b/sys/dev/usb2/wlan/if_zyd2.c index 48da310..89ebc59 100644 --- a/sys/dev/usb2/wlan/if_zyd2.c +++ b/sys/dev/usb2/wlan/if_zyd2.c @@ -392,7 +392,7 @@ zyd_intr_read_callback(struct usb2_xfer *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: |