summaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2007-11-01 22:34:20 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2007-11-01 22:34:20 +0000
commit53cea8683bd22a0049823b3815c3a8b7fb3d45ec (patch)
tree96da9cad8017fb93892870fb33541bb5025ecf9e /share/man/man9
parent9d7690c315da6d5b6d34d2b1b67ff85b51ff050f (diff)
Add ieee80211_rate2plcp() and ieee80211_plcp2rate() functions.
Help and OK reyk@
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/Makefile6
-rw-r--r--share/man/man9/ieee80211.930
2 files changed, 30 insertions, 6 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 56e9ba175f6..64c7a6524fd 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.133 2007/10/10 16:26:23 deraadt Exp $
+# $OpenBSD: Makefile,v 1.134 2007/11/01 22:34:19 mglocker Exp $
# $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $
# Makefile for section 9 (kernel function and variable) manual pages.
@@ -139,7 +139,9 @@ MLINKS+=ieee80211.9 ieee80211_ifattach.9 \
ieee80211.9 ieee80211_setmode.9 \
ieee80211.9 ieee80211_chan2mode.9 \
ieee80211.9 ieee80211_rate2media.9 \
- ieee80211.9 ieee80211_media2rate.9
+ ieee80211.9 ieee80211_media2rate.9 \
+ ieee80211.9 ieee80211_rate2plcp.9 \
+ ieee80211.9 ieee80211_plcp2rate.9
MLINKS+=ieee80211_crypto.9 ieee80211_crypto_attach.9 \
ieee80211_crypto.9 ieee80211_crypto_detach.9 \
ieee80211_crypto.9 ieee80211_wep_crypt.9
diff --git a/share/man/man9/ieee80211.9 b/share/man/man9/ieee80211.9
index 1a8d49c01e6..394f36da440 100644
--- a/share/man/man9/ieee80211.9
+++ b/share/man/man9/ieee80211.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ieee80211.9,v 1.6 2007/06/16 13:17:05 damien Exp $
+.\" $OpenBSD: ieee80211.9,v 1.7 2007/11/01 22:34:19 mglocker Exp $
.\"
.\" Copyright (c) 2004 Bruce M. Simpson <bms@spc.org>
.\" Copyright (c) 2004 Darron Broad <darron@kewl.org>
@@ -26,9 +26,9 @@
.\" SUCH DAMAGE.
.\"
.\" $FreeBSD: src/share/man/man9/ieee80211.9,v 1.3 2004/07/07 12:59:39 ru Exp $
-.\" $Id: ieee80211.9,v 1.6 2007/06/16 13:17:05 damien Exp $
+.\" $Id: ieee80211.9,v 1.7 2007/11/01 22:34:19 mglocker Exp $
.\"
-.Dd $Mdocdate: June 16 2007 $
+.Dd $Mdocdate: November 1 2007 $
.Dt IEEE80211 9
.Os
.Sh NAME
@@ -37,7 +37,8 @@
.Nm ieee80211_media_init , ieee80211_media_change , ieee80211_media_status ,
.Nm ieee80211_watchdog ,
.Nm ieee80211_setmode , ieee80211_chan2mode ,
-.Nm ieee80211_rate2media , ieee80211_media2rate
+.Nm ieee80211_rate2media , ieee80211_media2rate ,
+.Nm ieee80211_rate2plcp , ieee80211_plcp2rate
.Nd core 802.11 network stack functions
.Sh SYNOPSIS
.In net80211/ieee80211_var.h
@@ -76,6 +77,12 @@
.Fc
.Ft int
.Fn ieee80211_media2rate "int mword"
+.Ft u_int8_t
+.Fn ieee80211_rate2plcp "struct ieee80211com *ic" "int rate" \
+"enum ieee80211_phymode mode"
+.Ft int
+.Fn ieee80211_plcp2rate "struct ieee80211com *ic" "u_int8_t plcp" \
+"enum ieee80211_phymode mode"
.Sh DESCRIPTION
The
.Nm ieee80211
@@ -237,6 +244,21 @@ performs the reverse of this conversion, returning the bit rate (in 0.5Mbps
units) corresponding to an
.Vt ifmedia
sub-type.
+.Pp
+.\"
+The
+.Fn ieee80211_rate2plcp
+function converts the bit rate
+.Fa rate
+(measured in units of 0.5Mbps) to a
+.Vt plcp
+signal.
+The
+.Fn ieee80211_plcp2rate
+performs the reverse of this conversion, returning the bit rate (in 0.5Mbps
+units) corresponding to a
+.Vt plcp
+signal.
.\"
.Sh SEE ALSO
.Xr ifmedia 4 ,