mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 15:48:48 -04:00
o correct handling of a frame that has too many segments to fit in the
tx descriptor array o while here fix a whitespace nit Obtained from: NetBSD
This commit is contained in:
parent
32f3fff9ac
commit
00a12f3ae7
1 changed files with 6 additions and 3 deletions
|
|
@ -334,8 +334,8 @@ ath_detach(struct ath_softc *sc)
|
|||
ath_hal_detach(sc->sc_ah);
|
||||
ieee80211_ifdetach(ifp);
|
||||
|
||||
ATH_TXBUF_LOCK_DESTROY(sc);
|
||||
ATH_TXQ_LOCK_DESTROY(sc);
|
||||
ATH_TXBUF_LOCK_DESTROY(sc);
|
||||
ATH_TXQ_LOCK_DESTROY(sc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1765,7 +1765,10 @@ ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf
|
|||
error = bus_dmamap_load_mbuf(sc->sc_dmat, bf->bf_dmamap, m0,
|
||||
ath_mbuf_load_cb, bf,
|
||||
BUS_DMA_NOWAIT);
|
||||
if (error != 0) {
|
||||
if (error == EFBIG) {
|
||||
/* XXX packet requires too many descriptors */
|
||||
bf->bf_nseg = ATH_TXDESC+1;
|
||||
} else if (error != 0) {
|
||||
sc->sc_stats.ast_tx_busdma++;
|
||||
m_freem(m0);
|
||||
return error;
|
||||
|
|
|
|||
Loading…
Reference in a new issue