summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/Makefile6
-rw-r--r--share/man/man9/ieee80211.928
2 files changed, 28 insertions, 6 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 04378adc5f4..6b952a8c0b2 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.135 2007/11/03 14:59:55 mglocker Exp $
+# $OpenBSD: Makefile,v 1.136 2007/11/14 11:16:27 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 ef1e83f8a44..53fb26fa480 100644
--- a/share/man/man9/ieee80211.9
+++ b/share/man/man9/ieee80211.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ieee80211.9,v 1.9 2007/11/03 14:59:55 mglocker Exp $
+.\" $OpenBSD: ieee80211.9,v 1.10 2007/11/14 11:16:27 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.9 2007/11/03 14:59:55 mglocker Exp $
+.\" $Id: ieee80211.9,v 1.10 2007/11/14 11:16:27 mglocker Exp $
.\"
-.Dd $Mdocdate: November 3 2007 $
+.Dd $Mdocdate: November 14 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,10 @@
.Fc
.Ft int
.Fn ieee80211_media2rate "int mword"
+.Ft int
+.Fn ieee80211_rate2plcp "int rate" "enum ieee80211_phymode mode"
+.Ft int
+.Fn ieee80211_plcp2rate "int plcp" "enum ieee80211_phymode mode"
.Sh DESCRIPTION
The
.Nm ieee80211
@@ -237,6 +242,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
+function 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 ,