2 .\" Copyright (c) 2004 Bruce M. Simpson <bms@spc.org>
3 .\" Copyright (c) 2004 Darron Broad <darron@kewl.org>
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" $DragonFly: src/share/man/man9/ieee80211_output.9,v 1.7 2007/04/09 21:20:37 swildner Exp $
29 .\" $Id: ieee80211_output.9,v 1.2 2004/07/07 12:59:39 ru Exp $
32 .Dt IEEE80211_OUTPUT 9
36 .Nm ieee80211_send_mgmt ,
37 .Nm ieee80211_add_ssid ,
38 .Nm ieee80211_add_rates ,
39 .Nm ieee80211_add_xrates
40 .Nd software 802.11 stack output functions
42 .In netproto/802_11/ieee80211_var.h
43 .In netproto/802_11/ieee80211_proto.h
46 .Fa "struct ieee80211com *ic" "struct mbuf *m" "struct ieee80211_node *ni"
49 .Fo ieee80211_send_mgmt
50 .Fa "struct ieee80211com *ic" "struct ieee80211_node *ni" "int type" "int arg"
53 .Fn ieee80211_add_ssid "uint8_t *frm" "const uint8_t *ssid" "int ssid_len"
55 .Fn ieee80211_add_rates "uint8_t *frm" "const struct ieee80211_rateset *rs"
57 .Fn ieee80211_add_xrates "uint8_t *frm" "const struct ieee80211_rateset *rs"
59 These functions handle the encapsulation and transmission of 802.11 frames
60 within the software 802.11 stack.
64 function encapsulates an outbound data frame contained within the
71 is a reference to the destination node.
75 .Fn ieee80211_send_mgmt
76 function transmits a management frame on the interface
78 to the destination node
86 and is typically the non-NULL return value of
87 .Xr ieee80211_find_txnode 9 .
88 This function is typically called through
89 .Fn IEEE80211_SEND_MGMT ,
90 which is a wrapper for the invocation of
95 specifies either a sequence number for authentication operations,
96 a status code for (re)association operations,
97 or a reason for deauthentication and deassociation operations.
101 will have its reference count incremented to reflect its use for an
102 indeterminate amount of time.
103 This reference is freed either in
106 during the interrupt service routine for transmission completing
107 if certain transmission rate control algorithms are used.
111 .Fn ieee80211_add_ssid
112 utility function is used to add the service set ID element
118 argument indicates the length of the
124 .Fn ieee80211_add_rates
125 utility function is used to add the rate set element
132 .Fn ieee80211_add_xrates
133 utility function is used to add the extended rate set element
140 .Fn ieee80211_add_ssid ,
141 .Fn ieee80211_add_rates
143 .Fn ieee80211_add_xrates
144 are typically used when constructing management frames from within the
145 software 802.11 stack in 802.11g mode.
153 is updated with the 802.11 frame header prepended,
154 and a pointer to the head of the updated mbuf chain is returned.
164 .Fn ieee80211_send_mgmt
165 returns 0 if successful;
166 if temporary buffer space is not available,
172 .Fn ieee80211_add_ssid ,
173 .Fn ieee80211_add_rates
175 .Fn ieee80211_add_xrates
176 return a pointer to the location in the
178 after the addition of the second argument.
186 series of functions first appeared in
188 and were later ported to
192 This man page was written by
193 .An Bruce M. Simpson Aq bms@FreeBSD.org
195 .An Darron Broad Aq darron@kewl.org .