linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Luciano Coelho <coelho@ti.com>,
	linville@tuxdriver.com, linux-wireless@vger.kernel.org,
	eliad@wizery.com
Subject: Re: [PATCH v3 1/3] cfg80211/nl80211: add support for scheduled scans
Date: Fri, 13 May 2011 12:52:43 +0200	[thread overview]
Message-ID: <1305283963.3487.12.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <20110513104524.GA14971@redhat.com>

On Fri, 2011-05-13 at 12:45 +0200, Stanislaw Gruszka wrote:

> > because the scheduled scan is a long-term operation and the normal scan
> > is done for a very short time (and the rest of the stack assumes it will
> > complete quickly enough as not to interfere with the connection.
> 
> Hmm, is this drawback of implementation or can not be done technically
> (question to myself :-) ? I can image that in ideal case hardware scanning
> will not affect normal operation, no matter how long it will take.
> Software scan is much worse, since we have to change channels manually.
> We currently share code between software scan and hardware scan in
> mac80211. Perhaps separating hw and sw scan code, would be a good idea
> and allow to consolidate hw scan and sched scan. I planning to look
> at this more closely.

Well, it's also a semantic question. If you trigger a scan, you expect a
result (or an abort) after a while. It could of course be extended with
a new attribute, but the error checking for that gets complicated,
especially if you consider older kernels that would simply ignore that
new attribute.

So basically, the only difference between "trigger scan (scheduled=1)"
and "trigger scheduled scan" (which this implements) would be in
nl80211. Everything else would have to separate them, since there are a
lot of internal things that behave differently depending on whether a
scan is running or not. Add the error checking, and I think we've got a
good case for new API :)

Also, you don't want to implement the scheduled scan in mac80211. This
is a powersaving feature, so that doesn't make sense, and if some
application _really_ needs to emulate it then it can do that itself, it
doesn't need mac80211 to do it for it.

johannes


  reply	other threads:[~2011-05-13 10:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 14:09 [PATCH v3 0/3] cfg80211/mac80211: implementation of scheduled scan Luciano Coelho
2011-05-11 14:09 ` [PATCH v3 1/3] cfg80211/nl80211: add support for scheduled scans Luciano Coelho
2011-05-12 15:05   ` Stanislaw Gruszka
2011-05-12 16:20     ` Luciano Coelho
2011-05-13 10:45       ` Stanislaw Gruszka
2011-05-13 10:52         ` Johannes Berg [this message]
2011-05-13 12:18           ` Luciano Coelho
2011-05-11 14:09 ` [PATCH v3 2/3] mac80211: add support for HW scheduled scan Luciano Coelho
2011-05-11 14:09 ` [PATCH v3 3/3] cfg80211/nl80211: add interval attribute for scheduled scans Luciano Coelho

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=1305283963.3487.12.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=coelho@ti.com \
    --cc=eliad@wizery.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=sgruszka@redhat.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).