summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/if_ath_misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ath/if_ath_misc.h')
-rw-r--r--sys/dev/ath/if_ath_misc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_misc.h b/sys/dev/ath/if_ath_misc.h
index 965ab9f..404d073 100644
--- a/sys/dev/ath/if_ath_misc.h
+++ b/sys/dev/ath/if_ath_misc.h
@@ -131,10 +131,16 @@ extern void ath_start_task(void *arg, int npending);
static inline void
ath_tx_kick(struct ath_softc *sc)
{
+ struct ieee80211com *ic = sc->sc_ifp->if_l2com;
+ IEEE80211_TX_UNLOCK_ASSERT(ic);
+ ATH_TX_UNLOCK_ASSERT(sc);
+
+ IEEE80211_TX_LOCK(ic);
ATH_TX_LOCK(sc);
ath_start(sc->sc_ifp);
ATH_TX_UNLOCK(sc);
+ IEEE80211_TX_UNLOCK(ic);
}
/*
OpenPOWER on IntegriCloud