<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>struct sta_info</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /><link rel="home" href="index.html" title="The 802.11 subsystems – for kernel developers" /><link rel="up" href="sta-info.html#id3059528" title="Programming information" /><link rel="prev" href="sta-info.html" title="Chapter 22. Station info handling" /><link rel="next" href="API-enum-ieee80211-sta-info-flags.html" title="enum ieee80211_sta_info_flags" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>struct sta_info</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="sta-info.html">Prev</a> </td><th width="60%" align="center">Programming information</th><td width="20%" align="right"> <a accesskey="n" href="API-enum-ieee80211-sta-info-flags.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="struct sta_info"><a id="API-struct-sta-info"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct sta_info — STA information </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting"> struct sta_info { struct list_head list; struct sta_info * hnext; struct ieee80211_local * local; struct ieee80211_sub_if_data * sdata; struct ieee80211_key * gtk[NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS]; struct ieee80211_key * ptk; struct rate_control_ref * rate_ctrl; void * rate_ctrl_priv; spinlock_t lock; spinlock_t flaglock; struct work_struct drv_unblock_wk; u16 listen_interval; bool dead; bool uploaded; u32 flags; struct sk_buff_head ps_tx_buf; struct sk_buff_head tx_filtered; unsigned long rx_packets; unsigned long rx_bytes; unsigned long wep_weak_iv_count; unsigned long last_rx; unsigned long num_duplicates; unsigned long rx_fragments; unsigned long rx_dropped; int last_signal; struct ewma avg_signal; __le16 last_seq_ctrl[NUM_RX_DATA_QUEUES]; unsigned long tx_filtered_count; unsigned long tx_retry_failed; unsigned long tx_retry_count; unsigned int fail_avg; unsigned long tx_packets; unsigned long tx_bytes; unsigned long tx_fragments; struct ieee80211_tx_rate last_tx_rate; u16 tid_seq[IEEE80211_QOS_CTL_TID_MASK + 1]; struct sta_ampdu_mlme ampdu_mlme; u8 timer_to_tid[STA_TID_NUM]; #ifdef CONFIG_MAC80211_MESH __le16 llid; __le16 plid; __le16 reason; u8 plink_retries; bool ignore_plink_timer; bool plink_timer_was_running; enum plink_state plink_state; u32 plink_timeout; struct timer_list plink_timer; #endif #ifdef CONFIG_MAC80211_DEBUGFS struct sta_info_debugfsdentries debugfs; #endif unsigned int lost_packets; struct ieee80211_sta sta; }; </pre></div><div class="refsect1" title="Members"><a id="id3059648"></a><h2>Members</h2><div class="variablelist"><dl><dt><span class="term">list</span></dt><dd><p> global linked list entry </p></dd><dt><span class="term">hnext</span></dt><dd><p> hash table linked list pointer </p></dd><dt><span class="term">local</span></dt><dd><p> pointer to the global information </p></dd><dt><span class="term">sdata</span></dt><dd><p> virtual interface this station belongs to </p></dd><dt><span class="term">gtk[NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS]</span></dt><dd><p> group keys negotiated with this station, if any </p></dd><dt><span class="term">ptk</span></dt><dd><p> peer key negotiated with this station, if any </p></dd><dt><span class="term">rate_ctrl</span></dt><dd><p> rate control algorithm reference </p></dd><dt><span class="term">rate_ctrl_priv</span></dt><dd><p> rate control private per-STA pointer </p></dd><dt><span class="term">lock</span></dt><dd><p> used for locking all fields that require locking, see comments in the header file. </p></dd><dt><span class="term">flaglock</span></dt><dd><p> spinlock for flags accesses </p></dd><dt><span class="term">drv_unblock_wk</span></dt><dd><p> used for driver PS unblocking </p></dd><dt><span class="term">listen_interval</span></dt><dd><p> listen interval of this station, when we're acting as AP </p></dd><dt><span class="term">dead</span></dt><dd><p> set to true when sta is unlinked </p></dd><dt><span class="term">uploaded</span></dt><dd><p> set to true when sta is uploaded to the driver </p></dd><dt><span class="term">flags</span></dt><dd><p> STA flags, see <span class="structname">enum</span> ieee80211_sta_info_flags </p></dd><dt><span class="term">ps_tx_buf</span></dt><dd><p> buffer of frames to transmit to this station when it leaves power saving state </p></dd><dt><span class="term">tx_filtered</span></dt><dd><p> buffer of frames we already tried to transmit but were filtered by hardware due to STA having entered power saving state </p></dd><dt><span class="term">rx_packets</span></dt><dd><p> Number of MSDUs received from this STA </p></dd><dt><span class="term">rx_bytes</span></dt><dd><p> Number of bytes received from this STA </p></dd><dt><span class="term">wep_weak_iv_count</span></dt><dd><p> number of weak WEP IVs received from this station </p></dd><dt><span class="term">last_rx</span></dt><dd><p> time (in jiffies) when last frame was received from this STA </p></dd><dt><span class="term">num_duplicates</span></dt><dd><p> number of duplicate frames received from this STA </p></dd><dt><span class="term">rx_fragments</span></dt><dd><p> number of received MPDUs </p></dd><dt><span class="term">rx_dropped</span></dt><dd><p> number of dropped MPDUs from this STA </p></dd><dt><span class="term">last_signal</span></dt><dd><p> signal of last received frame from this STA </p></dd><dt><span class="term">avg_signal</span></dt><dd><p> moving average of signal of received frames from this STA </p></dd><dt><span class="term">last_seq_ctrl[NUM_RX_DATA_QUEUES]</span></dt><dd><p> last received seq/frag number from this STA (per RX queue) </p></dd><dt><span class="term">tx_filtered_count</span></dt><dd><p> number of frames the hardware filtered for this STA </p></dd><dt><span class="term">tx_retry_failed</span></dt><dd><p> number of frames that failed retry </p></dd><dt><span class="term">tx_retry_count</span></dt><dd><p> total number of retries for frames to this STA </p></dd><dt><span class="term">fail_avg</span></dt><dd><p> moving percentage of failed MSDUs </p></dd><dt><span class="term">tx_packets</span></dt><dd><p> number of RX/TX MSDUs </p></dd><dt><span class="term">tx_bytes</span></dt><dd><p> number of bytes transmitted to this STA </p></dd><dt><span class="term">tx_fragments</span></dt><dd><p> number of transmitted MPDUs </p></dd><dt><span class="term">last_tx_rate</span></dt><dd><p> rate used for last transmit, to report to userspace as <span class="quote">“<span class="quote">the</span>”</span> transmit rate </p></dd><dt><span class="term">tid_seq[IEEE80211_QOS_CTL_TID_MASK + 1]</span></dt><dd><p> per-TID sequence numbers for sending to this STA </p></dd><dt><span class="term">ampdu_mlme</span></dt><dd><p> A-MPDU state machine state </p></dd><dt><span class="term">timer_to_tid[STA_TID_NUM]</span></dt><dd><p> identity mapping to ID timers </p></dd><dt><span class="term">llid</span></dt><dd><p> Local link ID </p></dd><dt><span class="term">plid</span></dt><dd><p> Peer link ID </p></dd><dt><span class="term">reason</span></dt><dd><p> Cancel reason on PLINK_HOLDING state </p></dd><dt><span class="term">plink_retries</span></dt><dd><p> Retries in establishment </p></dd><dt><span class="term">ignore_plink_timer</span></dt><dd><p> ignore the peer-link timer (used internally) </p></dd><dt><span class="term">plink_timer_was_running</span></dt><dd><p> used by suspend/resume to restore timers </p></dd><dt><span class="term">plink_state</span></dt><dd><p> peer link state </p></dd><dt><span class="term">plink_timeout</span></dt><dd><p> timeout of peer link </p></dd><dt><span class="term">plink_timer</span></dt><dd><p> peer link watch timer </p></dd><dt><span class="term">debugfs</span></dt><dd><p> debug filesystem info </p></dd><dt><span class="term">lost_packets</span></dt><dd><p> number of consecutive lost packets </p></dd><dt><span class="term">sta</span></dt><dd><p> station information we share with the driver </p></dd></dl></div></div><div class="refsect1" title="Description"><a id="id3060263"></a><h2>Description</h2><p> </p><p> This structure collects information about a station that mac80211 is communicating with. </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sta-info.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="sta-info.html#id3059528">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-enum-ieee80211-sta-info-flags.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 22. Station info handling </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>enum ieee80211_sta_info_flags</span></td></tr></table></div></body></html>