summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2005-08-28 02:51:06 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2005-08-28 02:51:06 +0000
commit3a2b01fcd41da8f9cea81e6818ea2033afea3608 (patch)
treeb8b41e74e147626d12dc72e6be7a2e972ef8e62c /sys
parentae118ddbebdc93a12663875de54ecec14bd8d4d9 (diff)
Tell the AX88178 to give us the full transaction size.
ok dlg@ deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_axe.c5
-rw-r--r--sys/dev/usb/if_axereg.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index e658565f109..8252a23068a 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axe.c,v 1.34 2005/08/28 02:49:25 jsg Exp $ */
+/* $OpenBSD: if_axe.c,v 1.35 2005/08/28 02:51:05 jsg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003
@@ -1223,6 +1223,9 @@ axe_init(void *xsc)
rxmode = AXE_RXCMD_MULTICAST|AXE_RXCMD_ENABLE;
if (!(sc->axe_flags & AX178))
rxmode |= AXE_172_RXCMD_UNICAST;
+ else
+ /* largest possible USB buffer size for AX88178 */
+ rxmode |= AXE_178_RXCMD_MFB;
/* If we want promiscuous mode, set the allframes bit. */
if (ifp->if_flags & IFF_PROMISC)
diff --git a/sys/dev/usb/if_axereg.h b/sys/dev/usb/if_axereg.h
index 208f93502c2..41e49f4791e 100644
--- a/sys/dev/usb/if_axereg.h
+++ b/sys/dev/usb/if_axereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axereg.h,v 1.8 2005/08/28 02:49:25 jsg Exp $ */
+/* $OpenBSD: if_axereg.h,v 1.9 2005/08/28 02:51:05 jsg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003
@@ -125,6 +125,7 @@
#define AXE_RXCMD_BROADCAST 0x0008
#define AXE_RXCMD_MULTICAST 0x0010
#define AXE_RXCMD_ENABLE 0x0080
+#define AXE_178_RXCMD_MFB 0x0300
#define AXE_NOPHY 0xE0