1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ieee80211_find_sta_by_ifaddr</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The 802.11 subsystems &#8211; for kernel developers"><link rel="up" href="station-handling.html" title="Chapter&#160;14.&#160;Station handling"><link rel="prev" href="API-ieee80211-find-sta.html" title="ieee80211_find_sta"><link rel="next" href="hardware-scan-offload.html" title="Chapter&#160;15.&#160;Hardware scan offload"></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">ieee80211_find_sta_by_ifaddr</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-ieee80211-find-sta.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;14.&#160;Station handling</th><td width="20%" align="right">&#160;<a accesskey="n" href="hardware-scan-offload.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ieee80211-find-sta-by-ifaddr"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ieee80211_find_sta_by_ifaddr &#8212; 
2  find a station on hardware
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct ieee80211_sta * <b class="fsfunc">ieee80211_find_sta_by_ifaddr </b>(</code></td><td>struct ieee80211_hw * <var class="pdparam">hw</var>, </td></tr><tr><td>&#160;</td><td>const u8 * <var class="pdparam">addr</var>, </td></tr><tr><td>&#160;</td><td>const u8 * <var class="pdparam">localaddr</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1114274692"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>hw</code></em></span></dt><dd><p>
4     pointer as obtained from <code class="function">ieee80211_alloc_hw</code>
5    </p></dd><dt><span class="term"><em class="parameter"><code>addr</code></em></span></dt><dd><p>
6     remote station's address
7    </p></dd><dt><span class="term"><em class="parameter"><code>localaddr</code></em></span></dt><dd><p>
8     local address (vif-&gt;sdata-&gt;vif.addr). Use NULL for 'any'.
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1114278836"></a><h2>Return</h2><p>
10   The station, if found. <code class="constant">NULL</code> otherwise.
11</p></div><div class="refsect1"><a name="idp1114279692"></a><h2>Note</h2><p>
12   This function must be called under RCU lock and the
13   resulting pointer is only valid under RCU lock as well.
14</p></div><div class="refsect1"><a name="idp1114280404"></a><h2>NOTE</h2><p>
15   You may pass NULL for localaddr, but then you will just get
16   the first STA that matches the remote address 'addr'.
17   We can have multiple STA associated with multiple
18   logical stations (e.g. consider a station connecting to another
19   BSSID on the same AP hardware without disconnecting first).
20   In this case, the result of this method with localaddr NULL
21   is not reliable.
22   </p><p>
23
24   DO NOT USE THIS FUNCTION with localaddr NULL if at all possible.
25</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-ieee80211-find-sta.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="station-handling.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="hardware-scan-offload.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">ieee80211_find_sta</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Chapter&#160;15.&#160;Hardware scan offload</td></tr></table></div></body></html>
26