Re: [Madwifi-devel] understanding TSF values in beacons
Status: Beta
Brought to you by:
otaku
From: Bruno R. <br...@ei...> - 2010-10-28 00:38:45
|
On Thu October 28 2010 06:38:01 Eduard GV wrote: > On Wed, Oct 27, 2010 at 7:22 AM, Bruno Randolf wrote: > > The beacon is not sent immediately when it's queued, but at the time in > > the NBTT register (TIMER0, Next Beacon Target Time - in TU). > > I don't know if that is enough to explain your factor of 10? > > Interesting. This is for sure one possible source of the problem. So > the beacon leaves the queue at NBTT (if the medium is idle). Is this > NBTT accessible from the driver? Maybe the variable nexttbtt? Yes sc->sc_nexttbtt. The same value should also be in the HW register *_TIMER0. I'd rely on the HW value instead of the variable though... bruno |