linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: linux-wireless@vger.kernel.org,
	"Luis R. Rodriguez" <mcgrof@gmail.com>,
	Aeolus.Yang@atheros.com,
	Senthil Balasubramanian <senthilkumar@atheros.com>,
	Gaurav.Jauhar@atheros.com
Subject: Re: Scan while TX/RX'ing a lot of data
Date: Fri, 15 May 2009 19:15:53 -0400	[thread overview]
Message-ID: <1242429353.10933.32.camel@localhost.localdomain> (raw)
In-Reply-To: <200905151011.50915.hs4233@mail.mn-solutions.de>

On Fri, 2009-05-15 at 10:11 +0200, Holger Schurig wrote:
> On Thursday 14 May 2009 20:54:58 Dan Williams wrote:
> > Libertas splits scans up into 3 parts with a short return to
> > the operating channel between each part.  There's nothing that
> > requires cfg80211 for that to work...
> 
> Hey, it's up-to 4 channels (MRVDRV_MAX_CHANNELS_PER_SCAN).
> 
> Yeah, I had to implement this "stuttering scan" because the 
> firmware that I had access to cannot send 
> power-save-null-packets to the AP. Without that, I could not 
> notify to the current AP that I'm away, and if the AP has data 
> for me, which I don't ack for more than 1000ms, then the AP 
> might have disassociated me in the mean-time.
> 
> 
> So basically I changed the scanning into a state-machine. I get a 
> list of channels to scan (e.g. "all channels", if the request 
> comes from WEXT). The a scan-worker calls the logic of the 
> state-machine. The state-machine does it's work and either 
> re-schedules the workqueue. Or, if every channel has been 
> visitied, it emits the SIOCGIWSCAN event.
> 
> It a bit more complicated, because one can force a full scan 
> (e.g. when initially associating).
> 
> 
> > Something I've tossed around for a while is counting traffic
> > on the device and if its over a certain bitrate for a period
> > of time, postpone the scan for a while.  But after a certain
> > amount of time, there's going to be a scan no matter what.
> 
> Traffic could for example modify the time for delays between 
> re-schedules of the scan-state-machine.
> 
> 
> > Secondarily, scanning is a tradeoff between better roaming
> > latency and continuous high throughput.
> 
> Kind of a QoS thingy?
> 
> 
> > If you don't scan, 
> > you have no idea what's around, and when you move and the
> > current AP becomes marginal, you *have* to take the hit no
> > matter what, so you can scan and find a new AP to associate
> > with.
> 
> TeX does it's layouting by minimizing (calculated) uglyness. 
> Maybe a background-scan-decision can be done on (calculated) 
> urgentness?  E.g. if background scan is enabled at all, the 
> urgentness of background scan increases in time. "Huge" amount 

Well, what does "background scan" mean?  mac80211 will obviously accept
beacons from APs on the same channel and happily add them to the scan
list.  But a background scan would imply that the card itself is taking
over the decision about when to jump around and scan, basically the same
thing NM is doing, right?  When would the card/stack decided to
background scan, and what channels would it background scan on?  If it
doesn't do more or less all passive channels, then it wouldn't be that
useful for figuring out the site survey data.

Dan



  parent reply	other threads:[~2009-05-15 23:15 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 17:52 Scan while TX/RX'ing a lot of data Luis R. Rodriguez
2009-05-14 18:54 ` Dan Williams
2009-05-14 19:06   ` Johannes Berg
2009-05-14 20:50     ` Dan Williams
2009-05-14 20:53       ` Johannes Berg
2009-05-14 19:07   ` Luis R. Rodriguez
2009-05-14 20:57     ` Dan Williams
2009-05-14 21:26       ` Luis R. Rodriguez
2009-05-14 22:17         ` Luis R. Rodriguez
2009-05-16  6:12         ` Luis R. Rodriguez
2009-05-16  6:15           ` Luis R. Rodriguez
2009-05-16 12:57           ` Johannes Berg
2009-05-18 12:38             ` John W. Linville
2009-05-18 17:52               ` Luis R. Rodriguez
2009-05-18 13:43             ` Helmut Schaa
2009-05-19  9:06               ` Johannes Berg
2009-05-20 11:41                 ` Helmut Schaa
2009-05-20 11:44                   ` Johannes Berg
2009-05-20 13:43                     ` Helmut Schaa
2009-05-20 13:53                       ` Johannes Berg
2009-05-18 18:06             ` Luis R. Rodriguez
2009-05-19  9:09               ` Johannes Berg
2009-05-15  8:11   ` Holger Schurig
2009-05-15  8:31     ` Johannes Berg
2009-05-15 23:15     ` Dan Williams [this message]
2009-05-16 12:48       ` Johannes Berg
2009-05-18 15:35         ` Dan Williams

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=1242429353.10933.32.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=Aeolus.Yang@atheros.com \
    --cc=Gaurav.Jauhar@atheros.com \
    --cc=hs4233@mail.mn-solutions.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    --cc=senthilkumar@atheros.com \
    /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).