From: Ben Greear <greearb@candelatech.com>
To: hostap@lists.shmoo.com,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: RFC/PATCH: Allow wpa_supplicant to share scan results.
Date: Tue, 16 Nov 2010 14:52:07 -0800 [thread overview]
Message-ID: <4CE30B17.6090109@candelatech.com> (raw)
In-Reply-To: <20101116223658.GA5310@jm.kir.nu>
On 11/16/2010 02:36 PM, Jouni Malinen wrote:
> On Tue, Nov 16, 2010 at 11:57:09AM -0800, Ben Greear wrote:
>> I earlier attempted to put this sharing/propagation directly into
>> the kernel (instead of -EBUSY, the kernel would just keep a list of
>> interested interfaces and then send results to all interested parties).
>>
>> However, Johannes didn't like this approach, so I'm trying to do a
>> similar thing in user-space.
>
> Johannes is not the only one having something against the kernel
> approach.. ;-)
Well, this is all good for supplicant, but same problem exists for
un-encrypted interfaces that use the built-in kernel scanning. However,
I can carry my own patch if needed..it's still useful to get this
working with supplicant.
>> My understanding is that you cannot
>> read scan results from the kernel for one VIF if they were initiated on another
>> VIF. I might be wrong about that, however. At any rate, you certainly can't
>> have two VIFS on the same phy scanning at the same time, as you get -EBUSY instead.
>> That makes wpa_supplicant take a long time to scan& associate lots
>> of VIFS, and speeding that up is my primary goal at this point.
>
> Hmm.. Maybe I'm missing something in your patch, but it seems to be
> doing exactly what you are describing it should not be doing.. It seems
Ok, I think I mis-understood your original question. You can read shared results
from wpa_supplicant data structures..but not directly from the kernel.
> to share the scan-done event with all interfaces that are from the same
> radio and then each interface would try to read the scan result from
> their own VIF which would be different from the one that actually
> initiated the scan.. Similarly, I did not notice any changes that would
> actually restrict requesting new scans when there is a known scan
> request pending on another interface that shares the same radio.
>
> Are these still waiting to be implemented or did I miss something in
> your patch? Anyway, they approach in the newer version looked reasonable
> to me based on what I believe you are now trying to do.
I wasn't planning to add further restrictions. Currently, other vifs
making requests would get EBUSY, and that seems to be handled fine.
It's *possible* that someday multiple VIFs can scan simultaneously
in the kernel, so I don't think it's worth adding extra checks in supplicant.
>> One other thing I was worried about: My patch is going to send scan results
>> to interfaces that have not successfully requested them (they may have not
>> requested at all, or they may have tried and received EBUSY). Will that be
>> an issue?
>
> If your assumption above is correct, yes. Instead of sharing the
> scan-done event, this change should like share the scan_res from
> wpa_supplicant_get_scan_results() for all interfaces sharing the radio.
Something is needed to kick the other VIFs and tell them there are
scan results available. That is why I put the logic in events.c
as I did.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2010-11-16 22:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-16 0:22 RFC/PATCH: Allow wpa_supplicant to share scan results Ben Greear
2010-11-16 9:45 ` Jouni Malinen
2010-11-16 17:03 ` Ben Greear
2010-11-16 19:31 ` Jouni Malinen
2010-11-16 19:57 ` Ben Greear
2010-11-16 22:36 ` Jouni Malinen
2010-11-16 22:52 ` Ben Greear [this message]
2010-11-16 23:16 ` Johannes Berg
2010-11-16 23:40 ` Ben Greear
2010-11-16 20:39 ` Ben Greear
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=4CE30B17.6090109@candelatech.com \
--to=greearb@candelatech.com \
--cc=hostap@lists.shmoo.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).