diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-03-18 21:37:57 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-03-18 21:37:57 +0000 |
commit | 6a9e90c7f314165727dcb1992fb47a220652b2d5 (patch) | |
tree | fa69b7e5325b2cf276cdbb43909f385866ffa883 /sys/dev | |
parent | 99ffeb3c9aafd7dabf66291b3be26609a7f8e9ed (diff) |
use IFQ_* instead of IF_* for the data queue
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/ath.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index dd4518d27d2..9e6a36eb597 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.14 2005/03/11 17:45:28 reyk Exp $ */ +/* $OpenBSD: ath.c,v 1.15 2005/03/18 21:37:56 reyk Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -341,6 +341,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) ifp->if_init = ath_init; ifp->if_stop = ath_stop; /* XXX */ #endif + IFQ_SET_MAXLEN(&ifp->if_snd, ATH_TXBUF * ATH_TXDESC); IFQ_SET_READY(&ifp->if_snd); ic->ic_softc = sc; @@ -797,7 +798,7 @@ ath_stop(struct ifnet *ifp) } else { sc->sc_rxlink = NULL; } - IF_PURGE(&ifp->if_snd); + IFQ_PURGE(&ifp->if_snd); ath_beacon_free(sc); ieee80211_new_state(ic, IEEE80211_S_INIT, -1); if (!sc->sc_invalid) { @@ -901,7 +902,7 @@ ath_start(struct ifnet *ifp) splx(s); break; } - IF_DEQUEUE(&ifp->if_snd, m); + IFQ_DEQUEUE(&ifp->if_snd, m); if (m == NULL) { s = splnet(); TAILQ_INSERT_TAIL(&sc->sc_txbuf, bf, bf_list); |