1 .\" $NetBSD: ieee80211_output.9,v 1.3 2006/09/12 11:05:23 pooka Exp $
3 .\" Copyright (c) 2004 Bruce M. Simpson <bms@spc.org>
4 .\" Copyright (c) 2004 Darron Broad <darron@kewl.org>
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" $FreeBSD: src/share/man/man9/ieee80211_output.9,v 1.2 2004/07/07 12:59:39 ru Exp $
30 .Dd September 12, 2006
31 .Dt IEEE80211_OUTPUT 9
34 .Nm ieee80211_encap , ieee80211_add_rates ,
35 .Nm ieee80211_add_xrates , ieee80211_send_mgmt
36 .Nd software 802.11 stack output functions
38 .In net80211/ieee80211_var.h
39 .In net80211/ieee80211_proto.h
42 .Fa "struct ieee80211com *ic" "struct mbuf *m" "struct ieee80211_node *ni"
45 .Fn ieee80211_add_rates "u_int8_t *frm" "const struct ieee80211_rateset *rs"
47 .Fn ieee80211_add_xrates "u_int8_t *frm" "const struct ieee80211_rateset *rs"
49 .Fo ieee80211_send_mgmt
50 .Fa "struct ieee80211com *ic" "struct ieee80211_node *ni" "int type" "int arg"
53 These functions handle the encapsulation and transmission of 802.11 frames
54 within the software 802.11 stack.
58 function encapsulates an outbound data frame contained within the
65 is a reference to the destination node.
67 If the function is successful, the mbuf chain is updated with the
68 802.11 frame header prepended, and a pointer to the head of the chain
76 .Fn ieee80211_add_rates
77 utility function is used to add the rate set element
81 A pointer to the location in the buffer after the addition of the rate set
83 It is typically used when constructing management frames from within the
84 software 802.11 stack.
88 .Fn ieee80211_add_xrates
89 utility function is used to add the extended rate set element
93 A pointer to the location in the buffer after the addition of the rate set
95 It is typically used when constructing management frames from within the
96 software 802.11 stack in 802.11g mode.
100 .Fn ieee80211_send_mgmt
101 function transmits a management frame on the interface
103 to the destination node
110 specifies either a sequence number for authentication operations,
111 a status code for [re]association operations,
112 or a reason for deauthentication and deassociation operations.
116 have their reference count incremented to reflect their use for an
117 indeterminate amount of time.
118 This reference is freed when the function returns.
120 The function returns 0 if successful; if temporary buffer space is not
121 available, the function returns
129 series of functions first appeared in
131 and were later ported to
135 This man page was written by
136 .An Bruce M. Simpson Aq bms@FreeBSD.org
138 .An Darron Broad Aq darron@kewl.org .