diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 0fe74d6e0614..397e87fe5824 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -2372,7 +2372,7 @@ ath_descdma_setup(struct ath_softc *sc, NULL, NULL, /* filter, filterarg */ dd->dd_desc_len, /* maxsize */ 1, /* nsegments */ - BUS_SPACE_MAXADDR, /* maxsegsize */ + dd->dd_desc_len, /* maxsegsize */ BUS_DMA_ALLOCNOW, /* flags */ NULL, /* lockfunc */ NULL, /* lockarg */ diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c index cb176f06293b..cbed3c0d7a22 100644 --- a/sys/dev/ath/if_ath_pci.c +++ b/sys/dev/ath/if_ath_pci.c @@ -183,7 +183,7 @@ ath_pci_attach(device_t dev) NULL, NULL, /* filter, filterarg */ 0x3ffff, /* maxsize XXX */ ATH_MAX_SCATTER, /* nsegments */ - BUS_SPACE_MAXADDR, /* maxsegsize */ + 0x3ffff, /* maxsegsize XXX */ BUS_DMA_ALLOCNOW, /* flags */ NULL, /* lockfunc */ NULL, /* lockarg */