summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb2/wlan/if_zyd2.c2
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:
OpenPOWER on IntegriCloud