summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2005-05-28 12:01:54 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2005-05-28 12:01:54 +0000
commit2c6cdf9cdd89b528002eebcc09d55aa0b56f925e (patch)
treee5df6976ae6317b3cffe926269f1faa59f1b45cd
parentdcbd1f2e9536127f4ab58a152f87f296c583cee8 (diff)
enable IFCAP_VLAN_MTU because IEEE 802.11 defines a MTU of about 2290.
successfully tested with ural, ath, atw, atu and ath. ok jsg@, brad@
-rw-r--r--sys/net80211/ieee80211.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 4139d0ebe4b..d255216f29c 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211.c,v 1.7 2005/05/25 07:40:49 reyk Exp $ */
+/* $OpenBSD: ieee80211.c,v 1.8 2005/05/28 12:01:53 reyk Exp $ */
/* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */
/*-
@@ -206,6 +206,9 @@ ieee80211_ifattach(struct ifnet *ifp)
ic->ic_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */
ic->ic_scan_lock = IEEE80211_SCAN_UNLOCKED;
+ /* IEEE 802.11 defines a MTU >= 2290 */
+ ifp->if_capabilities |= IFCAP_VLAN_MTU;
+
ieee80211_setbasicrates(ic);
(void) ieee80211_setmode(ic, ic->ic_curmode);