tech-net archive

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

Re: detecting loss of access point (link status monitoring fix?)



On Tue, Apr 27, 2010 at 02:20:40PM -0400, Eric Naud wrote:
> > That sounds like it will work.  The idea of a driver using the
> net80211
> > stats in that way doesn't sit well, but I cannot think of a better
> > solution that is also as parsimonious.
> > 
> > Dave
> > 
> > --
> > David Young             OJC Technologies
> > dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933
> 
> Hello Dave, 
> 
> I agree, using the stats in such was way didn't seem right, so I came up
> with another approach to detecting an AP disconnect. Now I pass in a
> timestamp to the ieee80211_input function via the currently unused
> rstamp parameter. This in turn populates the ni_rstamp iee80211node
> structure member with the last received timestamp.  

That looks better.  It's too bad that the NIC does not provide an Rx
timestamp like other WLAN NICs do!

You can extract a timestamp from the beacons, btw.  It might (or might
not) be less costly than a microtime(9) call.

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index