summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_mos.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-11-06 02:32:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-11-06 02:32:30 +0000
commit6e64ef319dbd93c0fb085debf78fc39822d82865 (patch)
treeee12aeca459c377202c7a8e365950b16eebd4138 /sys/dev/usb/if_mos.c
parent56a4de48328c4166c7a421c847388b20f1f5d79c (diff)
Set the IFCAP_VLAN_MTU capabilities flag so these interfaces are allowed
to transmit full sized VLAN tagged frames.
Diffstat (limited to 'sys/dev/usb/if_mos.c')
-rw-r--r--sys/dev/usb/if_mos.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/if_mos.c b/sys/dev/usb/if_mos.c
index 92536741d87..00e05f5f57e 100644
--- a/sys/dev/usb/if_mos.c
+++ b/sys/dev/usb/if_mos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mos.c,v 1.3 2008/11/02 23:50:48 jsg Exp $ */
+/* $OpenBSD: if_mos.c,v 1.4 2008/11/06 02:32:29 brad Exp $ */
/*
* Copyright (c) 2008 Johann Christian Rode <jcrode@gmx.net>
@@ -713,6 +713,8 @@ mos_attach(struct device *parent, struct device *self, void *aux)
IFQ_SET_READY(&ifp->if_snd);
+ ifp->if_capabilities = IFCAP_VLAN_MTU;
+
/* Initialize MII/media info. */
mii = GET_MII(sc);
mii->mii_ifp = ifp;