diff options
author | 2016-07-20 15:40:27 +0000 | |
---|---|---|
committer | 2016-07-20 15:40:27 +0000 | |
commit | f1e8586e274dc768f05a13f502fd30b1336c0d73 (patch) | |
tree | 95f0be978cf635c1cef6704046d682a2bcd42d55 | |
parent | strip back openssl ciphers: (diff) | |
download | wireguard-openbsd-f1e8586e274dc768f05a13f502fd30b1336c0d73.tar.xz wireguard-openbsd-f1e8586e274dc768f05a13f502fd30b1336c0d73.zip |
In net80211, enable RTS for frames above a particular size (currently 512
bytes). This is what other OS have been doing for years. In our stack this
feature was present but disabled at compile-time by an #ifdef.
This is a low risk change because drivers were already required to use RTS
whenever the AP set the USE_PROTECTION flag in ERP elements of its beacons.
This change allows for reasonable throughput on loaded 11g networks
whereas before they were practically unusable.
tests and ok phessler@
-rw-r--r-- | sys/net80211/ieee80211_proto.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 0941831675f..9aa63d823d0 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_proto.c,v 1.67 2016/05/18 08:15:28 stsp Exp $ */ +/* $OpenBSD: ieee80211_proto.c,v 1.68 2016/07/20 15:40:27 stsp Exp $ */ /* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */ /*- @@ -88,11 +88,7 @@ ieee80211_proto_attach(struct ifnet *ifp) ifp->if_hdrlen = sizeof(struct ieee80211_frame); -#ifdef notdef ic->ic_rtsthreshold = IEEE80211_RTS_DEFAULT; -#else - ic->ic_rtsthreshold = IEEE80211_RTS_MAX; -#endif ic->ic_fragthreshold = 2346; /* XXX not used yet */ ic->ic_fixed_rate = -1; /* no fixed rate */ ic->ic_fixed_mcs = -1; /* no fixed mcs */ |