summaryrefslogtreecommitdiff
path: root/sys/dev/ic/acx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/acx.c')
-rw-r--r--sys/dev/ic/acx.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c
index b84a7d6a60c..ec24038e630 100644
--- a/sys/dev/ic/acx.c
+++ b/sys/dev/ic/acx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acx.c,v 1.116 2015/11/24 17:11:39 mpi Exp $ */
+/* $OpenBSD: acx.c,v 1.117 2015/11/25 03:09:58 dlg Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -477,7 +477,7 @@ acx_init(struct ifnet *ifp)
acx_enable_intr(sc);
ifp->if_flags |= IFF_RUNNING;
- ifp->if_flags &= ~IFF_OACTIVE;
+ ifq_clr_oactive(&ifp->if_snd);
if (ic->ic_opmode != IEEE80211_M_MONITOR)
/* start background scanning */
@@ -610,7 +610,8 @@ acx_stop(struct acx_softc *sc)
sc->sc_txtimer = 0;
ifp->if_timer = 0;
- ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
+ ifp->if_flags &= ~IFF_RUNNING;
+ ifq_clr_oactive(&ifp->if_snd);
ieee80211_new_state(&sc->sc_ic, IEEE80211_S_INIT, -1);
/* disable card if possible */
@@ -910,7 +911,7 @@ acx_start(struct ifnet *ifp)
if ((sc->sc_flags & ACX_FLAG_FW_LOADED) == 0 ||
(ifp->if_flags & IFF_RUNNING) == 0 ||
- (ifp->if_flags & IFF_OACTIVE))
+ ifq_is_oactive(&ifp->if_snd))
return;
/*
@@ -1066,7 +1067,7 @@ encapped:
bd->tx_free_start = idx;
if (bd->tx_used_count == ACX_TX_DESC_CNT)
- ifp->if_flags |= IFF_OACTIVE;
+ ifq_set_oactive(&ifp->if_snd);
if (trans && sc->sc_txtimer == 0)
sc->sc_txtimer = 5;
@@ -1216,7 +1217,7 @@ acx_txeof(struct acx_softc *sc)
sc->sc_txtimer = bd->tx_used_count == 0 ? 0 : 5;
if (bd->tx_used_count != ACX_TX_DESC_CNT) {
- ifp->if_flags &= ~IFF_OACTIVE;
+ ifq_clr_oactive(&ifp->if_snd);
acx_start(ifp);
}
}