From: Ben Greear <greearb@candelatech.com>
To: Jouni Malinen <j@w1.fi>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH 2/2] mac80211: Allow scanning single channel if other VIF is associated.
Date: Wed, 29 Sep 2010 08:27:56 -0700 [thread overview]
Message-ID: <4CA35AFC.8050106@candelatech.com> (raw)
In-Reply-To: <20100929054841.GB8382@jm.kir.nu>
On 09/28/2010 10:48 PM, Jouni Malinen wrote:
> On Tue, Sep 28, 2010 at 08:17:04AM -0700, Ben Greear wrote:
>> On 09/28/2010 06:57 AM, Johannes Berg wrote:
>>> You can run all networks in a single wpa_s instance, I believe, and then
>>> it'd know about all this, right?
>>
>> But then, if you want to add an additional interface, you have to restart
>> everything.
>
> We would you restart everything? You can add/remove interface
> dynamically..
I prefer to run one supplicant process per interface..just makes
everything easier in my environment.
>> I was thinking that maybe I could keep the logic in wpa_s, but instead of
>> all the special casing, just locate the current associated channel for the
>> phy in question and populate the scan-req with that single channel.
>
> wpa_supplicant already stores the operating channel: wpa_s->assoc_freq.
> You can iterate over the configured interfaces and fetch the current
> operating channel(s) using that without adding anything new to the
> kernel. With that, you could make some wpa_supplicant scans (e.g.,
> bgscan or scan for new networks if only a single network block is
> enabled) restrict the list of channels to scan. Still, some other scan
> requests (e.g., user initiated full scan or P2P Search) would need to be
> able to specify more channels even if one of the interfaces is
> associated.
Even if wpa_supplicant can work around this in user-space, the kernel
scanning logic for non-supplicant controlled interfaces still needs
the kernel portion.
That said, it looks like the patch is DOA as Johannes doesn't like
it at all, so I'll quite submitting it :)
> I would like to get rid of the one-channel-per-phy restriction, so I
> don't think I would like to see new code added for that.
If that ever happened, then the can_scan_one logic could simply indicate
you want to scan only on associated channels, not all of them. It
would still help by not scanning on channels you have no intention
of using because other VIFs are already associated on channels you do
wish to use.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2010-09-29 15:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 0:07 [PATCH 1/2] ath9k: Check for identical channels when changing channels greearb
2010-09-28 0:07 ` [PATCH 2/2] mac80211: Allow scanning single channel if other VIF is associated greearb
2010-09-28 7:22 ` Johannes Berg
2010-09-28 13:50 ` Ben Greear
2010-09-28 13:57 ` Johannes Berg
2010-09-28 15:17 ` Ben Greear
2010-09-28 15:18 ` Johannes Berg
2010-09-29 5:48 ` Jouni Malinen
2010-09-29 15:27 ` Ben Greear [this message]
2010-09-28 8:51 ` [PATCH 1/2] ath9k: Check for identical channels when changing channels Felix Fietkau
2010-09-28 13:37 ` Ben Greear
2010-09-28 14:05 ` Felix Fietkau
2010-09-28 15:22 ` 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=4CA35AFC.8050106@candelatech.com \
--to=greearb@candelatech.com \
--cc=j@w1.fi \
--cc=johannes@sipsolutions.net \
--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).