mix AP and wireless client

Harm Verhagen harm.verhagen at gmail.com
Wed Jan 21 05:05:10 EST 2015


Ignoring the lack  of "valid interface combinations:"    just trying a 2nd
interface

    iw dev wlan0 interface add wlan0-STA type managed

    ip link set dev wlan0-STA address 7C:CD:EF:00:01:02    # prevent  "Name
not unique on network" error

ifup wlan0-STA    works fine as STA, connects and gets ip.

But then upping wlan (just a static ip, no hostapd yet) fails

    $ ifup wlan0

    ifconfig: SIOCSIFFLAGS: No buffer space available

    ifconfig: SIOCSIFFLAGS: No buffer space available


What could cause such a "No buffer space available" ?

Regards,
Harm


On Wed, Jan 21, 2015 at 9:45 AM, Harm Verhagen <harm.verhagen at gmail.com>
wrote:

>
>
> On Thu, Jan 15, 2015 at 6:51 PM, Dan Williams <dcbw at redhat.com> wrote:
>
>>
>> > This gave me the idea, that if hostapd can create 'new' wlan devices. I
>> > (hopefully) can configure the 2nd  wlan0_0 device as a wifi client.
>>
>> It depends on your hardware and driver whether this is possible.  Look
>> at the output of "iw phy phy0 info", where you should see stuff like:
>>
>>         valid interface combinations:
>>                  * #{ managed } <= 1, #{ AP } <= 1,
>>                    total <= 2, #channels <= 1, STA/AP BI must match
>>                  * #{ managed } <= 2,
>>                    total <= 2, #channels <= 1
>>
>> These lines indicate what your hardware and driver can do at the same
>> time.  In this case (Intel 6250, iwldvm driver) I can do 1 AP + 1 STA,
>> or 2 STA at the same time, but all must be on the same radio channel.
>>
>>
> I got myself iw on the platform.
>
> "iw phy phy0 info"  however does not show any  "valid interface
> combinations:" section.  Should it ?
>
> Does this mean my hardware does not support it ?  Or does it mean
> something else. (wrong iw/driver/kernel version?)
>
> $ iw --version
> iw version 3.11
>
> kernel: 3.1.10
>
> find attached the output  of   "iw phy phy info > iw_phy_phy0_info.output"
>
> Regards,
> Harm Verhagen
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20150121/3cefecfb/attachment.htm>


More information about the HostAP mailing list