From: Arend van Spriel <arend@broadcom.com>
To: Gucea Doru <gucea.doru@gmail.com>, <eccopark@broadcom.com>,
<linux-wireless@vger.kernel.org>
Subject: Re: bcmdhd: Concurrent use of wlan0 and virtual interface in managed mode
Date: Mon, 24 Aug 2015 10:08:29 +0200 [thread overview]
Message-ID: <55DAD0FD.3070807@broadcom.com> (raw)
In-Reply-To: <CANfLQrbXn2pLjVY8DVC=xs9oWZC2nX3VcEZQMLh1zQa7i4EHCg@mail.gmail.com>
On 08/23/2015 05:15 PM, Gucea Doru wrote:
> Hello, community
As you are using bcmdhd I don't think this particular community cares a
lot about it. But I will take the bait ;-)
> I'm a Master student doing my research on a subject related to Android
> and multiple paths between two nodes. What I try to do now is to allow
> a client to connect to multiple APs (Access Points).
>
> I started with the simplest use-case where I have only two APs (AP1
> and AP2) and an Android client - a Nexus 5 device running the Kernel
> from [1]. For the connection with AP1 I used the already present
> interface wlan0. For the connection with AP2 I tried to use a newly
> created virtual interface but the wpa_supplicant connection is not
> successful. I'm not sure if this is a driver limitation or a driver
> bug.
I am not sure either. For the upstream brcmfmac we don't allow it at the
moment. I am kinda surprised you were able to create the additional
interface. There are a couple of things that I can think of here which
may cause issues:
- APs operating on different channels.
- Both STA interfaces have powersave enabled.
- Firmware/driver do not support multi STA.
If APs are operating on the same channel it may work, but you probably
won't have advantage of MP-TCP because of medium use.
Regards,
Arend
> I will detail what I've done. After killing the wpa_supplicant process
> I followed the steps:
> --- Created a virtual interface in the station mode ---
> root@hammerhead:/ # iw phy phy0 interface add vif_AP2 type station
> root@hammerhead:/ # ip link set dev vif_AP2 address 64:89:9a:81:0f:22
> root@hammerhead:/ # ip link set dev vif_AP2 up
>
> ---- Connection to AP1 - SUCCESS ----
> root@hammerhead:/data # wpa_supplicant -iwlan0 -c/data/tmp/preshared_key_AP1
> The dmesg log from [2] proved that the connection was successful.
>
> ---- Connection to AP2 - FAILED ----
> root@hammerhead:/ # wpa_supplicant -ivif_AP2 -c/data/tmp/preshared_key_AP2
> The dmesg log from [3] proved that the connection failed.
>
> It seems that the connection error is due to a failed PNO setup [3].
> Also, the failed PNO setup seems to prevent the AP scanning process
> from running. More accurate, what is this PNO setup? I looked into the
> Kernel code [4] but I can't figure it out how I could avoid this
> error.
PNO is preferred network offload in which firmware is configured with a
number of ssids and it will notify host when it finds one of those.
wpa_supplicant will do a couple of regular scans after which it requests
a scheduled_scan which the driver will use to configure PNO in firmware.
Looking at the log in [3] I get the impression this multi-STA thing is
not working at all. The regular scans don't find any AP, which is
already suspect. The PNO setup is rejected by the driver, because the
other interface is already connected to AP1.
Regards,
Arend
> [1] https://github.com/gdetal/mptcp_nexus5
> [2] https://drive.google.com/file/d/0B5SBH08PU_ChYzNIV3VxUWlqWGs/view?usp=sharing
> [3] https://drive.google.com/file/d/0B5SBH08PU_ChNHdOck5UbjNERjQ/view?usp=sharing
> [4] https://github.com/gdetal/mptcp_nexus5/blob/master/drivers/net/wireless/bcmdhd/dhd_pno.c
>
> Any help is greatly appreciated,
> Doru
>
next prev parent reply other threads:[~2015-08-24 8:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-23 15:15 bcmdhd: Concurrent use of wlan0 and virtual interface in managed mode Gucea Doru
2015-08-24 8:08 ` Arend van Spriel [this message]
2015-08-25 21:05 ` Gucea Doru
[not found] ` <CAG8K7gRdXqpfA3_HPoaM+ivgxH4eiPRWkD238QwMMbNigYHDBw@mail.gmail.com>
[not found] ` <CANfLQraZAkw0Eqt-Mog5t4ZfGFx3xm_8-6nJoJ68Mim18bW3Tg@mail.gmail.com>
2015-09-07 20:41 ` Fwd: " Gucea Doru
2015-09-07 21:01 ` Arend van Spriel
2015-09-08 7:50 ` Gucea Doru
2015-09-08 9:24 ` Arend van Spriel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DAD0FD.3070807@broadcom.com \
--to=arend@broadcom.com \
--cc=eccopark@broadcom.com \
--cc=gucea.doru@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).