diff options
-rw-r--r-- | sys/dev/usb2/wlan/if_zyd2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb2/wlan/if_zyd2.c b/sys/dev/usb2/wlan/if_zyd2.c index 5e72593..48da310 100644 --- a/sys/dev/usb2/wlan/if_zyd2.c +++ b/sys/dev/usb2/wlan/if_zyd2.c @@ -392,10 +392,10 @@ zyd_intr_read_callback(struct usb2_xfer *xfer) usb2_copy_out(xfer->frbuffers, 0, &sc->sc_intr_ibuf, actlen); - switch (cmd->code) { - case htole16(ZYD_NOTIF_RETRYSTATUS): + switch (htole16(cmd->code)) { + case ZYD_NOTIF_RETRYSTATUS: goto handle_notif_retrystatus; - case htole16(ZYD_NOTIF_IORD): + case ZYD_NOTIF_IORD: goto handle_notif_iord; default: DPRINTFN(2, "unknown indication: 0x%04x\n", |