struct sta_info — STA information
struct sta_info { struct list_head list; struct list_head free_list; struct rcu_head rcu_head; struct rhash_head hash_node; u8 addr[ETH_ALEN]; struct ieee80211_local * local; struct ieee80211_sub_if_data * sdata; struct ieee80211_key __rcu * gtk[NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS]; struct ieee80211_key __rcu * ptk[NUM_DEFAULT_KEYS]; u8 ptk_idx; struct rate_control_ref * rate_ctrl; void * rate_ctrl_priv; spinlock_t rate_ctrl_lock; spinlock_t lock; struct ieee80211_fast_tx __rcu * fast_tx; #ifdef CONFIG_MAC80211_MESH struct mesh_sta * mesh; #endif struct work_struct drv_deliver_wk; u16 listen_interval; bool dead; bool uploaded; enum ieee80211_sta_state sta_state; unsigned long _flags; spinlock_t ps_lock; struct sk_buff_head ps_tx_buf[IEEE80211_NUM_ACS]; struct sk_buff_head tx_filtered[IEEE80211_NUM_ACS]; unsigned long driver_buffered_tids; unsigned long txq_buffered_tids; long last_connected; struct debugfs; #endif enum ieee80211_sta_rx_bandwidth cur_max_bandwidth; enum ieee80211_smps_mode known_smps_mode; const struct ieee80211_cipher_scheme * cipher_scheme; u8 reserved_tid; struct cfg80211_chan_def tdls_chandef; struct ieee80211_sta sta; };
global linked list entry
list entry for keeping track of stations to free
RCU head used for freeing this station struct
hash node for rhashtable
station's MAC address - duplicated from public part to let the hash table work with just a single cacheline
pointer to the global information
virtual interface this station belongs to
group keys negotiated with this station, if any
peer keys negotiated with this station, if any
last installed peer key index
rate control algorithm reference
rate control private per-STA pointer
spinlock used to protect rate control data (data inside the algorithm, so serializes calls there)
used for locking all fields that require locking, see comments in the header file.
TX fastpath information
mesh STA information
used for delivering frames after driver PS unblocking
listen interval of this station, when we're acting as AP
set to true when sta is unlinked
set to true when sta is uploaded to the driver
duplicates information about station state (for debug)
STA flags, see enum ieee80211_sta_info_flags, do not use directly
used for powersave (when mac80211 is the AP) related locking
buffers (per AC) of frames to transmit to this station when it leaves power saving state or polls
buffers (per AC) of frames we already tried to transmit but were filtered by hardware due to STA having entered power saving state, these are also delivered to the station when it leaves powersave or polls for frames
bitmap of TIDs the driver has data buffered on
bitmap of TIDs that mac80211 has txq data buffered on
time (in seconds) when a station got connected
debug filesystem info
maximum bandwidth to use for TX to the station, taken from HT/VHT capabilities or VHT operating mode notification
the smps_mode the client thinks we are in. Relevant for AP only.
optional cipher scheme for this station
reserved TID (if any, otherwise IEEE80211_TID_UNRESERVED)
a TDLS peer can have a wider chandef that is compatible to the BSS one.
station information we share with the driver