diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-08-23 16:25:08 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-08-23 16:25:08 +0000 |
commit | 05130d0bc84666ebe2381442c2cbdc0f00e88437 (patch) | |
tree | 60e0590770207f377e66d44491233e961ba4e673 /sys/dev/usb | |
parent | 21fa8b064fb59b49efafd5ef82adb79bb1190ff8 (diff) |
the maximum MTU allowed for IEEE802.11 is 2290 which is greater than
MCLBYTES (usually 2048).
allocate tx xfer buffers of IEEE80211_MTU_MAX instead of MCLBYTES.
rx buffers are still limited to MCLBYTES though.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_ral.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_rum.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index f89e4952a6a..ca6ac137957 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.76 2006/08/23 08:06:49 jsg Exp $ */ +/* $OpenBSD: if_ral.c,v 1.77 2006/08/23 16:25:07 damien Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -450,7 +450,7 @@ ural_alloc_tx_list(struct ural_softc *sc) } data->buf = usbd_alloc_buffer(data->xfer, - RAL_TX_DESC_SIZE + MCLBYTES); + RAL_TX_DESC_SIZE + IEEE80211_MTU_MAX); if (data->buf == NULL) { printf("%s: could not allocate tx buffer\n", USBDEVNAME(sc->sc_dev)); diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c index 9c26d0d5fdd..2983e1be1b3 100644 --- a/sys/dev/usb/if_rum.c +++ b/sys/dev/usb/if_rum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rum.c,v 1.36 2006/08/23 16:16:39 damien Exp $ */ +/* $OpenBSD: if_rum.c,v 1.37 2006/08/23 16:25:07 damien Exp $ */ /*- * Copyright (c) 2005, 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -489,7 +489,7 @@ rum_alloc_tx_list(struct rum_softc *sc) } data->buf = usbd_alloc_buffer(data->xfer, - RT2573_TX_DESC_SIZE + MCLBYTES); + RT2573_TX_DESC_SIZE + IEEE80211_MTU_MAX); if (data->buf == NULL) { printf("%s: could not allocate tx buffer\n", USBDEVNAME(sc->sc_dev)); |