1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>cfg80211_find_ie</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="bk01ch03.html" title="Chapter&#160;3.&#160;Scanning and BSS list handling"><link rel="prev" href="API-cfg80211-unlink-bss.html" title="cfg80211_unlink_bss"><link rel="next" href="API-ieee80211-bss-get-ie.html" title="ieee80211_bss_get_ie"></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">cfg80211_find_ie</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-cfg80211-unlink-bss.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;3.&#160;Scanning and BSS list handling</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-ieee80211-bss-get-ie.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-cfg80211-find-ie"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>cfg80211_find_ie &#8212; 
2  find information element in data
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">const u8 * <b class="fsfunc">cfg80211_find_ie </b>(</code></td><td>u8 <var class="pdparam">eid</var>, </td></tr><tr><td>&#160;</td><td>const u8 * <var class="pdparam">ies</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">len</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1113060548"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>eid</code></em></span></dt><dd><p>
4     element ID
5    </p></dd><dt><span class="term"><em class="parameter"><code>ies</code></em></span></dt><dd><p>
6     data consisting of IEs
7    </p></dd><dt><span class="term"><em class="parameter"><code>len</code></em></span></dt><dd><p>
8     length of data
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1113064020"></a><h2>Return</h2><p>
10   <code class="constant">NULL</code> if the element ID could not be found or if
11   the element is invalid (claims to be longer than the given
12   data), or a pointer to the first byte of the requested
13   element, that is the byte containing the element ID.
14</p></div><div class="refsect1"><a name="idp1113065020"></a><h2>Note</h2><p>
15   There are no checks on the element length other than
16   having to fit into the given data.
17</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-cfg80211-unlink-bss.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="bk01ch03.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-ieee80211-bss-get-ie.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">cfg80211_unlink_bss</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;<span class="phrase">ieee80211_bss_get_ie</span></td></tr></table></div></body></html>
18