--- src/sys/dev/netif/rtw/rtw.c 2007/03/19 13:38:43 1.9 +++ src/sys/dev/netif/rtw/rtw.c 2007/05/16 14:24:40 1.10 @@ -3049,7 +3049,7 @@ rtw_load_txbuf(struct rtw_softc *sc, str error = bus_dmamap_load_mbuf(sc->sc_txsoft_dmat, ts->ts_dmamap, m, rtw_txbuf_dma_map, segs, BUS_DMA_NOWAIT); - if (error && error != E2BIG) { + if (error && error != EFBIG) { if_printf(&sc->sc_ic.ic_if, "can't load tx mbuf1\n"); goto back; } @@ -3077,7 +3077,7 @@ rtw_load_txbuf(struct rtw_softc *sc, str } unload = 1; - error = E2BIG; + error = EFBIG; if (segs->nseg > ndesc_free) { if_printf(&sc->sc_ic.ic_if, "not enough free txdesc\n"); goto back; @@ -3092,7 +3092,7 @@ rtw_load_txbuf(struct rtw_softc *sc, str if (rtw_txsegs_too_long(segs)) { if_printf(&sc->sc_ic.ic_if, "segment too long\n"); unload = 1; - error = E2BIG; + error = EFBIG; } back: