summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/ath.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2006-12-14 09:23:24 +0000
committerreyk <reyk@openbsd.org>2006-12-14 09:23:24 +0000
commita1675396bf71995c995ba52a954b019273cb51eb (patch)
treec58c9bec5367574ffed2b23b7b409a56c8214e6c /sys/dev/ic/ath.c
parentIf an MS-DOS filesystem claims to have more clusters than can be (diff)
downloadwireguard-openbsd-a1675396bf71995c995ba52a954b019273cb51eb.tar.xz
wireguard-openbsd-a1675396bf71995c995ba52a954b019273cb51eb.zip
fix a minor bug in the tx data queue setup by using the right queue
type. this would cause us some more trouble with WME which isn't supported yet... thanks to Nick Kossifidis
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r--sys/dev/ic/ath.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index be126db4c65..0a7b020b4a8 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.59 2006/11/06 08:48:49 reyk Exp $ */
+/* $OpenBSD: ath.c,v 1.60 2006/12/14 09:23:24 reyk Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -322,7 +322,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
* allocate more tx queues for splitting management
* frames and for QOS support.
*/
- sc->sc_bhalq = ath_hal_setup_tx_queue(ah,HAL_TX_QUEUE_BEACON,NULL);
+ sc->sc_bhalq = ath_hal_setup_tx_queue(ah, HAL_TX_QUEUE_BEACON, NULL);
if (sc->sc_bhalq == (u_int) -1) {
printf(": unable to setup a beacon xmit queue!\n");
goto bad2;
@@ -330,6 +330,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
for (i = 0; i <= HAL_TX_QUEUE_ID_DATA_MAX; i++) {
bzero(&qinfo, sizeof(qinfo));
+ qinfo.tqi_type = HAL_TX_QUEUE_DATA;
qinfo.tqi_subtype = i; /* should be mapped to WME types */
sc->sc_txhalq[i] = ath_hal_setup_tx_queue(ah,
HAL_TX_QUEUE_DATA, &qinfo);