<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 6:35 PM, Dan Williams <span dir="ltr">&lt;<a href="mailto:dcbw@redhat.com" target="_blank">dcbw@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 2015-01-21 at 11:05 +0100, Harm Verhagen wrote:<br>
&gt; Ignoring the lack  of &quot;valid interface combinations:&quot;    just trying a 2nd<br>
&gt; interface<br>
<br>
</span>Lack of &quot;valid interface combinations&quot; means that the driver is not<br>
advertising the ability, and therefore we cannot assume that it actually<br>
works.  The kernel support for this has been around 2011 (kernel version<br>
3.0) so any driver that doesn&#39;t support it probably doesn&#39;t work well...<br></blockquote><div><br></div><div>Clear</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I see you said GWF-3M05 which appears to be a ralink device.  Which<br>
kernel version and which ralink driver are you using?  Are you using<br>
rt2800usb or are you using a vendor driver?<br>
<br></blockquote><div> </div><div>kernel: 3.1.10</div><div>about driver, i&#39;m not really sure. How can I tell ?</div><div>Let me check the kernel config tomorrow.</div><div><br></div><div>Regards,</div><div>Harm</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dan<br>
<span class=""><br>
&gt;     iw dev wlan0 interface add wlan0-STA type managed<br>
&gt;<br>
&gt;     ip link set dev wlan0-STA address 7C:CD:EF:00:01:02    # prevent  &quot;Name<br>
&gt; not unique on network&quot; error<br>
&gt;<br>
&gt; ifup wlan0-STA    works fine as STA, connects and gets ip.<br>
&gt;<br>
&gt; But then upping wlan (just a static ip, no hostapd yet) fails<br>
&gt;<br>
&gt;     $ ifup wlan0<br>
&gt;<br>
&gt;     ifconfig: SIOCSIFFLAGS: No buffer space available<br>
&gt;<br>
&gt;     ifconfig: SIOCSIFFLAGS: No buffer space available<br>
<br>
</span>This error usually appears to mean out-of-memory when constructing<br>
netlink packets, which is the protocol that &#39;iw&#39; and the kernel use to<br>
communicate.  So clearly there are either driver or kernel stack bugs or<br>
issues on this platform.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; What could cause such a &quot;No buffer space available&quot; ?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Harm<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jan 21, 2015 at 9:45 AM, Harm Verhagen &lt;<a href="mailto:harm.verhagen@gmail.com">harm.verhagen@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Thu, Jan 15, 2015 at 6:51 PM, Dan Williams &lt;<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt; This gave me the idea, that if hostapd can create &#39;new&#39; wlan devices. I<br>
&gt; &gt;&gt; &gt; (hopefully) can configure the 2nd  wlan0_0 device as a wifi client.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; It depends on your hardware and driver whether this is possible.  Look<br>
&gt; &gt;&gt; at the output of &quot;iw phy phy0 info&quot;, where you should see stuff like:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         valid interface combinations:<br>
&gt; &gt;&gt;                  * #{ managed } &lt;= 1, #{ AP } &lt;= 1,<br>
&gt; &gt;&gt;                    total &lt;= 2, #channels &lt;= 1, STA/AP BI must match<br>
&gt; &gt;&gt;                  * #{ managed } &lt;= 2,<br>
&gt; &gt;&gt;                    total &lt;= 2, #channels &lt;= 1<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; These lines indicate what your hardware and driver can do at the same<br>
&gt; &gt;&gt; time.  In this case (Intel 6250, iwldvm driver) I can do 1 AP + 1 STA,<br>
&gt; &gt;&gt; or 2 STA at the same time, but all must be on the same radio channel.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt; I got myself iw on the platform.<br>
&gt; &gt;<br>
&gt; &gt; &quot;iw phy phy0 info&quot;  however does not show any  &quot;valid interface<br>
&gt; &gt; combinations:&quot; section.  Should it ?<br>
&gt; &gt;<br>
&gt; &gt; Does this mean my hardware does not support it ?  Or does it mean<br>
&gt; &gt; something else. (wrong iw/driver/kernel version?)<br>
&gt; &gt;<br>
&gt; &gt; $ iw --version<br>
&gt; &gt; iw version 3.11<br>
&gt; &gt;<br>
&gt; &gt; kernel: 3.1.10<br>
&gt; &gt;<br>
&gt; &gt; find attached the output  of   &quot;iw phy phy info &gt; iw_phy_phy0_info.output&quot;<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Harm Verhagen<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>