<?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 ieee80211_sta</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="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><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>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" title="struct ieee80211_sta"><a id="API-struct-ieee80211-sta"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct ieee80211_sta — station table entry </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting"> struct ieee80211_sta { u32 supp_rates[IEEE80211_NUM_BANDS]; u8 addr[ETH_ALEN]; u16 aid; struct ieee80211_sta_ht_cap ht_cap; u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); }; </pre></div><div class="refsect1" title="Members"><a id="id3056634"></a><h2>Members</h2><div class="variablelist"><dl><dt><span class="term">supp_rates[IEEE80211_NUM_BANDS]</span></dt><dd><p> Bitmap of supported rates (per band) </p></dd><dt><span class="term">addr[ETH_ALEN]</span></dt><dd><p> MAC address </p></dd><dt><span class="term">aid</span></dt><dd><p> AID we assigned to the station if we're an AP </p></dd><dt><span class="term">ht_cap</span></dt><dd><p> HT capabilities of this STA; restricted to our own TX capabilities </p></dd><dt><span class="term">drv_priv[0] __attribute__((__aligned__(sizeof(void *))))</span></dt><dd><p> data area for driver use, will always be aligned to sizeof(void *), size is determined in hw information. </p></dd></dl></div></div><div class="refsect1" title="Description"><a id="id3056705"></a><h2>Description</h2><p> </p><p> A station table entry represents a station we are possibly communicating with. Since stations are RCU-managed in mac80211, any ieee80211_sta pointer you get access to must either be protected by <code class="function">rcu_read_lock</code> explicitly or implicitly, or you must take good care to not use such a pointer after a call to your sta_remove callback that removed it. </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>enum sta_notify_cmd</span></td></tr></table></div></body></html>