1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct ieee80211_sta</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The 802.11 subsystems – for kernel developers"><link rel="up" href="station-handling.html" title="Chapter 14. Station handling"><link rel="prev" href="station-handling.html" title="Chapter 14. Station handling"><link rel="next" href="API-enum-sta-notify-cmd.html" title="enum sta_notify_cmd"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct ieee80211_sta</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="station-handling.html">Prev</a> </td><th width="60%" align="center">Chapter 14. Station handling</th><td width="20%" align="right"> <a accesskey="n" href="API-enum-sta-notify-cmd.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-ieee80211-sta"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct ieee80211_sta — 2 station table entry 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct ieee80211_sta { 5 u32 supp_rates[IEEE80211_NUM_BANDS]; 6 u8 addr[ETH_ALEN]; 7 u16 aid; 8 struct ieee80211_sta_ht_cap ht_cap; 9 struct ieee80211_sta_vht_cap vht_cap; 10 bool wme; 11 u8 uapsd_queues; 12 u8 max_sp; 13 u8 rx_nss; 14 enum ieee80211_sta_rx_bandwidth bandwidth; 15 enum ieee80211_smps_mode smps_mode; 16 struct ieee80211_sta_rates __rcu * rates; 17 bool tdls; 18 bool tdls_initiator; 19 bool mfp; 20 struct ieee80211_txq * txq[IEEE80211_NUM_TIDS]; 21 u8 drv_priv[0]; 22}; </pre></div><div class="refsect1"><a name="idp1114237604"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">supp_rates[IEEE80211_NUM_BANDS]</span></dt><dd><p> 23Bitmap of supported rates (per band) 24 </p></dd><dt><span class="term">addr[ETH_ALEN]</span></dt><dd><p> 25MAC address 26 </p></dd><dt><span class="term">aid</span></dt><dd><p> 27AID we assigned to the station if we're an AP 28 </p></dd><dt><span class="term">ht_cap</span></dt><dd><p> 29HT capabilities of this STA; restricted to our own capabilities 30 </p></dd><dt><span class="term">vht_cap</span></dt><dd><p> 31VHT capabilities of this STA; restricted to our own capabilities 32 </p></dd><dt><span class="term">wme</span></dt><dd><p> 33indicates whether the STA supports QoS/WME (if local devices does, 34otherwise always false) 35 </p></dd><dt><span class="term">uapsd_queues</span></dt><dd><p> 36bitmap of queues configured for uapsd. Only valid 37if wme is supported. 38 </p></dd><dt><span class="term">max_sp</span></dt><dd><p> 39max Service Period. Only valid if wme is supported. 40 </p></dd><dt><span class="term">rx_nss</span></dt><dd><p> 41in HT/VHT, the maximum number of spatial streams the 42station can receive at the moment, changed by operating mode 43notifications and capabilities. The value is only valid after 44the station moves to associated state. 45 </p></dd><dt><span class="term">bandwidth</span></dt><dd><p> 46current bandwidth the station can receive with 47 </p></dd><dt><span class="term">smps_mode</span></dt><dd><p> 48current SMPS mode (off, static or dynamic) 49 </p></dd><dt><span class="term">rates</span></dt><dd><p> 50rate control selection table 51 </p></dd><dt><span class="term">tdls</span></dt><dd><p> 52indicates whether the STA is a TDLS peer 53 </p></dd><dt><span class="term">tdls_initiator</span></dt><dd><p> 54indicates the STA is an initiator of the TDLS link. Only 55valid if the STA is a TDLS peer in the first place. 56 </p></dd><dt><span class="term">mfp</span></dt><dd><p> 57indicates whether the STA uses management frame protection or not. 58 </p></dd><dt><span class="term">txq[IEEE80211_NUM_TIDS]</span></dt><dd><p> 59per-TID data TX queues (if driver uses the TXQ abstraction) 60 </p></dd><dt><span class="term">drv_priv[0]</span></dt><dd><p> 61data area for driver use, will always be aligned to 62sizeof(void *), size is determined in hw information. 63 </p></dd></dl></div></div><div class="refsect1"><a name="idp1114250780"></a><h2>Description</h2><p> 64 </p><p> 65 66 A station table entry represents a station we are possibly 67 communicating with. Since stations are RCU-managed in 68 mac80211, any ieee80211_sta pointer you get access to must 69 either be protected by <code class="function">rcu_read_lock</code> explicitly or implicitly, 70 or you must take good care to not use such a pointer after a 71 call to your sta_remove callback that removed it. 72</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="station-handling.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="station-handling.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-enum-sta-notify-cmd.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 14. Station handling </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">enum sta_notify_cmd</span></td></tr></table></div></body></html> 73