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, Jun 24, 2008 at 1:47 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> 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?

Not sure myself I already forgotten who asked me to do it. Maybe some
roaming algorithm needs it in the user space.
>
>> +                     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?

Will fix it.
Thanks
Tomas
--
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