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
This commit is contained in:
parent
9fbaa8e74d
commit
203b82c842
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user