summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-11-26 11:14:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-11-26 11:14:24 +0000
commitfc5e33634728bde6c974cd8aeff04d1c32f3aae9 (patch)
tree756cdd6a03627c0e603133d236612399bbf21458 /sys/net80211/ieee80211.c
parent11d67ff21f1bb2654684b406d4d681f9fa7fd0b2 (diff)
do not have each net80211 driver define its own rates structures. if they use
the standard rates, use some defined by net80211 itself. kernel shrinks a bit ok jsg mglocker
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r--sys/net80211/ieee80211.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 2e1c684ec44..75f535fc3ed 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211.c,v 1.17 2006/06/18 18:39:41 damien Exp $ */
+/* $OpenBSD: ieee80211.c,v 1.18 2006/11/26 11:14:23 deraadt Exp $ */
/* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */
/*-
@@ -603,6 +603,15 @@ ieee80211_watchdog(struct ifnet *ifp)
ifp->if_timer = 1;
}
+struct ieee80211_rateset ieee80211_std_rateset_11a =
+ { 8, { 12, 18, 24, 36, 48, 72, 96, 108 } };
+
+struct ieee80211_rateset ieee80211_std_rateset_11b =
+ { 4, { 2, 4, 11, 22 } };
+
+struct ieee80211_rateset ieee80211_std_rateset_11g =
+ { 12, { 2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108 } };
+
/*
* Mark the basic rates for the 11g rate table based on the
* operating mode. For real 11g we mark all the 11b rates