From c70294dc3aec6daa9f6cc21a1909ecc0188fb996 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Thu, 10 Dec 2015 07:45:58 +0000 Subject: [PATCH] All 2-endpoints configs have high and normal pariority queues. --- sys/dev/usb/wlan/if_urtwn.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sys/dev/usb/wlan/if_urtwn.c b/sys/dev/usb/wlan/if_urtwn.c index 78ead154550..59d8c136e7d 100644 --- a/sys/dev/usb/wlan/if_urtwn.c +++ b/sys/dev/usb/wlan/if_urtwn.c @@ -2935,13 +2935,11 @@ urtwn_dma_init(struct urtwn_softc *sc) else reg |= R92C_TRXDMA_CTRL_QMAP_LQ; } else if (nqueues == 2) { - /* All 2-endpoints configs have a high priority queue. */ - if (!hashq) - return (EIO); - if (hasnq) - reg |= R92C_TRXDMA_CTRL_QMAP_HQ_NQ; - else - reg |= R92C_TRXDMA_CTRL_QMAP_HQ_LQ; + /* + * All 2-endpoints configs have high and normal + * priority queues. + */ + reg |= R92C_TRXDMA_CTRL_QMAP_HQ_NQ; } else reg |= R92C_TRXDMA_CTRL_QMAP_3EP; usb_err = urtwn_write_2(sc, R92C_TRXDMA_CTRL, reg);