<div>Hello Jouni,<br></div><div><br></div><div>&nbsp; &nbsp; Thanks for your help, I now can read all stations&#39; mib in my C program!</div><div><br></div><div>&nbsp; &nbsp; In recent mail list, I see P2P GO mode, can you tell me what this means and its function? And where we can use it?</div>
<div><br></div><div>&nbsp; &nbsp; &nbsp;Thanks for your help£”</div><div><br></div><div><br></div><br><div class="gmail_quote">2011/12/22 Jouni Malinen <span dir="ltr">&lt;<a href="mailto:j@w1.fi">j@w1.fi</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Dec 21, 2011 at 08:33:24PM +0800, Dongyu Yang wrote:<br>
&gt; &nbsp; &nbsp; I installed hostapd on my Router which running OpenWRT, and I can get<br>
&gt; all stations&#39; mib from &#39;hostapd_cli all_sta&#39; command. Now I want to read<br>
&gt; all stations&#39; mib directly in my C/C++ program, how can I do it?<br>
<br>
</div>You can use hostapd control interface, e.g., with the help of<br>
src/common/wpa_ctrl.c. hostapd/hostapd_cli.c shows an example on how to<br>
use STA-FIRST and STA-NEXT commands to iterate through the station list.<br>
<font color="#888888"><br>
--<br>
Jouni Malinen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PGP id EFC895FA<br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</font></blockquote></div><br>