diff options
author | 2006-08-23 16:25:07 +0000 | |
---|---|---|
committer | 2006-08-23 16:25:07 +0000 | |
commit | 37ac0e4af3b892d0c8c2d79f12182e84adf4b717 (patch) | |
tree | f87d6b49f5f7cca22cf8980b890f0b3bf0923e2e /sys/dev/usb/if_rum.c | |
parent | in rum_rxeof(), don't check xfer length against IEEE80211_MIN_LEN since (diff) | |
download | wireguard-openbsd-37ac0e4af3b892d0c8c2d79f12182e84adf4b717.tar.xz wireguard-openbsd-37ac0e4af3b892d0c8c2d79f12182e84adf4b717.zip |
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/if_rum.c')
-rw-r--r-- | sys/dev/usb/if_rum.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |