Node interfaces

Defines

IEEE80211_INACT_WAIT
IEEE80211_INACT_INIT
IEEE80211_INACT_AUTH
IEEE80211_INACT_RUN
IEEE80211_INACT_PROBE
IEEE80211_INACT_SCAN
IEEE80211_TRANS_WAIT
IEEE80211_NONERP_PRESENT_AGE
IEEE80211_NODE_HASHSIZE
IEEE80211_NODE_HASH(ic, addr)
IEEE80211_MESH_MLSTATE_BITS
IEEE80211_NODE_TXRATE_INIT_LEGACY(rate)
IEEE80211_NODE_TXRATE_INIT_HT(i_mcs)
IEEE80211_NODE_TXRATE_INIT_VHT(i_nss, i_mcs)
IEEE80211_NODE_AUTH
IEEE80211_NODE_QOS
IEEE80211_NODE_ERP
IEEE80211_NODE_PWR_MGT
IEEE80211_NODE_AREF
IEEE80211_NODE_HT
IEEE80211_NODE_HTCOMPAT
IEEE80211_NODE_WPS
IEEE80211_NODE_TSN
IEEE80211_NODE_AMPDU_RX
IEEE80211_NODE_AMPDU_TX
IEEE80211_NODE_MIMO_PS
IEEE80211_NODE_MIMO_RTS
IEEE80211_NODE_RIFS
IEEE80211_NODE_SGI20
IEEE80211_NODE_SGI40
IEEE80211_NODE_ASSOCID
IEEE80211_NODE_AMSDU_RX
IEEE80211_NODE_AMSDU_TX
IEEE80211_NODE_VHT
IEEE80211_NODE_LDPC
IEEE80211_NODE_UAPSD
IEEE80211_NODE_TURBOP
IEEE80211_NODE_COMP
IEEE80211_NODE_FF
IEEE80211_NODE_XR
IEEE80211_NODE_AR
IEEE80211_NODE_BOOST
IEEE80211_NODE_ATH
IEEE80211_NODE_AMPDU
IEEE80211_NODE_AMSDU
IEEE80211_NODE_HT_ALL
IEEE80211_NODE_BITS
IEEE80211_NODE_AID(ni)
IEEE80211_NODE_STAT(ni, stat)
IEEE80211_NODE_STAT_ADD(ni, stat, v)
IEEE80211_NODE_STAT_SET(ni, stat, v)
IEEE80211_RSSI_LPF_LEN
IEEE80211_RSSI_DUMMY_MARKER
IEEE80211_RSSI_EP_MULTIPLIER
IEEE80211_RSSI_IN(x)
_IEEE80211_RSSI_LPF(x, y, len)
IEEE80211_RSSI_LPF(x, y)
IEEE80211_RSSI_EP_RND(x, mul)
IEEE80211_RSSI_GET(x)
ieee80211_ies_setie(_ies, _ie, _off)
ieee80211_ref_node(ni)
ieee80211_free_node(ni)
ieee80211_find_node_locked(nt, mac)
ieee80211_find_node(nt, mac)
ieee80211_find_vap_node_locked(nt, vap, mac)
ieee80211_find_vap_node(nt, vap, mac)
ieee80211_find_rxnode(ic, wh)
ieee80211_find_rxnode_withkey(ic, wh, keyix)
ieee80211_find_txnode(vap, mac)

Typedefs

typedef void ieee80211_iter_func(void*, struct ieee80211_node*)

Enums

enum ieee80211_mesh_mlstate

Values:

enumerator IEEE80211_NODE_MESH_IDLE
enumerator IEEE80211_NODE_MESH_OPENSNT
enumerator IEEE80211_NODE_MESH_OPENRCV
enumerator IEEE80211_NODE_MESH_CONFIRMRCV
enumerator IEEE80211_NODE_MESH_ESTABLISHED
enumerator IEEE80211_NODE_MESH_HOLDING
enum net80211_sta_rx_bw

Values:

enumerator NET80211_STA_RX_BW_20
enumerator NET80211_STA_RX_BW_40
enumerator NET80211_STA_RX_BW_80
enumerator NET80211_STA_RX_BW_160
enumerator NET80211_STA_RX_BW_320
enum ieee80211_node_txrate_type

Values:

enumerator IEEE80211_NODE_TXRATE_UNDEFINED
enumerator IEEE80211_NODE_TXRATE_LEGACY
enumerator IEEE80211_NODE_TXRATE_HT
enumerator IEEE80211_NODE_TXRATE_VHT

Functions

static inline const char *net80211_ni_chw_to_str(enum net80211_sta_rx_bw bw)
void ieee80211_node_attach(struct ieee80211com*)
void ieee80211_node_lateattach(struct ieee80211com*)
void ieee80211_node_detach(struct ieee80211com*)
void ieee80211_node_vattach(struct ieee80211vap*)
void ieee80211_node_latevattach(struct ieee80211vap*)
void ieee80211_node_vdetach(struct ieee80211vap*)
__inline static int ieee80211_node_is_authorized(const struct ieee80211_node *ni)
void ieee80211_node_authorize(struct ieee80211_node*)
void ieee80211_node_unauthorize(struct ieee80211_node*)
void ieee80211_node_setuptxparms(struct ieee80211_node*)
void ieee80211_node_set_chan(struct ieee80211_node*, struct ieee80211_channel*)
void ieee80211_create_ibss(struct ieee80211vap*, struct ieee80211_channel*)
void ieee80211_reset_bss(struct ieee80211vap*)
void ieee80211_sync_curchan(struct ieee80211com*)
void ieee80211_setupcurchan(struct ieee80211com*, struct ieee80211_channel*)
void ieee80211_setcurchan(struct ieee80211com*, struct ieee80211_channel*)
void ieee80211_update_chw(struct ieee80211com*)
int ieee80211_ibss_merge_check(struct ieee80211_node*)
int ieee80211_ibss_node_check_new(struct ieee80211_node *ni, const struct ieee80211_scanparams*)
int ieee80211_ibss_merge(struct ieee80211_node*)
int ieee80211_sta_join(struct ieee80211vap*, struct ieee80211_channel*, const struct ieee80211_scan_entry*)
void ieee80211_sta_leave(struct ieee80211_node*)
void ieee80211_node_deauth(struct ieee80211_node*, int)
int ieee80211_ies_init(struct ieee80211_ies*, const uint8_t*, int)
void ieee80211_ies_cleanup(struct ieee80211_ies*)
void ieee80211_ies_expand(struct ieee80211_ies*)
struct ieee80211_node *ieee80211_tmp_node(struct ieee80211vap*, const uint8_t macaddr[IEEE80211_ADDR_LEN])
struct ieee80211_node *ieee80211_dup_bss(struct ieee80211vap*, const uint8_t macaddr[IEEE80211_ADDR_LEN])
struct ieee80211_node *ieee80211_node_create_wds(struct ieee80211vap*, const uint8_t bssid[IEEE80211_ADDR_LEN], struct ieee80211_channel*)
struct ieee80211_node *_ieee80211_ref_node(struct ieee80211_node*, const char *func, int line)
void _ieee80211_free_node(struct ieee80211_node*, const char *func, int line)
struct ieee80211_node *_ieee80211_find_node_locked(struct ieee80211_node_table*, const uint8_t macaddr[IEEE80211_ADDR_LEN], const char *func, int line)
struct ieee80211_node *_ieee80211_find_node(struct ieee80211_node_table*, const uint8_t macaddr[IEEE80211_ADDR_LEN], const char *func, int line)
struct ieee80211_node *_ieee80211_find_vap_node_locked(struct ieee80211_node_table*, const struct ieee80211vap *vap, const uint8_t macaddr[IEEE80211_ADDR_LEN], const char *func, int line)
struct ieee80211_node *_ieee80211_find_vap_node(struct ieee80211_node_table*, const struct ieee80211vap *vap, const uint8_t macaddr[IEEE80211_ADDR_LEN], const char *func, int line)
struct ieee80211_node *_ieee80211_find_rxnode(struct ieee80211com*, const struct ieee80211_frame_min*, const char *func, int line)
struct ieee80211_node *_ieee80211_find_rxnode_withkey(struct ieee80211com*, const struct ieee80211_frame_min*, uint16_t keyix, const char *func, int line)
struct ieee80211_node *_ieee80211_find_txnode(struct ieee80211vap*, const uint8_t macaddr[IEEE80211_ADDR_LEN], const char *func, int line)
int ieee80211_node_delucastkey(struct ieee80211_node*)
void ieee80211_node_timeout(void *arg)
int ieee80211_iterate_nodes_vap(struct ieee80211_node_table*, struct ieee80211vap*, ieee80211_iter_func*, void*)
void ieee80211_iterate_nodes(struct ieee80211_node_table*, ieee80211_iter_func*, void*)
void ieee80211_notify_erp_locked(struct ieee80211com*)
void ieee80211_dump_node(struct ieee80211_node_table*, struct ieee80211_node*)
void ieee80211_dump_nodes(struct ieee80211_node_table*)
struct ieee80211_node *ieee80211_fakeup_adhoc_node(struct ieee80211vap*, const uint8_t macaddr[IEEE80211_ADDR_LEN])
void ieee80211_init_neighbor(struct ieee80211_node*, const struct ieee80211_frame*, const struct ieee80211_scanparams*)
struct ieee80211_node *ieee80211_add_neighbor(struct ieee80211vap*, const struct ieee80211_frame*, const struct ieee80211_scanparams*)
void ieee80211_node_join(struct ieee80211_node*, int)
void ieee80211_node_leave(struct ieee80211_node*)
net80211_rssi_t ieee80211_getrssi(struct ieee80211vap*)
void ieee80211_getsignal(struct ieee80211vap*, net80211_rssi_t*, int8_t*)
ieee80211_seq ieee80211_tx_seqno_fetch_incr(struct ieee80211_node*, uint8_t)

Increment the given TID TX sequence, return the current one.

Parameters:
  • ni – ieee80211_node to operate on

  • tid – TID, or IEEE80211_NONQOS_TID

Returns:

sequence number, from 0 .. 4095 inclusive, post increments

ieee80211_seq ieee80211_tx_seqno_fetch(const struct ieee80211_node*, uint8_t)

Return the current sequence number for the given TID.

Parameters:
  • ni – ieee80211_node to operate on

  • tid – TID, or IEEE80211_NONQOS_TID

Returns:

sequence number, from 0 .. 4095 inclusive

uint8_t ieee80211_node_get_txrate_dot11rate(struct ieee80211_node*)

return a dot11rate / ratecode representing the current transmit rate

This is the API call for legacy / 802.11n drivers and rate control APIs which expect a dot11rate / ratecode representation for legacy and HT MCS rates.

Drivers which support VHT should not use this API, as it will log an error and return a low rate if a VHT rate is selected.

Parameters:
Returns:

the dot11rate / ratecode for legacy/MCS, or the lowest available dot11rate if it’s VHT (and shouldn’t have been called.)

void ieee80211_node_get_txrate(struct ieee80211_node*, struct ieee80211_node_txrate*)

return the txrate representing the current transmit rate

This is the API call for drivers and rate control APIs to fetch rates. It will populate a struct ieee80211_node_txrate with the current rate configuration to use.

Parameters:
void ieee80211_node_set_txrate(struct ieee80211_node*, const struct ieee80211_node_txrate*)

Set the txrate representing the current transmit rate.

This is the API call for drivers and rate control APIs to set rates. It will copy a struct ieee80211_node_txrate with the current rate configuration to use.

Parameters:
void ieee80211_node_set_txrate_dot11rate(struct ieee80211_node*, uint8_t)

set the dot11rate / ratecode representing the current transmit rate

This is the API call for legacy / 802.11n drivers and rate control APIs which expect a dot11rate / ratecode representation for legacy and HT MCS rates.

Parameters:
  • ni – the ieee80211_node to return the transmit rate for

  • dot11rate – the dot11rate rate code to use

void ieee80211_node_set_txrate_ht_mcsrate(struct ieee80211_node*, uint8_t)

set the dot11rate / ratecode representing the current HT transmit rate

This is the API call for 802.11n drivers and rate control APIs which expect a dot11rate / ratecode representation for legacy and HT MCS rates. It expects an MCS rate code from 0 .. 76.

Parameters:
  • ni – the ieee80211_node to return the transmit rate for

  • mcs – the MCS rate to select

uint32_t ieee80211_node_get_txrate_kbit(struct ieee80211_node*)
void ieee80211_node_set_txrate_vht_rate(struct ieee80211_node *ni, uint8_t nss, uint8_t mcs)

set the rate to the given VHT transmission rate.

This sets the current transmit rate to the given VHT NSS/MCS.

Parameters:
  • ni – the ieee80211_node to set the transmit rate for

  • nss – the number of spatial streams

  • mcs – the MCS rate to select

Variables

struct malloc_type M_80211_NODE[1]
struct malloc_type M_80211_NODE_IE[1]
struct ieee80211_ies
#include <ieee80211_node.h>

Public Members

uint8_t *wpa_ie
uint8_t *rsn_ie
uint8_t *wme_ie
uint8_t *ath_ie
uint8_t *htcap_ie
uint8_t *htinfo_ie
uint8_t *tdma_ie
uint8_t *meshid_ie
uint8_t *vhtcap_ie
uint8_t *vhtopmode_ie
uint8_t *vhtpwrenv_ie
uint8_t *apchanrep_ie
uint8_t *bssload_ie
uint8_t *spare[4]
uint8_t *data
int len
struct ieee80211_node_txrate
#include <ieee80211_node.h>

