From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: Life-time of scan-results?
Date: Fri, 18 Sep 2009 16:12:49 +0200 [thread overview]
Message-ID: <200909181612.49412.hs4233@mail.mn-solutions.de> (raw)
In-Reply-To: <200909181507.59420.hs4233@mail.mn-solutions.de>
Currently, before returning scan results, cfg80211_bss_expire()
get's called. It deletes BSSs that are older than
IEEE80211_SCAN_RESULT_EXPIRE.
I propose to change cfg80211_bss_expire() so that it doesn't
hard-code NL80211_CMD_TRIGGER_SCAN anymore, but has a new
parameter, say "int expire".
Then NL80211_CMD_TRIGGER_SCAN get's a new optional attribute, say
NL80211_ATTR_SCAN_EXPIRE.
If that attribut exists when calling NL80211_CMD_TRIGGER_SCAN,
it's value will be used to call cfg80211_bss_expire(). If the
value is zero, cfg80211_bss_expire() triggers the whole
rdev->bss_list. That means we do a completely fresh scan.
If it doesn't exists, cfg80211_bss_expire() won't be called at
scan-trigger time.
NL80211_CMD_GET_SCAN could get this attribute as well. If
not specified, then the default of NL80211_CMD_TRIGGER_SCAN will
be used. That is, just right now, the rdev->bss_list will expire
like now.
However, if a value will be specified, then the bss_list will be
expired with the specified expiry time.
Specifying zero doesn't make sense here, because that would zap
the freshly made bss list. So a zero could mean "Don't expire
anything".
That way user-space could ask for what has scanned the last time,
even when this has been one hour ago --- with no scans in the
meantime.
Does this make sense?
--
http://www.holgerschurig.de
prev parent reply other threads:[~2009-09-18 14:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-18 12:18 Life-time of scan-results? Holger Schurig
2009-09-18 13:07 ` Holger Schurig
2009-09-18 14:12 ` Holger Schurig [this message]
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=200909181612.49412.hs4233@mail.mn-solutions.de \
--to=hs4233@mail.mn-solutions.de \
--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