linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Tomas Winkler <tomas.winkler@intel.com>,
	linville@tuxdriver.com, yi.zhu@intel.com,
	linux-wireless@vger.kernel.org,
	Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Subject: Re: [PATCH 3/4] mac80211: add last beacon time in scan list
Date: Tue, 24 Jun 2008 07:09:13 -0400	[thread overview]
Message-ID: <1214305753.12270.5.camel@localhost.localdomain> (raw)
In-Reply-To: <1214304433.8967.277.camel@johannes.berg>

On Tue, 2008-06-24 at 12:47 +0200, Johannes Berg wrote:
> On Tue, 2008-06-24 at 13:38 +0300, Tomas Winkler wrote:
> > From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
> > 
> > This patch adds the interval between the scan results and the last time a
> > beacon was received in the result of the scan.
> 
> Why do we need this?

Sometimes it's nice to see when the beacon was last seen, since the
driver holds onto BSSs for a while, you don't know how long they've been
in the scan list.  If you only cared about the newest BSSs you could use
this to ignore certain APs from the scan list.

Would be nice to push this attribute back with nl80211 as well.

Dan

> 
> > +			memset(&iwe, 0, sizeof(iwe));
> > +			iwe.cmd = IWEVCUSTOM;
> > +			sprintf(buf, " Last beacon: %dms ago",
> > +				jiffies_to_msecs(jiffies - bss->last_update));
> 
> Is there no time_between() or something that accounts for wraparound?
> 
> johannes


  reply	other threads:[~2008-06-24 11:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-24 10:37 [PATCH 0/4] Minor WEXT fixes Tomas Winkler
2008-06-24 10:37 ` [PATCH 1/4] mac80211: don't return -EINVAL upon iwconfig wlan0 rts auto Tomas Winkler
2008-06-24 10:37   ` [PATCH 2/4] mac80211: update the authentication method Tomas Winkler
2008-06-24 10:38     ` [PATCH 3/4] mac80211: add last beacon time in scan list Tomas Winkler
2008-06-24 10:38       ` [PATCH 4/4] mac80211: add phy information to giwname Tomas Winkler
2008-06-24 10:42         ` Michael Buesch
2008-06-24 10:45           ` Johannes Berg
2008-06-24 10:54           ` Tomas Winkler
2008-06-24 11:03             ` Johannes Berg
2008-06-24 11:08               ` Tomas Winkler
2008-06-24 11:08             ` Michael Buesch
2008-06-24 11:28               ` Tomas Winkler
2008-06-24 14:03             ` Kalle Valo
2008-06-24 16:59               ` Tomas Winkler
2008-06-25 17:55                 ` Kalle Valo
2008-06-24 10:47       ` [PATCH 3/4] mac80211: add last beacon time in scan list Johannes Berg
2008-06-24 11:09         ` Dan Williams [this message]
2008-06-24 11:19           ` Johannes Berg
2008-06-24 11:12         ` Tomas Winkler
2008-06-24 10:49     ` [PATCH 2/4] mac80211: update the authentication method Johannes Berg
2008-06-24 11:03     ` Dan Williams
2008-06-24 10:47   ` [PATCH 1/4] mac80211: don't return -EINVAL upon iwconfig wlan0 rts auto 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=1214305753.12270.5.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=emmanuel.grumbach@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=tomas.winkler@intel.com \
    --cc=yi.zhu@intel.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).