Search Linux Wireless

Re: [PATCH 3/4] mac80211: add last beacon time in scan list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> > 
> > 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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux