diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-09-23 14:12:19 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-09-23 14:12:19 +0000 |
commit | 3a336eb7fb2441cf9864491969128db1a0483c6a (patch) | |
tree | f2cf1541715383bedb77d14ca0dad3af9e932f9c | |
parent | b9ecb95789106e2abd6089f46d47c728eca01d36 (diff) |
Properly handle the physical address in bwi_encap() as well.
With this change I can now scan, associate and ssh via bwi(4)
-rw-r--r-- | sys/dev/ic/bwi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index d1d40ebb41c..7120168053a 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwi.c,v 1.40 2007/09/23 13:44:39 jsg Exp $ */ +/* $OpenBSD: bwi.c,v 1.41 2007/09/23 14:12:18 jsg Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -8064,6 +8064,7 @@ bwi_encap(struct bwi_softc *sc, int idx, struct mbuf *m, #endif /* Setup TX descriptor */ + paddr = tb->tb_dmap->dm_segs[0].ds_addr; sc->sc_setup_txdesc(sc, rd, idx, paddr, m->m_pkthdr.len); bus_dmamap_sync(sc->sc_dmat, rd->rdata_dmap, 0, rd->rdata_dmap->dm_mapsize, BUS_DMASYNC_PREWRITE); |