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; 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 gtk_idx; u8 ptk_idx; struct rate_control_ref * rate_ctrl; void * rate_ctrl_priv; spinlock_t lock; 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; unsigned long rx_packets; u64 rx_bytes; unsigned long last_rx; long last_connected; unsigned long num_duplicates; unsigned long rx_fragments; unsigned long rx_dropped; int last_signal; struct ewma avg_signal; int last_ack_signal; u8 chains; s8 chain_signal_last[IEEE80211_MAX_CHAINS]; struct ewma chain_signal_avg[IEEE80211_MAX_CHAINS]; __le16 last_seq_ctrl[IEEE80211_NUM_TIDS + 1]; unsigned long tx_filtered_count; unsigned long tx_retry_failed; unsigned long tx_retry_count; unsigned int fail_avg; u32 tx_fragments; u64 tx_packets[IEEE80211_NUM_ACS]; u64 tx_bytes[IEEE80211_NUM_ACS]; struct ieee80211_tx_rate last_tx_rate; int last_rx_rate_idx; u32 last_rx_rate_flag; u32 last_rx_rate_vht_flag; u8 last_rx_rate_vht_nss; u16 tid_seq[IEEE80211_QOS_CTL_TID_MASK + 1]; u64 tx_msdu[IEEE80211_NUM_TIDS + 1]; u64 tx_msdu_retries[IEEE80211_NUM_TIDS + 1]; u64 tx_msdu_failed[IEEE80211_NUM_TIDS + 1]; u64 rx_msdu[IEEE80211_NUM_TIDS + 1]; struct sta_ampdu_mlme ampdu_mlme; u8 timer_to_tid[IEEE80211_NUM_TIDS]; #ifdef CONFIG_MAC80211_MESH u16 llid; u16 plid; u16 reason; u8 plink_retries; enum nl80211_plink_state plink_state; u32 plink_timeout; struct timer_list plink_timer; s64 t_offset; s64 t_offset_setpoint; enum nl80211_mesh_power_mode local_pm; enum nl80211_mesh_power_mode peer_pm; enum nl80211_mesh_power_mode nonpeer_pm; #endif #ifdef CONFIG_MAC80211_DEBUGFS struct sta_info_debugfsdentries debugfs; #endif enum ieee80211_sta_rx_bandwidth cur_max_bandwidth; unsigned int lost_packets; unsigned int beacon_loss_count; enum ieee80211_smps_mode known_smps_mode; const struct ieee80211_cipher_scheme * cipher_scheme; unsigned long last_tdls_pkt_time; u8 reserved_tid; 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
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 group key index
last installed peer key index
rate control algorithm reference
rate control private per-STA pointer
used for locking all fields that require locking, see comments in the header file.
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
Number of MSDUs received from this STA
Number of bytes received from this STA
time (in jiffies) when last frame was received from this STA
time (in seconds) when a station got connected
number of duplicate frames received from this STA
number of received MPDUs
number of dropped MPDUs from this STA
signal of last received frame from this STA
moving average of signal of received frames from this STA
signal of last received Ack frame from this STA
chains ever used for RX from this station
last signal (per chain)
signal average (per chain)
last received seq/frag number from this STA (per RX queue)
number of frames the hardware filtered for this STA
number of frames that failed retry
total number of retries for frames to this STA
moving percentage of failed MSDUs
number of transmitted MPDUs
number of RX/TX MSDUs
number of bytes transmitted to this STA
rate used for last transmit, to report to userspace as “the” transmit rate
rx status rate index of the last data packet
rx status flag of the last data packet
rx status vht flag of the last data packet
rx status nss of last data packet
per-TID sequence numbers for sending to this STA
MSDUs transmitted to this station, using IEEE80211_NUM_TID entry for non-QoS frames
MSDU retries for transmissions to to this station, using IEEE80211_NUM_TID entry for non-QoS frames
MSDU failures for transmissions to to this station, using IEEE80211_NUM_TID entry for non-QoS frames
MSDUs received from this station, using IEEE80211_NUM_TID entry for non-QoS frames
A-MPDU state machine state
identity mapping to ID timers
Local link ID
Peer link ID
Cancel reason on PLINK_HOLDING state
Retries in establishment
peer link state
timeout of peer link
peer link watch timer
timing offset relative to this host
reference timing offset of this sta to be used when calculating clockdrift
local link-specific power save mode
peer-specific power save mode towards local STA
STA power save mode towards non-peer neighbors
debug filesystem info
maximum bandwidth to use for TX to the station, taken from HT/VHT capabilities or VHT operating mode notification
number of consecutive lost packets
number of times beacon loss has triggered
the smps_mode the client thinks we are in. Relevant for AP only.
optional cipher scheme for this station
holds the time in jiffies of last TDLS pkt ACKed
reserved TID (if any, otherwise IEEE80211_TID_UNRESERVED)
station information we share with the driver