From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH v9] mac80211: Optimize scans on current operating channel.
Date: Wed, 02 Feb 2011 14:12:11 -0800 [thread overview]
Message-ID: <4D49D6BB.1050503@candelatech.com> (raw)
In-Reply-To: <1296682103.5671.41.camel@jlt3.sipsolutions.net>
On 02/02/2011 01:28 PM, Johannes Berg wrote:
> On Wed, 2011-02-02 at 11:22 -0800, Ben Greear wrote:
>
>>> Based on the powersave comments I had earlier, maybe we should remove
>>> that bit for now? Work items here require powersave is disabled, but we
>>> won't do that right now if we're on the same channel.
>>
>> The problem is, if we leave the work_work() in the original
>> manner, the on/off channel state changes are not properly
>> tracked because work blindly assumes it goes off/on channel.
>> This breaks assumptions about when we must call the return-to-channel
>> logic. I think if we do not religiously track the on/off channel
>> state changes it would be too easy to get in a state where we think
>> we are on-channel but haven't actually re-enabled xmit queues, etc.
>
> But if we pretend all work is off-channel, won't it be OK to return from
> off-channel, even if it isn't really another channel?
That should be fine unless a scan can run in conjunction
with work. Then, it could confuse scan's idea of whether it
is off or on channel.
Seems they are currently mutually-exclusive, so I guess
it doesn't matter currently.
I'll take a look at what it would take to do the power-save
stuff and we can then decide if it should be broken into
separate patches...
>> I think I would rather change the work logic to expressly disable/enable
>> powersave. That wouldn't be difficult, would it?
>
> Probably not -- but the code you modified regarding powersave probably
> needs adjustment then.
>
>> I don't think it does anything if we are scanning on-channel
>> with my patch.
>> The enable/disable logic is now in the offchannel code...
>>
>> Do we need to disable it if we are scanning on channel? If so,
>> I can add that explicitly to the scanning code.
>
> Yes, I think we do need to do that, since otherwise we won't actually
> receive any beacons other than from our own AP.
I'm seeing multiple APs reported in my testing. Receiving all beacons
seems to be related to setting the filter properly. I'm using ath9k
though...maybe other nics behave differently about this?
Or maybe my NIC is so busy it never goes to power-save anyway?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2011-02-02 22:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 18:18 [PATCH v9] mac80211: Optimize scans on current operating channel greearb
2011-02-02 18:55 ` Johannes Berg
2011-02-02 19:22 ` Ben Greear
2011-02-02 21:28 ` Johannes Berg
2011-02-02 22:12 ` Ben Greear [this message]
2011-02-03 8:19 ` Johannes Berg
2011-02-04 18:58 ` Ben Greear
2011-02-04 19:09 ` Johannes Berg
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=4D49D6BB.1050503@candelatech.com \
--to=greearb@candelatech.com \
--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).