When ath_hal_stoptxdma returns an error dma is still likely stopped

so don't just stop trying to send a beacon frame or we'll be more likely
to lose sync.  This only seems to happen on some older chips.
This commit is contained in:
Sam Leffler 2004-01-07 19:11:11 +00:00
parent 7bbf937701
commit a9c0425768
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124224

View File

@ -1232,7 +1232,7 @@ ath_beacon_proc(void *arg, int pending)
if (!ath_hal_stoptxdma(ah, sc->sc_bhalq)) {
DPRINTF(ATH_DEBUG_ANY, ("%s: beacon queue %u did not stop?\n",
__func__, sc->sc_bhalq));
return; /* busy, XXX is this right? */
/* NB: the HAL still stops DMA, so proceed */
}
bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, BUS_DMASYNC_PREWRITE);