diff options
-rw-r--r-- | sys/dev/ic/rt2560.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/rt2661.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c index 6d590bb2b1a..f1f2b2a9580 100644 --- a/sys/dev/ic/rt2560.c +++ b/sys/dev/ic/rt2560.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2560.c,v 1.5 2006/01/10 21:20:46 damien Exp $ */ +/* $OpenBSD: rt2560.c,v 1.6 2006/01/11 21:02:17 damien Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -1878,7 +1878,7 @@ rt2560_tx_data(struct rt2560_softc *sc, struct mbuf *m0, desc = &sc->txq.desc[sc->txq.cur_encrypt]; data = &sc->txq.data[sc->txq.cur_encrypt]; - error = bus_dmamap_load_mbuf(sc->sc_dmat, data->map, m0, + error = bus_dmamap_load_mbuf(sc->sc_dmat, data->map, m, BUS_DMA_NOWAIT); if (error != 0) { printf("%s: could not map mbuf (error %d)\n", diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c index 5947bde8643..b6a4632db39 100644 --- a/sys/dev/ic/rt2661.c +++ b/sys/dev/ic/rt2661.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2661.c,v 1.3 2006/01/10 21:33:52 damien Exp $ */ +/* $OpenBSD: rt2661.c,v 1.4 2006/01/11 21:02:17 damien Exp $ */ /*- * Copyright (c) 2006 @@ -1700,7 +1700,7 @@ rt2661_tx_data(struct rt2661_softc *sc, struct mbuf *m0, desc = &txq->desc[txq->cur]; data = &txq->data[txq->cur]; - error = bus_dmamap_load_mbuf(sc->sc_dmat, data->map, m0, + error = bus_dmamap_load_mbuf(sc->sc_dmat, data->map, m, BUS_DMA_NOWAIT); if (error != 0) { printf("%s: could not map mbuf (error %d)\n", @@ -1720,7 +1720,7 @@ rt2661_tx_data(struct rt2661_softc *sc, struct mbuf *m0, data->id.id_node = NULL; rt2661_setup_tx_desc(sc, desc, RT2661_TX_NEED_ACK | - RT2661_TX_MORE_FRAG, 0, m0->m_pkthdr.len, rtsrate, + RT2661_TX_MORE_FRAG, 0, m->m_pkthdr.len, rtsrate, data->map->dm_segs, data->map->dm_nsegs, ac); bus_dmamap_sync(sc->sc_dmat, data->map, 0, |