From: Luciano Coelho <coelho@ti.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Stanislaw Gruszka <sgruszka@redhat.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 15:18:06 +0300 [thread overview]
Message-ID: <1305289086.12586.1111.camel@cumari> (raw)
In-Reply-To: <1305283963.3487.12.camel@jlt3.sipsolutions.net>
On Fri, 2011-05-13 at 12:52 +0200, Johannes Berg wrote:
> 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 :)
I agree. I think it's better to keep it simpler with a new command.
Especially because the scheduled scan command will be extended with a
few more arguments, which may not make sense with normal scans, such as
filters etc.
--
Cheers,
Luca.
next prev parent reply other threads:[~2011-05-13 12:18 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
2011-05-13 12:18 ` Luciano Coelho [this message]
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=1305289086.12586.1111.camel@cumari \
--to=coelho@ti.com \
--cc=eliad@wizery.com \
--cc=johannes@sipsolutions.net \
--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