ieee80211_node.h revision 1.23.4.1 1 1.23 dyoung /* $NetBSD: ieee80211_node.h,v 1.23.4.1 2008/02/22 16:50:25 skrll Exp $ */
2 1.1 dyoung /*-
3 1.1 dyoung * Copyright (c) 2001 Atsushi Onoe
4 1.23.4.1 skrll * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting
5 1.1 dyoung * All rights reserved.
6 1.1 dyoung *
7 1.1 dyoung * Redistribution and use in source and binary forms, with or without
8 1.1 dyoung * modification, are permitted provided that the following conditions
9 1.1 dyoung * are met:
10 1.1 dyoung * 1. Redistributions of source code must retain the above copyright
11 1.1 dyoung * notice, this list of conditions and the following disclaimer.
12 1.1 dyoung * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 dyoung * notice, this list of conditions and the following disclaimer in the
14 1.1 dyoung * documentation and/or other materials provided with the distribution.
15 1.1 dyoung *
16 1.1 dyoung * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 1.1 dyoung * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 1.1 dyoung * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 1.1 dyoung * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 1.1 dyoung * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 1.1 dyoung * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 1.1 dyoung * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 1.1 dyoung * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 1.1 dyoung * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 1.1 dyoung * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 1.1 dyoung *
27 1.23.4.1 skrll * $FreeBSD: src/sys/net80211/ieee80211_node.h,v 1.30 2007/11/02 05:22:25 sam Exp $
28 1.1 dyoung */
29 1.1 dyoung #ifndef _NET80211_IEEE80211_NODE_H_
30 1.1 dyoung #define _NET80211_IEEE80211_NODE_H_
31 1.1 dyoung
32 1.16 dyoung #include <net80211/ieee80211_netbsd.h>
33 1.16 dyoung #include <net80211/ieee80211_ioctl.h> /* for ieee80211_nodestats */
34 1.23.4.1 skrll #include <net80211/ieee80211_ht.h> /* for aggregation state */
35 1.16 dyoung
36 1.23 dyoung #ifdef _KERNEL
37 1.16 dyoung /*
38 1.16 dyoung * Each ieee80211com instance has a single timer that fires once a
39 1.16 dyoung * second. This is used to initiate various work depending on the
40 1.16 dyoung * state of the instance: scanning (passive or active), ``transition''
41 1.16 dyoung * (waiting for a response to a management frame when operating
42 1.16 dyoung * as a station), and node inactivity processing (when operating
43 1.16 dyoung * as an AP). For inactivity processing each node has a timeout
44 1.16 dyoung * set in it's ni_inact field that is decremented on each timeout
45 1.16 dyoung * and the node is reclaimed when the counter goes to zero. We
46 1.16 dyoung * use different inactivity timeout values depending on whether
47 1.16 dyoung * the node is associated and authorized (either by 802.1x or
48 1.16 dyoung * open/shared key authentication) or associated but yet to be
49 1.16 dyoung * authorized. The latter timeout is shorter to more aggressively
50 1.16 dyoung * reclaim nodes that leave part way through the 802.1x exchange.
51 1.16 dyoung */
52 1.16 dyoung #define IEEE80211_INACT_WAIT 15 /* inactivity interval (secs) */
53 1.16 dyoung #define IEEE80211_INACT_INIT (30/IEEE80211_INACT_WAIT) /* initial */
54 1.16 dyoung #define IEEE80211_INACT_AUTH (180/IEEE80211_INACT_WAIT) /* associated but not authorized */
55 1.16 dyoung #define IEEE80211_INACT_RUN (300/IEEE80211_INACT_WAIT) /* authorized */
56 1.16 dyoung #define IEEE80211_INACT_PROBE (30/IEEE80211_INACT_WAIT) /* probe */
57 1.16 dyoung #define IEEE80211_INACT_SCAN (300/IEEE80211_INACT_WAIT) /* scanned */
58 1.16 dyoung
59 1.23.4.1 skrll #define IEEE80211_TRANS_WAIT 2 /* mgt frame tx timer (secs) */
60 1.23.4.1 skrll
61 1.23.4.1 skrll /* threshold for aging overlapping non-ERP bss */
62 1.23.4.1 skrll #define IEEE80211_NONERP_PRESENT_AGE msecs_to_ticks(60*1000)
63 1.1 dyoung
64 1.1 dyoung #define IEEE80211_NODE_HASHSIZE 32
65 1.1 dyoung /* simple hash is enough for variation of macaddr */
66 1.1 dyoung #define IEEE80211_NODE_HASH(addr) \
67 1.23.4.1 skrll (((const uint8_t *)(addr))[IEEE80211_ADDR_LEN - 1] % \
68 1.16 dyoung IEEE80211_NODE_HASHSIZE)
69 1.1 dyoung
70 1.16 dyoung struct ieee80211_rsnparms {
71 1.23.4.1 skrll uint8_t rsn_mcastcipher; /* mcast/group cipher */
72 1.23.4.1 skrll uint8_t rsn_mcastkeylen; /* mcast key length */
73 1.23.4.1 skrll uint8_t rsn_ucastcipherset; /* unicast cipher set */
74 1.23.4.1 skrll uint8_t rsn_ucastcipher; /* selected unicast cipher */
75 1.23.4.1 skrll uint8_t rsn_ucastkeylen; /* unicast key length */
76 1.23.4.1 skrll uint8_t rsn_keymgmtset; /* key mangement algorithms */
77 1.23.4.1 skrll uint8_t rsn_keymgmt; /* selected key mgmt algo */
78 1.23.4.1 skrll uint16_t rsn_caps; /* capabilities */
79 1.1 dyoung };
80 1.1 dyoung
81 1.16 dyoung struct ieee80211_node_table;
82 1.16 dyoung struct ieee80211com;
83 1.14 dyoung
84 1.1 dyoung /*
85 1.1 dyoung * Node specific information. Note that drivers are expected
86 1.1 dyoung * to derive from this structure to add device-specific per-node
87 1.1 dyoung * state. This is done by overriding the ic_node_* methods in
88 1.1 dyoung * the ieee80211com structure.
89 1.1 dyoung */
90 1.1 dyoung struct ieee80211_node {
91 1.16 dyoung struct ieee80211com *ni_ic;
92 1.16 dyoung struct ieee80211_node_table *ni_table;
93 1.1 dyoung TAILQ_ENTRY(ieee80211_node) ni_list;
94 1.1 dyoung LIST_ENTRY(ieee80211_node) ni_hash;
95 1.1 dyoung u_int ni_refcnt;
96 1.8 dyoung u_int ni_scangen; /* gen# for timeout scan */
97 1.23.4.1 skrll uint8_t ni_authmode; /* authentication algorithm */
98 1.23.4.1 skrll uint8_t ni_ath_flags; /* Atheros feature flags */
99 1.23.4.1 skrll /* NB: These must have the same values as IEEE80211_ATHC_* */
100 1.23.4.1 skrll #define IEEE80211_NODE_TURBOP 0x0001 /* Turbo prime enable */
101 1.23.4.1 skrll #define IEEE80211_NODE_COMP 0x0002 /* Compresssion enable */
102 1.23.4.1 skrll #define IEEE80211_NODE_FF 0x0004 /* Fast Frame capable */
103 1.23.4.1 skrll #define IEEE80211_NODE_XR 0x0008 /* Atheros WME enable */
104 1.23.4.1 skrll #define IEEE80211_NODE_AR 0x0010 /* AR capable */
105 1.23.4.1 skrll #define IEEE80211_NODE_BOOST 0x0080
106 1.23.4.1 skrll #define IEEE80211_NODE_PSUPDATE 0x0200 /* power save state changed */
107 1.23.4.1 skrll #define IEEE80211_NODE_CHWUPDATE 0x0400 /* 11n channel width change */
108 1.23.4.1 skrll uint16_t ni_flags; /* special-purpose state */
109 1.16 dyoung #define IEEE80211_NODE_AUTH 0x0001 /* authorized for data */
110 1.16 dyoung #define IEEE80211_NODE_QOS 0x0002 /* QoS enabled */
111 1.16 dyoung #define IEEE80211_NODE_ERP 0x0004 /* ERP enabled */
112 1.16 dyoung /* NB: this must have the same value as IEEE80211_FC1_PWR_MGT */
113 1.16 dyoung #define IEEE80211_NODE_PWR_MGT 0x0010 /* power save mode enabled */
114 1.18 dyoung #define IEEE80211_NODE_AREF 0x0020 /* authentication ref held */
115 1.23.4.1 skrll #define IEEE80211_NODE_HT 0x0040 /* HT enabled */
116 1.23.4.1 skrll #define IEEE80211_NODE_HTCOMPAT 0x0080 /* HT setup w/ vendor OUI's */
117 1.23.4.1 skrll #define IEEE80211_NODE_AMPDU_RX 0x0400 /* AMPDU rx enabled */
118 1.23.4.1 skrll #define IEEE80211_NODE_AMPDU_TX 0x0800 /* AMPDU tx enabled */
119 1.23.4.1 skrll uint16_t ni_ath_defkeyix;/* Atheros def key index */
120 1.23.4.1 skrll uint16_t ni_associd; /* assoc response */
121 1.23.4.1 skrll uint16_t ni_txpower; /* current transmit power */
122 1.23.4.1 skrll uint16_t ni_vlan; /* vlan tag */
123 1.23.4.1 skrll uint32_t ni_jointime; /* time of join (secs) */
124 1.23.4.1 skrll uint32_t *ni_challenge; /* shared-key challenge */
125 1.23.4.1 skrll uint8_t *ni_wpa_ie; /* captured WPA ie */
126 1.23.4.1 skrll uint8_t *ni_rsn_ie; /* captured RSN ie */
127 1.23.4.1 skrll uint8_t *ni_wme_ie; /* captured WME ie */
128 1.23.4.1 skrll uint8_t *ni_ath_ie; /* captured Atheros ie */
129 1.23.4.1 skrll /* tx seq per-tid */
130 1.23.4.1 skrll uint16_t ni_txseqs[IEEE80211_TID_SIZE];
131 1.23.4.1 skrll /* rx seq previous per-tid*/
132 1.23.4.1 skrll uint16_t ni_rxseqs[IEEE80211_TID_SIZE];
133 1.23.4.1 skrll uint32_t ni_rxfragstamp; /* time stamp of last rx frag */
134 1.16 dyoung struct mbuf *ni_rxfrag[3]; /* rx frag reassembly */
135 1.16 dyoung struct ieee80211_rsnparms ni_rsn; /* RSN/WPA parameters */
136 1.16 dyoung struct ieee80211_key ni_ucastkey; /* unicast key */
137 1.1 dyoung
138 1.1 dyoung /* hardware */
139 1.23.4.1 skrll uint32_t ni_rstamp; /* recv timestamp */
140 1.23.4.1 skrll int8_t ni_rssi; /* recv ssi */
141 1.23.4.1 skrll int8_t ni_noise; /* noise floor */
142 1.1 dyoung
143 1.1 dyoung /* header */
144 1.23.4.1 skrll uint8_t ni_macaddr[IEEE80211_ADDR_LEN];
145 1.23.4.1 skrll uint8_t ni_bssid[IEEE80211_ADDR_LEN];
146 1.1 dyoung
147 1.1 dyoung /* beacon, probe response */
148 1.15 dyoung union {
149 1.23.4.1 skrll uint8_t data[8];
150 1.23.4.1 skrll uint64_t tsf;
151 1.16 dyoung } ni_tstamp; /* from last rcv'd beacon */
152 1.23.4.1 skrll uint16_t ni_intval; /* beacon interval */
153 1.23.4.1 skrll uint16_t ni_capinfo; /* capabilities */
154 1.23.4.1 skrll uint8_t ni_esslen;
155 1.23.4.1 skrll uint8_t ni_essid[IEEE80211_NWID_LEN];
156 1.1 dyoung struct ieee80211_rateset ni_rates; /* negotiated rate set */
157 1.23.4.1 skrll struct ieee80211_channel *ni_chan;
158 1.23.4.1 skrll uint16_t ni_fhdwell; /* FH only */
159 1.23.4.1 skrll uint8_t ni_fhindex; /* FH only */
160 1.23.4.1 skrll uint8_t ni_erp; /* ERP from beacon/probe resp */
161 1.23.4.1 skrll uint16_t ni_timoff; /* byte offset to TIM ie */
162 1.23.4.1 skrll uint8_t ni_dtim_period; /* DTIM period */
163 1.23.4.1 skrll uint8_t ni_dtim_count; /* DTIM count for last bcn */
164 1.23.4.1 skrll
165 1.23.4.1 skrll /* 11n state */
166 1.23.4.1 skrll uint8_t *ni_htcap_ie; /* captured HTCAP ie */
167 1.23.4.1 skrll uint16_t ni_htcap; /* HT capabilities */
168 1.23.4.1 skrll uint8_t ni_htparam; /* HT params */
169 1.23.4.1 skrll uint8_t ni_htctlchan; /* HT control channel */
170 1.23.4.1 skrll uint8_t ni_ht2ndchan; /* HT 2nd channel */
171 1.23.4.1 skrll uint8_t ni_htopmode; /* HT operating mode */
172 1.23.4.1 skrll uint8_t ni_htstbc; /* HT */
173 1.23.4.1 skrll uint8_t ni_reqcw; /* requested tx channel width */
174 1.23.4.1 skrll uint8_t ni_chw; /* negotiated channel width */
175 1.23.4.1 skrll struct ieee80211_htrateset ni_htrates; /* negotiated ht rate set */
176 1.23.4.1 skrll struct ieee80211_tx_ampdu ni_tx_ampdu[WME_NUM_AC];
177 1.23.4.1 skrll struct ieee80211_rx_ampdu ni_rx_ampdu[WME_NUM_TID];
178 1.5 dyoung
179 1.1 dyoung /* others */
180 1.1 dyoung int ni_fails; /* failure count to associate */
181 1.16 dyoung short ni_inact; /* inactivity mark count */
182 1.16 dyoung short ni_inact_reload;/* inactivity reload value */
183 1.1 dyoung int ni_txrate; /* index to ni_rates[] */
184 1.16 dyoung struct ifqueue ni_savedq; /* ps-poll queue */
185 1.16 dyoung struct ieee80211_nodestats ni_stats; /* per-node statistics */
186 1.1 dyoung };
187 1.16 dyoung MALLOC_DECLARE(M_80211_NODE);
188 1.1 dyoung
189 1.23.4.1 skrll #define IEEE80211_NODE_ATH (IEEE80211_NODE_FF | IEEE80211_NODE_TURBOP)
190 1.23.4.1 skrll #define IEEE80211_NODE_AMPDU \
191 1.23.4.1 skrll (IEEE80211_NODE_AMPDU_RX | IEEE80211_NODE_AMPDU_TX)
192 1.23.4.1 skrll
193 1.16 dyoung #define IEEE80211_NODE_AID(ni) IEEE80211_AID(ni->ni_associd)
194 1.4 dyoung
195 1.16 dyoung #define IEEE80211_NODE_STAT(ni,stat) (ni->ni_stats.ns_##stat++)
196 1.16 dyoung #define IEEE80211_NODE_STAT_ADD(ni,stat,v) (ni->ni_stats.ns_##stat += v)
197 1.16 dyoung #define IEEE80211_NODE_STAT_SET(ni,stat,v) (ni->ni_stats.ns_##stat = v)
198 1.4 dyoung
199 1.1 dyoung static __inline struct ieee80211_node *
200 1.1 dyoung ieee80211_ref_node(struct ieee80211_node *ni)
201 1.1 dyoung {
202 1.2 dyoung ieee80211_node_incref(ni);
203 1.1 dyoung return ni;
204 1.1 dyoung }
205 1.1 dyoung
206 1.1 dyoung static __inline void
207 1.1 dyoung ieee80211_unref_node(struct ieee80211_node **ni)
208 1.1 dyoung {
209 1.4 dyoung ieee80211_node_decref(*ni);
210 1.1 dyoung *ni = NULL; /* guard against use */
211 1.1 dyoung }
212 1.8 dyoung
213 1.1 dyoung struct ieee80211com;
214 1.1 dyoung
215 1.16 dyoung void ieee80211_node_attach(struct ieee80211com *);
216 1.16 dyoung void ieee80211_node_lateattach(struct ieee80211com *);
217 1.16 dyoung void ieee80211_node_detach(struct ieee80211com *);
218 1.16 dyoung
219 1.16 dyoung static __inline int
220 1.16 dyoung ieee80211_node_is_authorized(const struct ieee80211_node *ni)
221 1.16 dyoung {
222 1.16 dyoung return (ni->ni_flags & IEEE80211_NODE_AUTH);
223 1.16 dyoung }
224 1.16 dyoung
225 1.19 skrll void ieee80211_node_authorize(struct ieee80211_node *);
226 1.19 skrll void ieee80211_node_unauthorize(struct ieee80211_node *);
227 1.16 dyoung
228 1.22 tacha void ieee80211_probe_curchan(struct ieee80211com *, int);
229 1.16 dyoung void ieee80211_create_ibss(struct ieee80211com*, struct ieee80211_channel *);
230 1.16 dyoung void ieee80211_reset_bss(struct ieee80211com *);
231 1.23.4.1 skrll void ieee80211_setbsschan(struct ieee80211com *, struct ieee80211_channel *);
232 1.19 skrll int ieee80211_ibss_merge(struct ieee80211_node *);
233 1.23.4.1 skrll struct ieee80211_scan_entry;
234 1.23.4.1 skrll int ieee80211_sta_join(struct ieee80211com *,
235 1.23.4.1 skrll const struct ieee80211_scan_entry *);
236 1.16 dyoung void ieee80211_sta_leave(struct ieee80211com *, struct ieee80211_node *);
237 1.16 dyoung
238 1.16 dyoung /*
239 1.16 dyoung * Table of ieee80211_node instances. Each ieee80211com
240 1.16 dyoung * has at least one for holding the scan candidates.
241 1.16 dyoung * When operating as an access point or in ibss mode there
242 1.16 dyoung * is a second table for associated stations or neighbors.
243 1.16 dyoung */
244 1.16 dyoung struct ieee80211_node_table {
245 1.16 dyoung struct ieee80211com *nt_ic; /* back reference */
246 1.16 dyoung ieee80211_node_lock_t nt_nodelock; /* on node table */
247 1.16 dyoung TAILQ_HEAD(, ieee80211_node) nt_node; /* information of all nodes */
248 1.16 dyoung LIST_HEAD(, ieee80211_node) nt_hash[IEEE80211_NODE_HASHSIZE];
249 1.23.4.1 skrll struct ieee80211_node **nt_keyixmap; /* key ix -> node map */
250 1.23.4.1 skrll int nt_keyixmax; /* keyixmap size */
251 1.16 dyoung const char *nt_name; /* for debugging */
252 1.16 dyoung ieee80211_scan_lock_t nt_scanlock; /* on nt_scangen */
253 1.16 dyoung u_int nt_scangen; /* gen# for timeout scan */
254 1.16 dyoung int nt_inact_init; /* initial node inact setting */
255 1.16 dyoung };
256 1.9 dyoung
257 1.16 dyoung struct ieee80211_node *ieee80211_alloc_node(
258 1.23.4.1 skrll struct ieee80211_node_table *, const uint8_t *);
259 1.19 skrll struct ieee80211_node *ieee80211_tmp_node(struct ieee80211com *,
260 1.23.4.1 skrll const uint8_t *macaddr);
261 1.16 dyoung struct ieee80211_node *ieee80211_dup_bss(struct ieee80211_node_table *,
262 1.23.4.1 skrll const uint8_t *);
263 1.16 dyoung #ifdef IEEE80211_DEBUG_REFCNT
264 1.16 dyoung void ieee80211_free_node_debug(struct ieee80211_node *,
265 1.16 dyoung const char *func, int line);
266 1.23.4.1 skrll struct ieee80211_node *ieee80211_find_node_debug(struct ieee80211_node_table *,
267 1.23.4.1 skrll const uint8_t *,
268 1.23.4.1 skrll const char *func, int line);
269 1.23.4.1 skrll struct ieee80211_node * ieee80211_find_rxnode_debug(struct ieee80211com *,
270 1.23.4.1 skrll const struct ieee80211_frame_min *,
271 1.16 dyoung const char *func, int line);
272 1.23.4.1 skrll struct ieee80211_node * ieee80211_find_rxnode_withkey_debug(
273 1.23.4.1 skrll struct ieee80211com *,
274 1.23.4.1 skrll const struct ieee80211_frame_min *, uint16_t keyix,
275 1.16 dyoung const char *func, int line);
276 1.19 skrll struct ieee80211_node * ieee80211_find_rxnode_withkey_debug(
277 1.19 skrll struct ieee80211com *,
278 1.23.4.1 skrll const struct ieee80211_frame_min *, uint16_t keyix,
279 1.19 skrll const char *func, int line);
280 1.23.4.1 skrll struct ieee80211_node *ieee80211_find_txnode_debug(struct ieee80211com *,
281 1.23.4.1 skrll const uint8_t *,
282 1.16 dyoung const char *func, int line);
283 1.16 dyoung struct ieee80211_node *ieee80211_find_node_with_ssid_debug(
284 1.23.4.1 skrll struct ieee80211_node_table *, const uint8_t *macaddr,
285 1.23.4.1 skrll u_int ssidlen, const uint8_t *ssid,
286 1.16 dyoung const char *func, int line);
287 1.16 dyoung #define ieee80211_free_node(ni) \
288 1.16 dyoung ieee80211_free_node_debug(ni, __func__, __LINE__)
289 1.16 dyoung #define ieee80211_find_node(nt, mac) \
290 1.16 dyoung ieee80211_find_node_debug(nt, mac, __func__, __LINE__)
291 1.16 dyoung #define ieee80211_find_rxnode(nt, wh) \
292 1.16 dyoung ieee80211_find_rxnode_debug(nt, wh, __func__, __LINE__)
293 1.19 skrll #define ieee80211_find_rxnode_withkey(nt, wh, keyix) \
294 1.19 skrll ieee80211_find_rxnode_withkey_debug(nt, wh, keyix, __func__, __LINE__)
295 1.16 dyoung #define ieee80211_find_txnode(nt, mac) \
296 1.16 dyoung ieee80211_find_txnode_debug(nt, mac, __func__, __LINE__)
297 1.16 dyoung #define ieee80211_find_node_with_ssid(nt, mac, sl, ss) \
298 1.16 dyoung ieee80211_find_node_with_ssid_debug(nt, mac, sl, ss, __func__, __LINE__)
299 1.16 dyoung #else
300 1.16 dyoung void ieee80211_free_node(struct ieee80211_node *);
301 1.23.4.1 skrll struct ieee80211_node *ieee80211_find_node(struct ieee80211_node_table *,
302 1.23.4.1 skrll const uint8_t *);
303 1.23.4.1 skrll struct ieee80211_node * ieee80211_find_rxnode(struct ieee80211com *,
304 1.23.4.1 skrll const struct ieee80211_frame_min *);
305 1.19 skrll struct ieee80211_node * ieee80211_find_rxnode_withkey(struct ieee80211com *,
306 1.23.4.1 skrll const struct ieee80211_frame_min *, uint16_t keyix);
307 1.23.4.1 skrll struct ieee80211_node *ieee80211_find_txnode(struct ieee80211com *,
308 1.23.4.1 skrll const uint8_t *);
309 1.16 dyoung struct ieee80211_node *ieee80211_find_node_with_ssid(
310 1.23.4.1 skrll struct ieee80211_node_table *, const uint8_t *macaddr,
311 1.23.4.1 skrll u_int ssidlen, const uint8_t *ssid);
312 1.16 dyoung #endif
313 1.19 skrll int ieee80211_node_delucastkey(struct ieee80211_node *);
314 1.23.4.1 skrll void ieee80211_node_timeout(void *arg);
315 1.11 mycroft
316 1.16 dyoung struct ieee80211_node *ieee80211_refine_node_for_beacon(
317 1.16 dyoung struct ieee80211com *, struct ieee80211_node *,
318 1.16 dyoung struct ieee80211_channel *, const u_int8_t *ssid);
319 1.1 dyoung typedef void ieee80211_iter_func(void *, struct ieee80211_node *);
320 1.16 dyoung void ieee80211_iterate_nodes(struct ieee80211_node_table *,
321 1.1 dyoung ieee80211_iter_func *, void *);
322 1.1 dyoung
323 1.16 dyoung void ieee80211_dump_node(struct ieee80211_node_table *,
324 1.5 dyoung struct ieee80211_node *);
325 1.16 dyoung void ieee80211_dump_nodes(struct ieee80211_node_table *);
326 1.11 mycroft
327 1.23.4.1 skrll void ieee80211_notify_erp(struct ieee80211com *);
328 1.19 skrll
329 1.23.4.1 skrll struct ieee80211_node *ieee80211_fakeup_adhoc_node(
330 1.23.4.1 skrll struct ieee80211_node_table *, const uint8_t macaddr[]);
331 1.23.4.1 skrll struct ieee80211_scanparams;
332 1.23.4.1 skrll void ieee80211_init_neighbor(struct ieee80211_node *,
333 1.20 dyoung const struct ieee80211_frame *,
334 1.23.4.1 skrll const struct ieee80211_scanparams *);
335 1.19 skrll struct ieee80211_node *ieee80211_add_neighbor(struct ieee80211com *,
336 1.19 skrll const struct ieee80211_frame *,
337 1.19 skrll const struct ieee80211_scanparams *);
338 1.23.4.1 skrll void ieee80211_node_join(struct ieee80211com *, struct ieee80211_node *,int);
339 1.23.4.1 skrll void ieee80211_node_leave(struct ieee80211com *, struct ieee80211_node *);
340 1.23.4.1 skrll int8_t ieee80211_getrssi(struct ieee80211com *);
341 1.23.4.1 skrll void ieee80211_getsignal(struct ieee80211com *, int8_t *, int8_t *);
342 1.23 dyoung #endif /* _KERNEL */
343 1.21 elad #endif /* !_NET80211_IEEE80211_NODE_H_ */
344