diff options
author | 2005-05-28 12:01:53 +0000 | |
---|---|---|
committer | 2005-05-28 12:01:53 +0000 | |
commit | 8a8e4d51840b58d96d7973161a1b5da44e7c07ac (patch) | |
tree | 3606dee93d8ce2ff0656b4d105165ab14f17677d | |
parent | sync (diff) | |
download | wireguard-openbsd-8a8e4d51840b58d96d7973161a1b5da44e7c07ac.tar.xz wireguard-openbsd-8a8e4d51840b58d96d7973161a1b5da44e7c07ac.zip |
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.c | 5 |
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); |