<p dir="ltr">When you say &quot;1 AP + 1 STA,<br>
or 2 STA at the same time, but all must be on the same radio channel&quot;, are you referring to the restriction when running 2 STA simultaneously or 1 AP and 1 STA simultaneously, or both?</p>
<p dir="ltr">Also, any idea whether 1 AP + 1 STA simultaneously on the same radio is supported by ath9k?</p>
<p dir="ltr">Any performance impacts to the AP when in this mode (does it add contention)?</p>
<p dir="ltr">Thanks,</p>
<p dir="ltr">Jeremy D. Ward, CWNE<br>
(954) 661-4965</p>
<div class="gmail_quot&lt;blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 2015-01-15 at 14:15 +0100, Harm Verhagen wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m looking for a way to have simultaneously  an AP and a wireless client<br>
&gt; with a _single_ wifi device.<br>
&gt;<br>
&gt; I am able to start multiple SSIDs with hostapd, following [1]. This works<br>
&gt; perfectly. I can connect to each SSID. (tested with 4 SSIDS)<br>
&gt;<br>
&gt; This gave me the idea, that if hostapd can create &#39;new&#39; wlan devices. I<br>
&gt; (hopefully) can configure the 2nd  wlan0_0 device as a wifi client.<br>
<br>
It depends on your hardware and driver whether this is possible.  Look<br>
at the output of &quot;iw phy phy0 info&quot;, where you should see stuff like:<br>
<br>
        valid interface combinations:<br>
                 * #{ managed } &lt;= 1, #{ AP } &lt;= 1,<br>
                   total &lt;= 2, #channels &lt;= 1, STA/AP BI must match<br>
                 * #{ managed } &lt;= 2,<br>
                   total &lt;= 2, #channels &lt;= 1<br>
<br>
These lines indicate what your hardware and driver can do at the same<br>
time.  In this case (Intel 6250, iwldvm driver) I can do 1 AP + 1 STA,<br>
or 2 STA at the same time, but all must be on the same radio channel.<br>
<br>
Before starting hostapd (for the AP) and wpa_supplicant (for the STA)<br>
you could create the STA interface yourself:<br>
<br>
iw dev wlan0 interface add wlan0-STA type managed<br>
<br>
which you can then pass to wpa_supplicant for use as a STA/client.<br>
However, note that if you have restrictions on channel numbers (like my<br>
output above does) you&#39;ll have problems connecting the STA to APs on<br>
other channels.<br>
<br>
Dan<br>
<br>
&gt;<br>
&gt; Usecase: For a device thats<br>
&gt; 1) sometimes, when near an AP it needs internet acces for itself (hence the<br>
&gt; required &#39;client&#39; functionality)<br>
&gt; 2) needs to be connected to some other devices, that are only wifi clients.<br>
&gt; (these devices don&#39;t needs to access internet, only direct access to my<br>
&gt; device).<br>
&gt;<br>
&gt;<br>
&gt; I tried letting hostapd create the 2nd interface(wlan0_0)  by just adding<br>
&gt; bss=wlan0_0  to my hostapd config file.  It does create the device, but<br>
&gt; trying to &#39;ifup&#39; that as a client (no security yet)  fails.<br>
&gt;<br>
&gt;<br>
&gt; Anyone have any clues how to achieve this ?<br>
&gt;<br>
&gt; host: linux<br>
&gt; wifi: GWF-3M05 IEEE 80211 Wlan module (usb)<br>
&gt;<br>
&gt; Regards,<br>
&gt; Harm Verhagen<br>
&gt;<br>
&gt; [1] <a href="http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd" target="_blank">http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd</a><br>
&gt; _______________________________________________<br>
&gt; HostAP mailing list<br>
&gt; <a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
&gt; <a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
<br>
<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>
</div>