diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-14 09:23:25 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-14 09:23:25 +0000 |
commit | a0b4e55935fd0999f5c4b5f81108aec875037c21 (patch) | |
tree | 755c638b645851b4a8d904b47afef919c809fe26 /sys/dev/ic/ath.c | |
parent | e64474383110b1c01ce1542de084bc347c443e11 (diff) |
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.c | 5 |
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); |