summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_var.h
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2007-11-14 11:16:28 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2007-11-14 11:16:28 +0000
commitedea1b2e16c69313203de5e153740269790ac992 (patch)
tree7527c012b42fd654acc6ab289bb37ea765bc542b /sys/net80211/ieee80211_var.h
parent38779f39b59f9a26453e645b156200da5972a779 (diff)
Add ieee80211_rate2plcp() and ieee80211_plcp2rate() functions, which
convert the PLCP header signal field to a rate value and vice versa. This implementation has been discussed with Damien and doesn't change any existing net80211 structures. ok damien@
Diffstat (limited to 'sys/net80211/ieee80211_var.h')
-rw-r--r--sys/net80211/ieee80211_var.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h
index f086f7eb1ca..b85796beab4 100644
--- a/sys/net80211/ieee80211_var.h
+++ b/sys/net80211/ieee80211_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_var.h,v 1.35 2007/11/03 14:59:55 mglocker Exp $ */
+/* $OpenBSD: ieee80211_var.h,v 1.36 2007/11/14 11:16:27 mglocker Exp $ */
/* $NetBSD: ieee80211_var.h,v 1.7 2004/05/06 03:07:10 dyoung Exp $ */
/*-
@@ -313,6 +313,8 @@ int ieee80211_fix_rate(struct ieee80211com *, struct ieee80211_node *, int);
int ieee80211_rate2media(struct ieee80211com *, int,
enum ieee80211_phymode);
int ieee80211_media2rate(int);
+int ieee80211_rate2plcp(int, enum ieee80211_phymode);
+int ieee80211_plcp2rate(int, enum ieee80211_phymode);
u_int ieee80211_mhz2ieee(u_int, u_int);
u_int ieee80211_chan2ieee(struct ieee80211com *,
const struct ieee80211_channel *);