FreeBSD kernel WLAN code
ieee80211_node.h
Go to the documentation of this file.
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2001 Atsushi Onoe
5 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD$
29 */
30#ifndef _NET80211_IEEE80211_NODE_H_
31#define _NET80211_IEEE80211_NODE_H_
32
33#include <net80211/ieee80211_ioctl.h> /* for ieee80211_nodestats */
34#include <net80211/ieee80211_ht.h> /* for aggregation state */
35
36/*
37 * Each ieee80211com instance has a single timer that fires every
38 * IEEE80211_INACT_WAIT seconds to handle "inactivity processing".
39 * This is used to do node inactivity processing when operating
40 * as an AP, adhoc or mesh mode. For inactivity processing each node
41 * has a timeout set in its ni_inact field that is decremented
42 * on each timeout and the node is reclaimed when the counter goes
43 * to zero. We use different inactivity timeout values depending
44 * on whether the node is associated and authorized (either by
45 * 802.1x or open/shared key authentication) or associated but yet
46 * to be authorized. The latter timeout is shorter to more aggressively
47 * reclaim nodes that leave part way through the 802.1x exchange.
48 */
49#define IEEE80211_INACT_WAIT 15 /* inactivity interval (secs) */
50#define IEEE80211_INACT_INIT (30/IEEE80211_INACT_WAIT) /* initial */
51#define IEEE80211_INACT_AUTH (180/IEEE80211_INACT_WAIT) /* associated but not authorized */
52#define IEEE80211_INACT_RUN (300/IEEE80211_INACT_WAIT) /* authorized */
53#define IEEE80211_INACT_PROBE (30/IEEE80211_INACT_WAIT) /* probe */
54#define IEEE80211_INACT_SCAN (300/IEEE80211_INACT_WAIT) /* scanned */
55
56#define IEEE80211_TRANS_WAIT 2 /* mgt frame tx timer (secs) */
57
58/* threshold for aging overlapping non-ERP bss */
59#define IEEE80211_NONERP_PRESENT_AGE msecs_to_ticks(60*1000)
60
61#define IEEE80211_NODE_HASHSIZE 32 /* NB: hash size must be pow2 */
62/* simple hash is enough for variation of macaddr */
63#define IEEE80211_NODE_HASH(ic, addr) \
64 (((const uint8_t *)(addr))[IEEE80211_ADDR_LEN - 1] % \
65 IEEE80211_NODE_HASHSIZE)
66
68struct ieee80211com;
69struct ieee80211vap;
71
72/*
73 * Information element (IE) ``blob''. We use this structure
74 * to capture management frame payloads that need to be
75 * retained. Information elements within the payload that
76 * we need to consult have references recorded.
77 */
79 /* the following are either NULL or point within data */
80 uint8_t *wpa_ie; /* captured WPA ie */
81 uint8_t *rsn_ie; /* captured RSN ie */
82 uint8_t *wme_ie; /* captured WME ie */
83 uint8_t *ath_ie; /* captured Atheros ie */
84 uint8_t *htcap_ie; /* captured HTCAP ie */
85 uint8_t *htinfo_ie; /* captured HTINFO ie */
86 uint8_t *tdma_ie; /* captured TDMA ie */
87 uint8_t *meshid_ie; /* captured MESH ID ie */
88 uint8_t *vhtcap_ie; /* captured VHTCAP ie */
89 uint8_t *vhtopmode_ie; /* captured VHTOPMODE ie */
90 uint8_t *vhtpwrenv_ie; /* captured VHTPWRENV ie */
91 uint8_t *apchanrep_ie; /* captured APCHANREP ie */
92 uint8_t *bssload_ie; /* captured BSSLOAD ie */
93 uint8_t *spare[4];
94 /* NB: these must be the last members of this structure */
95 uint8_t *data; /* frame data > 802.11 header */
96 int len; /* data size in bytes */
97};
98
99/*
100 * 802.11s (Mesh) Peer Link FSM state.
101 */
104 IEEE80211_NODE_MESH_OPENSNT = 1, /* open frame sent */
105 IEEE80211_NODE_MESH_OPENRCV = 2, /* open frame received */
106 IEEE80211_NODE_MESH_CONFIRMRCV = 3, /* confirm frame received */
107 IEEE80211_NODE_MESH_ESTABLISHED = 4, /* link established */
108 IEEE80211_NODE_MESH_HOLDING = 5, /* link closing */
109};
110#define IEEE80211_MESH_MLSTATE_BITS \
111 "\20\1IDLE\2OPENSNT\2OPENRCV\3CONFIRMRCV\4ESTABLISHED\5HOLDING"
112
113/*
114 * Node specific information. Note that drivers are expected
115 * to derive from this structure to add device-specific per-node
116 * state. This is done by overriding the ic_node_* methods in
117 * the ieee80211com structure.
118 */
120 struct ieee80211vap *ni_vap; /* associated vap */
121 struct ieee80211com *ni_ic; /* copy from vap to save deref*/
122 struct ieee80211_node_table *ni_table; /* NB: may be NULL */
123 TAILQ_ENTRY(ieee80211_node) ni_list; /* list of all nodes */
124 LIST_ENTRY(ieee80211_node) ni_hash; /* hash collision list */
125 u_int ni_refcnt; /* count of held references */
126 u_int ni_flags;
127#define IEEE80211_NODE_AUTH 0x000001 /* authorized for data */
128#define IEEE80211_NODE_QOS 0x000002 /* QoS enabled */
129#define IEEE80211_NODE_ERP 0x000004 /* ERP enabled */
130/* NB: this must have the same value as IEEE80211_FC1_PWR_MGT */
131#define IEEE80211_NODE_PWR_MGT 0x000010 /* power save mode enabled */
132#define IEEE80211_NODE_AREF 0x000020 /* authentication ref held */
133#define IEEE80211_NODE_HT 0x000040 /* HT enabled */
134#define IEEE80211_NODE_HTCOMPAT 0x000080 /* HT setup w/ vendor OUI's */
135#define IEEE80211_NODE_WPS 0x000100 /* WPS association */
136#define IEEE80211_NODE_TSN 0x000200 /* TSN association */
137#define IEEE80211_NODE_AMPDU_RX 0x000400 /* AMPDU rx enabled */
138#define IEEE80211_NODE_AMPDU_TX 0x000800 /* AMPDU tx enabled */
139#define IEEE80211_NODE_MIMO_PS 0x001000 /* MIMO power save enabled */
140#define IEEE80211_NODE_MIMO_RTS 0x002000 /* send RTS in MIMO PS */
141#define IEEE80211_NODE_RIFS 0x004000 /* RIFS enabled */
142#define IEEE80211_NODE_SGI20 0x008000 /* Short GI in HT20 enabled */
143#define IEEE80211_NODE_SGI40 0x010000 /* Short GI in HT40 enabled */
144#define IEEE80211_NODE_ASSOCID 0x020000 /* xmit requires associd */
145#define IEEE80211_NODE_AMSDU_RX 0x040000 /* AMSDU rx enabled */
146#define IEEE80211_NODE_AMSDU_TX 0x080000 /* AMSDU tx enabled */
147#define IEEE80211_NODE_VHT 0x100000 /* VHT enabled */
148#define IEEE80211_NODE_LDPC 0x200000 /* LDPC enabled */
149#define IEEE80211_NODE_UAPSD 0x400000 /* U-APSD power save enabled */
150 uint16_t ni_associd; /* association ID */
151 uint16_t ni_vlan; /* vlan tag */
152 uint16_t ni_txpower; /* current transmit power */
153 uint8_t ni_authmode; /* authentication algorithm */
154 uint8_t ni_ath_flags; /* Atheros feature flags */
155 /* NB: These must have the same values as IEEE80211_ATHC_* */
156#define IEEE80211_NODE_TURBOP 0x0001 /* Turbo prime enable */
157#define IEEE80211_NODE_COMP 0x0002 /* Compresssion enable */
158#define IEEE80211_NODE_FF 0x0004 /* Fast Frame capable */
159#define IEEE80211_NODE_XR 0x0008 /* Atheros WME enable */
160#define IEEE80211_NODE_AR 0x0010 /* AR capable */
161#define IEEE80211_NODE_BOOST 0x0080 /* Dynamic Turbo boosted */
162 uint16_t ni_ath_defkeyix;/* Atheros def key index */
164 uint32_t ni_jointime; /* time of join (secs) */
165 uint32_t *ni_challenge; /* shared-key challenge */
166 struct ieee80211_ies ni_ies; /* captured ie's */
167 /* tx seq per-tid */
169 /* rx seq previous per-tid*/
171 uint32_t ni_rxfragstamp; /* time stamp of last rx frag */
172 struct mbuf *ni_rxfrag[3]; /* rx frag reassembly */
173 struct ieee80211_key ni_ucastkey; /* unicast key */
174
175 /* hardware */
176 uint32_t ni_avgrssi; /* recv ssi state */
177 int8_t ni_noise; /* noise floor */
178
179 /* mimo statistics */
185
186 /* header */
189
190 /* beacon, probe response */
191 union {
192 uint8_t data[8];
193 u_int64_t tsf;
194 } ni_tstamp; /* from last rcv'd beacon */
195 uint16_t ni_intval; /* beacon interval */
196 uint16_t ni_capinfo; /* capabilities */
197 uint8_t ni_esslen;
199 struct ieee80211_rateset ni_rates; /* negotiated rate set */
201 uint16_t ni_fhdwell; /* FH only */
202 uint8_t ni_fhindex; /* FH only */
203 uint16_t ni_erp; /* ERP from beacon/probe resp */
204 uint16_t ni_timoff; /* byte offset to TIM ie */
205 uint8_t ni_dtim_period; /* DTIM period */
206 uint8_t ni_dtim_count; /* DTIM count for last bcn */
207
208 /* 11s state */
211 enum ieee80211_mesh_mlstate ni_mlstate; /* peering management state */
212 uint16_t ni_mllid; /* link local ID */
213 uint16_t ni_mlpid; /* link peer ID */
214 struct callout ni_mltimer; /* link mesh timer */
215 uint8_t ni_mlrcnt; /* link mesh retry counter */
216 uint8_t ni_mltval; /* link mesh timer value */
217 struct callout ni_mlhtimer; /* link mesh backoff timer */
218 uint8_t ni_mlhcnt; /* link mesh holding counter */
219
220 /* 11n state */
221 uint16_t ni_htcap; /* HT capabilities */
222 uint8_t ni_htparam; /* HT params */
223 uint8_t ni_htctlchan; /* HT control channel */
224 uint8_t ni_ht2ndchan; /* HT 2nd channel */
225 uint8_t ni_htopmode; /* HT operating mode */
226 uint8_t ni_htstbc; /* HT */
227 uint8_t ni_chw; /* negotiated channel width */
228 struct ieee80211_htrateset ni_htrates; /* negotiated ht rate set */
231
232 /* VHT state */
233 uint32_t ni_vhtcap;
235 uint16_t ni_vht_pad2;
237 uint8_t ni_vht_chan1; /* 20/40/80/160 - VHT chan1 */
238 uint8_t ni_vht_chan2; /* 80+80 - VHT chan2 */
239 uint8_t ni_vht_chanwidth; /* IEEE80211_VHT_CHANWIDTH_ */
240 uint8_t ni_vht_pad1;
241 uint32_t ni_vht_spare[8];
242
243 /* fast-frames state */
244 struct mbuf * ni_tx_superg[WME_NUM_TID];
245
246 /* others */
247 short ni_inact; /* inactivity mark count */
248 short ni_inact_reload;/* inactivity reload value */
249 int ni_txrate; /* legacy rate/MCS */
250 struct ieee80211_psq ni_psq; /* power save queue */
251 struct ieee80211_nodestats ni_stats; /* per-node statistics */
252
253 struct ieee80211vap *ni_wdsvap; /* associated WDS vap */
254 void *ni_rctls; /* private ratectl state */
255
256 /* quiet time IE state for the given node */
257 uint32_t ni_quiet_ie_set; /* Quiet time IE was seen */
258 struct ieee80211_quiet_ie ni_quiet_ie; /* last seen quiet IE */
259
260 /* U-APSD */
261 uint8_t ni_uapsd; /* U-APSD per-node flags matching WMM STA QoS Info field */
262
263 void *ni_drv_data; /* driver specific */
264
265 uint64_t ni_spare[3];
266};
267MALLOC_DECLARE(M_80211_NODE);
268MALLOC_DECLARE(M_80211_NODE_IE);
269
270#define IEEE80211_NODE_ATH (IEEE80211_NODE_FF | IEEE80211_NODE_TURBOP)
271#define IEEE80211_NODE_AMPDU \
272 (IEEE80211_NODE_AMPDU_RX | IEEE80211_NODE_AMPDU_TX)
273#define IEEE80211_NODE_AMSDU \
274 (IEEE80211_NODE_AMSDU_RX | IEEE80211_NODE_AMSDU_TX)
275#define IEEE80211_NODE_HT_ALL \
276 (IEEE80211_NODE_HT | IEEE80211_NODE_HTCOMPAT | \
277 IEEE80211_NODE_AMPDU | IEEE80211_NODE_AMSDU | \
278 IEEE80211_NODE_MIMO_PS | IEEE80211_NODE_MIMO_RTS | \
279 IEEE80211_NODE_RIFS | IEEE80211_NODE_SGI20 | IEEE80211_NODE_SGI40)
280
281#define IEEE80211_NODE_BITS \
282 "\20\1AUTH\2QOS\3ERP\5PWR_MGT\6AREF\7HT\10HTCOMPAT\11WPS\12TSN" \
283 "\13AMPDU_RX\14AMPDU_TX\15MIMO_PS\16MIMO_RTS\17RIFS\20SGI20\21SGI40" \
284 "\22ASSOCID"
285
286#define IEEE80211_NODE_AID(ni) IEEE80211_AID(ni->ni_associd)
287
288#define IEEE80211_NODE_STAT(ni,stat) (ni->ni_stats.ns_##stat++)
289#define IEEE80211_NODE_STAT_ADD(ni,stat,v) (ni->ni_stats.ns_##stat += v)
290#define IEEE80211_NODE_STAT_SET(ni,stat,v) (ni->ni_stats.ns_##stat = v)
291
292/*
293 * Filtered rssi calculation support. The receive rssi is maintained
294 * as an average over the last 10 frames received using a low pass filter
295 * (all frames for now, possibly need to be more selective). Calculations
296 * are designed such that a good compiler can optimize them. The avg
297 * rssi state should be initialized to IEEE80211_RSSI_DUMMY_MARKER and
298 * each sample incorporated with IEEE80211_RSSI_LPF. Use IEEE80211_RSSI_GET
299 * to extract the current value.
300 *
301 * Note that we assume rssi data are in the range [-127..127] and we
302 * discard values <-20. This is consistent with assumptions throughout
303 * net80211 that signal strength data are in .5 dBm units relative to
304 * the current noise floor (linear, not log).
305 */
306#define IEEE80211_RSSI_LPF_LEN 10
307#define IEEE80211_RSSI_DUMMY_MARKER 127
308/* NB: pow2 to optimize out * and / */
309#define IEEE80211_RSSI_EP_MULTIPLIER (1<<7)
310#define IEEE80211_RSSI_IN(x) ((x) * IEEE80211_RSSI_EP_MULTIPLIER)
311#define _IEEE80211_RSSI_LPF(x, y, len) \
312 (((x) != IEEE80211_RSSI_DUMMY_MARKER) ? (((x) * ((len) - 1) + (y)) / (len)) : (y))
313#define IEEE80211_RSSI_LPF(x, y) do { \
314 if ((y) >= -20) { \
315 x = _IEEE80211_RSSI_LPF((x), IEEE80211_RSSI_IN((y)), \
316 IEEE80211_RSSI_LPF_LEN); \
317 } \
318} while (0)
319#define IEEE80211_RSSI_EP_RND(x, mul) \
320 ((((x) % (mul)) >= ((mul)/2)) ? ((x) + ((mul) - 1)) / (mul) : (x)/(mul))
321#define IEEE80211_RSSI_GET(x) \
322 IEEE80211_RSSI_EP_RND(x, IEEE80211_RSSI_EP_MULTIPLIER)
323
324static __inline struct ieee80211_node *
326{
328 return ni;
329}
330
331static __inline void
333{
335 *ni = NULL; /* guard against use */
336}
337
344
345static __inline int
347{
348 return (ni->ni_flags & IEEE80211_NODE_AUTH);
349}
350
353
356 struct ieee80211_channel *);
358void ieee80211_reset_bss(struct ieee80211vap *);
361 struct ieee80211_channel *);
366 const struct ieee80211_scanparams *);
370 const struct ieee80211_scan_entry *);
372void ieee80211_node_deauth(struct ieee80211_node *, int);
373
374int ieee80211_ies_init(struct ieee80211_ies *, const uint8_t *, int);
377#define ieee80211_ies_setie(_ies, _ie, _off) do { \
378 (_ies)._ie = (_ies).data + (_off); \
379} while (0)
380
381/*
382 * Table of ieee80211_node instances. Each ieee80211com
383 * has one that holds association stations (when operating
384 * as an ap) or neighbors (in ibss mode).
385 *
386 * XXX embed this in ieee80211com instead of indirect?
387 */
389 struct ieee80211com *nt_ic; /* back reference */
391 TAILQ_HEAD(, ieee80211_node) nt_node; /* information of all nodes */
393 int nt_count; /* number of nodes */
394 struct ieee80211_node **nt_keyixmap; /* key ix -> node map */
395 int nt_keyixmax; /* keyixmap size */
396 const char *nt_name; /* table name for debug msgs */
397 int nt_inact_init; /* initial node inact setting */
398};
399
401 struct ieee80211vap *,
402 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
404 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
406 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
408 const uint8_t bssid[IEEE80211_ADDR_LEN],
409 struct ieee80211_channel *);
410#ifdef IEEE80211_DEBUG_REFCNT
411void ieee80211_free_node_debug(struct ieee80211_node *,
412 const char *func, int line);
413struct ieee80211_node *ieee80211_find_node_locked_debug(
414 struct ieee80211_node_table *,
415 const uint8_t macaddr[IEEE80211_ADDR_LEN],
416 const char *func, int line);
417struct ieee80211_node *ieee80211_find_node_debug(struct ieee80211_node_table *,
418 const uint8_t macaddr[IEEE80211_ADDR_LEN],
419 const char *func, int line);
420struct ieee80211_node *ieee80211_find_vap_node_locked_debug(
421 struct ieee80211_node_table *,
422 const struct ieee80211vap *vap,
423 const uint8_t macaddr[IEEE80211_ADDR_LEN],
424 const char *func, int line);
425struct ieee80211_node *ieee80211_find_vap_node_debug(
426 struct ieee80211_node_table *,
427 const struct ieee80211vap *vap,
428 const uint8_t macaddr[IEEE80211_ADDR_LEN],
429 const char *func, int line);
430struct ieee80211_node * ieee80211_find_rxnode_debug(struct ieee80211com *,
431 const struct ieee80211_frame_min *,
432 const char *func, int line);
433struct ieee80211_node * ieee80211_find_rxnode_withkey_debug(
434 struct ieee80211com *,
435 const struct ieee80211_frame_min *, uint16_t keyix,
436 const char *func, int line);
437struct ieee80211_node *ieee80211_find_txnode_debug(struct ieee80211vap *,
438 const uint8_t *,
439 const char *func, int line);
440#define ieee80211_free_node(ni) \
441 ieee80211_free_node_debug(ni, __func__, __LINE__)
442#define ieee80211_find_node_locked(nt, mac) \
443 ieee80211_find_node_locked_debug(nt, mac, __func__, __LINE__)
444#define ieee80211_find_node(nt, mac) \
445 ieee80211_find_node_debug(nt, mac, __func__, __LINE__)
446#define ieee80211_find_vap_node_locked(nt, vap, mac) \
447 ieee80211_find_vap_node_locked_debug(nt, vap, mac, __func__, __LINE__)
448#define ieee80211_find_vap_node(nt, vap, mac) \
449 ieee80211_find_vap_node_debug(nt, vap, mac, __func__, __LINE__)
450#define ieee80211_find_rxnode(ic, wh) \
451 ieee80211_find_rxnode_debug(ic, wh, __func__, __LINE__)
452#define ieee80211_find_rxnode_withkey(ic, wh, keyix) \
453 ieee80211_find_rxnode_withkey_debug(ic, wh, keyix, __func__, __LINE__)
454#define ieee80211_find_txnode(vap, mac) \
455 ieee80211_find_txnode_debug(vap, mac, __func__, __LINE__)
456#else
459 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
461 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
463 struct ieee80211_node_table *, const struct ieee80211vap *,
464 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
466 struct ieee80211_node_table *, const struct ieee80211vap *,
467 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
469 const struct ieee80211_frame_min *);
471 const struct ieee80211_frame_min *, uint16_t keyix);
473 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
474#endif
476void ieee80211_node_timeout(void *arg);
477
478typedef void ieee80211_iter_func(void *, struct ieee80211_node *);
480 struct ieee80211vap *, ieee80211_iter_func *, void *);
482 ieee80211_iter_func *, void *);
483
486 struct ieee80211_node *);
488
490 const uint8_t macaddr[IEEE80211_ADDR_LEN]);
493 const struct ieee80211_frame *,
494 const struct ieee80211_scanparams *);
496 const struct ieee80211_frame *,
497 const struct ieee80211_scanparams *);
498void ieee80211_node_join(struct ieee80211_node *,int);
500int8_t ieee80211_getrssi(struct ieee80211vap *);
501void ieee80211_getsignal(struct ieee80211vap *, int8_t *, int8_t *);
502#endif /* _NET80211_IEEE80211_NODE_H_ */
#define IEEE80211_MAX_CHAINS
Definition: _ieee80211.h:448
#define IEEE80211_TID_SIZE
Definition: _ieee80211.h:366
uint16_t ieee80211_seq
Definition: ieee80211.h:45
#define IEEE80211_MESHID_LEN
Definition: ieee80211.h:220
#define IEEE80211_ADDR_LEN
Definition: ieee80211.h:37
#define WME_NUM_TID
Definition: ieee80211.h:300
#define IEEE80211_NWID_LEN
Definition: ieee80211.h:219
#define ieee80211_node_decref(_ni)
#define ieee80211_node_incref(_ni)
void ieee80211_node_authorize(struct ieee80211_node *)
int ieee80211_sta_join(struct ieee80211vap *, struct ieee80211_channel *, const struct ieee80211_scan_entry *)
void ieee80211_node_leave(struct ieee80211_node *)
int ieee80211_ibss_merge_check(struct ieee80211_node *)
static __inline void ieee80211_unref_node(struct ieee80211_node **ni)
void ieee80211_node_latevattach(struct ieee80211vap *)
struct ieee80211_node * ieee80211_find_vap_node(struct ieee80211_node_table *, const struct ieee80211vap *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
int ieee80211_node_delucastkey(struct ieee80211_node *)
void ieee80211_node_attach(struct ieee80211com *)
int ieee80211_ibss_merge(struct ieee80211_node *)
void ieee80211_ies_cleanup(struct ieee80211_ies *)
struct ieee80211_node * ieee80211_find_rxnode(struct ieee80211com *, const struct ieee80211_frame_min *)
struct ieee80211_node * ieee80211_dup_bss(struct ieee80211vap *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
void ieee80211_reset_bss(struct ieee80211vap *)
struct ieee80211_node * ieee80211_find_rxnode_withkey(struct ieee80211com *, const struct ieee80211_frame_min *, uint16_t keyix)
void ieee80211_node_vattach(struct ieee80211vap *)
void ieee80211_ies_expand(struct ieee80211_ies *)
void ieee80211_dump_node(struct ieee80211_node_table *, struct ieee80211_node *)
struct ieee80211_node * ieee80211_find_vap_node_locked(struct ieee80211_node_table *, const struct ieee80211vap *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
struct ieee80211_node * ieee80211_find_node(struct ieee80211_node_table *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
void ieee80211_iter_func(void *, struct ieee80211_node *)
void ieee80211_node_set_chan(struct ieee80211_node *, struct ieee80211_channel *)
static __inline int ieee80211_node_is_authorized(const struct ieee80211_node *ni)
#define IEEE80211_NODE_HASHSIZE
void ieee80211_create_ibss(struct ieee80211vap *, struct ieee80211_channel *)
void ieee80211_node_vdetach(struct ieee80211vap *)
void ieee80211_node_timeout(void *arg)
int ieee80211_iterate_nodes_vap(struct ieee80211_node_table *, struct ieee80211vap *, ieee80211_iter_func *, void *)
void ieee80211_sta_leave(struct ieee80211_node *)
struct ieee80211_node * ieee80211_node_create_wds(struct ieee80211vap *, const uint8_t bssid[IEEE80211_ADDR_LEN], struct ieee80211_channel *)
struct ieee80211_node * ieee80211_tmp_node(struct ieee80211vap *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
void ieee80211_node_unauthorize(struct ieee80211_node *)
void ieee80211_node_detach(struct ieee80211com *)
int8_t ieee80211_getrssi(struct ieee80211vap *)
void ieee80211_node_setuptxparms(struct ieee80211_node *)
struct ieee80211_node * ieee80211_find_node_locked(struct ieee80211_node_table *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
#define IEEE80211_NODE_AUTH
struct ieee80211_node * ieee80211_find_txnode(struct ieee80211vap *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
void ieee80211_node_lateattach(struct ieee80211com *)
void ieee80211_setupcurchan(struct ieee80211com *, struct ieee80211_channel *)
void ieee80211_init_neighbor(struct ieee80211_node *, const struct ieee80211_frame *, const struct ieee80211_scanparams *)
void ieee80211_dump_nodes(struct ieee80211_node_table *)
int ieee80211_ibss_node_check_new(struct ieee80211_node *ni, const struct ieee80211_scanparams *)
static __inline struct ieee80211_node * ieee80211_ref_node(struct ieee80211_node *ni)
ieee80211_mesh_mlstate
@ IEEE80211_NODE_MESH_IDLE
@ IEEE80211_NODE_MESH_HOLDING
@ IEEE80211_NODE_MESH_ESTABLISHED
@ IEEE80211_NODE_MESH_OPENRCV
@ IEEE80211_NODE_MESH_CONFIRMRCV
@ IEEE80211_NODE_MESH_OPENSNT
void ieee80211_iterate_nodes(struct ieee80211_node_table *, ieee80211_iter_func *, void *)
void ieee80211_update_chw(struct ieee80211com *)
void ieee80211_notify_erp_locked(struct ieee80211com *)
void ieee80211_free_node(struct ieee80211_node *)
void ieee80211_node_deauth(struct ieee80211_node *, int)
void ieee80211_sync_curchan(struct ieee80211com *)
void ieee80211_getsignal(struct ieee80211vap *, int8_t *, int8_t *)
struct ieee80211_node * ieee80211_alloc_node(struct ieee80211_node_table *, struct ieee80211vap *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
int ieee80211_ies_init(struct ieee80211_ies *, const uint8_t *, int)
void ieee80211_node_join(struct ieee80211_node *, int)
MALLOC_DECLARE(M_80211_NODE)
struct ieee80211_node * ieee80211_fakeup_adhoc_node(struct ieee80211vap *, const uint8_t macaddr[IEEE80211_ADDR_LEN])
void ieee80211_setcurchan(struct ieee80211com *, struct ieee80211_channel *)
struct ieee80211_node * ieee80211_add_neighbor(struct ieee80211vap *, const struct ieee80211_frame *, const struct ieee80211_scanparams *)
uint8_t * bssload_ie
uint8_t * htinfo_ie
uint8_t * tdma_ie
uint8_t * apchanrep_ie
uint8_t * spare[4]
uint8_t * vhtcap_ie
uint8_t * ath_ie
uint8_t * wpa_ie
uint8_t * meshid_ie
uint8_t * htcap_ie
uint8_t * vhtopmode_ie
uint8_t * vhtpwrenv_ie
uint8_t * wme_ie
uint8_t * data
uint8_t * rsn_ie
struct ieee80211com * nt_ic
struct ieee80211_node ** nt_keyixmap
TAILQ_HEAD(, ieee80211_node) nt_node
ieee80211_node_lock_t nt_nodelock
LIST_HEAD(, ieee80211_node) nt_hash[IEEE80211_NODE_HASHSIZE]
struct ieee80211_vht_mcs_info ni_vht_mcsinfo
uint16_t ni_timoff
uint32_t * ni_challenge
struct ieee80211_psq ni_psq
uint8_t ni_meshid[IEEE80211_MESHID_LEN]
uint8_t ni_meshidlen
uint8_t ni_mimo_noise_ctl[IEEE80211_MAX_CHAINS]
struct ieee80211_rateset ni_rates
struct ieee80211com * ni_ic
struct ieee80211_quiet_ie ni_quiet_ie
uint8_t ni_macaddr[IEEE80211_ADDR_LEN]
struct ieee80211_node_table * ni_table
uint8_t ni_ht2ndchan
struct ieee80211_nodestats ni_stats
uint8_t ni_ath_flags
struct ieee80211_htrateset ni_htrates
uint8_t ni_bssid[IEEE80211_ADDR_LEN]
uint8_t ni_vht_chanwidth
uint16_t ni_ath_defkeyix
struct callout ni_mlhtimer
struct ieee80211_rx_ampdu ni_rx_ampdu[WME_NUM_TID]
struct ieee80211_key ni_ucastkey
uint64_t ni_spare[3]
TAILQ_ENTRY(ieee80211_node) ni_list
struct ieee80211vap * ni_vap
const struct ieee80211_txparam * ni_txparms
uint8_t ni_vht_chan2
uint32_t ni_jointime
uint16_t ni_intval
uint32_t ni_quiet_ie_set
struct ieee80211_tx_ampdu ni_tx_ampdu[WME_NUM_TID]
uint16_t ni_capinfo
uint8_t ni_dtim_period
ieee80211_seq ni_rxseqs[IEEE80211_TID_SIZE]
uint16_t ni_vht_basicmcs
uint8_t ni_mimo_chains
LIST_ENTRY(ieee80211_node) ni_hash
uint8_t data[8]
uint8_t ni_dtim_count
enum ieee80211_mesh_mlstate ni_mlstate
uint8_t ni_htctlchan
struct callout ni_mltimer
struct ieee80211vap * ni_wdsvap
union ieee80211_node::@24 ni_tstamp
struct mbuf * ni_rxfrag[3]
ieee80211_seq ni_txseqs[IEEE80211_TID_SIZE]
uint32_t ni_avgrssi
struct ieee80211_ies ni_ies
uint16_t ni_fhdwell
uint32_t ni_mimo_rssi_ext[IEEE80211_MAX_CHAINS]
uint8_t ni_mimo_noise_ext[IEEE80211_MAX_CHAINS]
uint8_t ni_vht_chan1
uint32_t ni_mimo_rssi_ctl[IEEE80211_MAX_CHAINS]
struct ieee80211_channel * ni_chan
uint16_t ni_vht_pad2
uint32_t ni_rxfragstamp
uint16_t ni_txpower
uint16_t ni_associd
struct mbuf * ni_tx_superg[WME_NUM_TID]
uint32_t ni_vht_spare[8]
uint8_t ni_essid[IEEE80211_NWID_LEN]
uint32_t ni_vhtcap