svn commit: r292056 - head/sys/dev/usb/wlan

Kevin Lo kevlo at FreeBSD.org
Thu Dec 10 07:45:59 UTC 2015


Author: kevlo
Date: Thu Dec 10 07:45:58 2015
New Revision: 292056
URL: https://svnweb.freebsd.org/changeset/base/292056

Log:
  All 2-endpoints configs have high and normal pariority queues.

Modified:
  head/sys/dev/usb/wlan/if_urtwn.c

Modified: head/sys/dev/usb/wlan/if_urtwn.c
==============================================================================
--- head/sys/dev/usb/wlan/if_urtwn.c	Thu Dec 10 07:42:56 2015	(r292055)
+++ head/sys/dev/usb/wlan/if_urtwn.c	Thu Dec 10 07:45:58 2015	(r292056)
@@ -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);


More information about the svn-src-all mailing list