From 6a9e90c7f314165727dcb1992fb47a220652b2d5 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Fri, 18 Mar 2005 21:37:57 +0000 Subject: use IFQ_* instead of IF_* for the data queue --- sys/dev/ic/ath.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3