Public Members

enum ieee80211_node_txrate_type type
uint8_t nss
uint8_t mcs
uint8_t dot11rate
struct ieee80211_node
#include <ieee80211_node.h>

Public Members

struct ieee80211vap *ni_vap
struct ieee80211com *ni_ic
struct ieee80211_node_table *ni_table
struct ieee80211_node.[anonymous] ni_list
struct ieee80211_node.[anonymous] ni_hash
u_int ni_refcnt
u_int ni_flags
uint16_t ni_associd
uint16_t ni_vlan
uint16_t ni_txpower
uint8_t ni_authmode
uint8_t ni_ath_flags
uint16_t ni_ath_defkeyix
const struct ieee80211_txparam *ni_txparms
uint32_t ni_jointime
uint32_t *ni_challenge
struct ieee80211_ies ni_ies
ieee80211_seq ni_txseqs[IEEE80211_TID_SIZE]
ieee80211_seq ni_rxseqs[IEEE80211_TID_SIZE]
uint32_t ni_rxfragstamp
struct mbuf *ni_rxfrag[3]
struct ieee80211_key ni_ucastkey
uint32_t ni_avgrssi
int8_t ni_noise
uint32_t ni_mimo_rssi_ctl[IEEE80211_MAX_CHAINS]
uint32_t ni_mimo_rssi_ext[IEEE80211_MAX_CHAINS]
uint8_t ni_mimo_noise_ctl[IEEE80211_MAX_CHAINS]
uint8_t ni_mimo_noise_ext[IEEE80211_MAX_CHAINS]
uint8_t ni_mimo_chains
uint8_t ni_macaddr[IEEE80211_ADDR_LEN]
uint8_t ni_bssid[IEEE80211_ADDR_LEN]
union ieee80211_node.[anonymous] ni_tstamp
uint16_t ni_intval
uint16_t ni_capinfo
uint8_t ni_esslen
uint8_t ni_essid[IEEE80211_NWID_LEN]
struct ieee80211_rateset ni_rates
struct ieee80211_channel *ni_chan
uint16_t ni_fhdwell
uint8_t ni_fhindex
uint16_t ni_erp
uint16_t ni_timoff
uint8_t ni_dtim_period
uint8_t ni_dtim_count
uint8_t ni_meshidlen
uint8_t ni_meshid[IEEE80211_MESHID_LEN]
enum ieee80211_mesh_mlstate ni_mlstate
uint16_t ni_mllid
uint16_t ni_mlpid
struct callout ni_mltimer
uint8_t ni_mlrcnt
uint8_t ni_mltval
struct callout ni_mlhtimer
uint8_t ni_mlhcnt
uint16_t ni_htcap
uint8_t ni_htparam
uint8_t ni_htctlchan
uint8_t ni_ht2ndchan
uint8_t ni_htopmode
uint8_t ni_htstbc
enum net80211_sta_rx_bw ni_chw
struct ieee80211_htrateset ni_htrates
struct ieee80211_tx_ampdu ni_tx_ampdu[WME_NUM_TID]
struct ieee80211_rx_ampdu ni_rx_ampdu[WME_NUM_TID]
uint32_t ni_vhtcap
uint16_t ni_vht_basicmcs
uint16_t ni_vht_tx_map
struct ieee80211_vht_mcs_info ni_vht_mcsinfo
uint8_t ni_vht_chan1
uint8_t ni_vht_chan2
uint8_t ni_vht_chanwidth
uint8_t ni_vht_pad1
uint32_t ni_vht_spare[8]
struct mbuf *ni_tx_superg[WME_NUM_TID]
short ni_inact
short ni_inact_reload
struct ieee80211_node_txrate ni_txrate
struct ieee80211_psq ni_psq
struct ieee80211_nodestats ni_stats
struct ieee80211vap *ni_wdsvap
void *ni_rctls
uint32_t ni_quiet_ie_set
struct ieee80211_quiet_ie ni_quiet_ie
uint8_t ni_uapsd
void *ni_drv_data
uint64_t ni_spare[3]
struct ieee80211_node_table
#include <ieee80211_node.h>

Public Members

struct ieee80211com *nt_ic
ieee80211_node_lock_t nt_nodelock
struct ieee80211_node_table.[anonymous] nt_node
struct ieee80211_node_table.[anonymous] nt_hash[IEEE80211_NODE_HASHSIZE]
int nt_count
struct ieee80211_node **nt_keyixmap
int nt_keyixmax
const char *nt_name
int nt_inact_init