diff options
author | adrian <adrian@FreeBSD.org> | 2012-01-26 07:03:30 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-01-26 07:03:30 +0000 |
commit | 6d7f67ee9f133ca683ed6a6b0c62eae797ea901a (patch) | |
tree | 5248b6c87408e916992250cb85d7a20dbb5b382b /sys/dev | |
parent | 781c8cf6427c1dc76a831417b41c909ac3932291 (diff) | |
download | FreeBSD-src-6d7f67ee9f133ca683ed6a6b0c62eae797ea901a.zip FreeBSD-src-6d7f67ee9f133ca683ed6a6b0c62eae797ea901a.tar.gz |
Add some node debugging which has helped me track down which particular
concurrent vap->iv_bss free issues have been occuring.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/if_ath.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 48fb917..3215560 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -2695,6 +2695,8 @@ ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_node *ni) int error; bf = avp->av_bcbuf; + DPRINTF(sc, ATH_DEBUG_NODE, "%s: bf_m=%p, bf_node=%p\n", + __func__, bf->bf_m, bf->bf_node); if (bf->bf_m != NULL) { bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap); m_freem(bf->bf_m); @@ -3152,6 +3154,8 @@ static void ath_beacon_return(struct ath_softc *sc, struct ath_buf *bf) { + DPRINTF(sc, ATH_DEBUG_NODE, "%s: free bf=%p, bf_m=%p, bf_node=%p\n", + __func__, bf, bf->bf_m, bf->bf_node); if (bf->bf_m != NULL) { bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap); m_freem(bf->bf_m); @@ -3173,6 +3177,9 @@ ath_beacon_free(struct ath_softc *sc) struct ath_buf *bf; TAILQ_FOREACH(bf, &sc->sc_bbuf, bf_list) { + DPRINTF(sc, ATH_DEBUG_NODE, + "%s: free bf=%p, bf_m=%p, bf_node=%p\n", + __func__, bf, bf->bf_m, bf->bf_node); if (bf->bf_m != NULL) { bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap); m_freem(bf->bf_m); |