Hi Jouni,<div> </div><div>    Yes, it is OpenWRt disable <span class="Apple-style-span" style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CONFIG_CTRL_IFACE_MIB. It is OK when I enable </span><span class="Apple-style-span" style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CONFIG_CTRL_IFACE_MIB.</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif">    Thanks for your help!</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><br>
</font><br><div class="gmail_quote">2011/12/17 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 Sat, Dec 17, 2011 at 04:39:08PM +0800, Dongyu Yang wrote:<br>
&gt;     I installed hostapd and hostapd_cli on OpenWRT (Linux 2.6.39.4 and<br>
&gt; Linux 2.6.36.4), the hostapd works fine, and then I use hostapd_cli to get<br>
&gt; MIB variables for one station, I got the error: &quot;UNKNOWN COMMAND&quot;, as<br>
&gt; bellow:<br>
&gt;<br>
&gt;        hostapd_cli -i wlan0 -p /var/run/hostapd-phy0 sta 00:15:6D:0B:D2:2B<br>
&gt;        UNKNOWN COMMAND<br>
<br>
</div>This works fine on an OpenWRT AP in my tests with hostapd that I built<br>
separately (i.e., not through the OpenWRT package). It looks like<br>
OpenWRT disables some of the control interface by default<br>
(CONFIG_CTRL_IFACE_MIB).<br>
<font color="#888888"><br>
--<br>
Jouni Malinen                                            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></div>