diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_ipwvar.h | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_iwi.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_ipwvar.h b/sys/dev/pci/if_ipwvar.h index 34920eae745..b04a2b3b1f5 100644 --- a/sys/dev/pci/if_ipwvar.h +++ b/sys/dev/pci/if_ipwvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipwvar.h,v 1.11 2005/03/12 13:31:26 damien Exp $ */ +/* $OpenBSD: if_ipwvar.h,v 1.12 2005/03/12 13:37:49 damien Exp $ */ /*- * Copyright (c) 2004, 2005 @@ -82,7 +82,7 @@ struct ipw_tx_radiotap_header { ((1 << IEEE80211_RADIOTAP_FLAGS) | \ (1 << IEEE80211_RADIOTAP_CHANNEL)) -#define IPW_MAX_NSEG 6 +#define IPW_MAX_NSEG 1 struct ipw_softc { struct device sc_dev; diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index ccb45bd2cc7..e702e0c6453 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwi.c,v 1.28 2005/03/12 13:25:45 damien Exp $ */ +/* $OpenBSD: if_iwi.c,v 1.29 2005/03/12 13:37:49 damien Exp $ */ /*- * Copyright (c) 2004, 2005 @@ -463,8 +463,8 @@ iwi_dma_alloc(struct iwi_softc *sc) * Allocate Tx buffers DMA maps */ for (i = 0; i < IWI_TX_RING_SIZE; i++) { - error = bus_dmamap_create(sc->sc_dmat, MCLBYTES, IWI_MAX_NSEG, - MCLBYTES, 0, BUS_DMA_NOWAIT, &sc->tx_buf[i].map); + error = bus_dmamap_create(sc->sc_dmat, MCLBYTES, 1, MCLBYTES, + 0, BUS_DMA_NOWAIT, &sc->tx_buf[i].map); if (error != 0) { printf("%s: could not create tx buf DMA map", sc->sc_dev.dv_xname); |