[PATCH] libertas: automatically re-associate

Holger Schurig hs4233 at mail.mn-solutions.de
Tue Oct 9 11:13:35 EDT 2007


> Seriously though, even if other drivers don't do it, that
> doesn't mean libertas shouldn't do it.  If the association
> fails, doesn't this mean the card just keeps working and keeps
> trying to associate forever?

Yes, with a HZ/4 rate.

Maybe in the meantime the user is configuring the right WEP key 
into his AP?



> It's not that much more complicated to add an item to the
> association structure for 'count' and to check that from the
> disassociation event code, and just not reschedule association
> if that's > 4.

And after this 4 tries the device is again stuck?  That's not 
nice.

Therefore you need some heuristic (I don't dare to name this 
logic) to reset this counter again. But when do you do it?  If 
you say "5 Minutes", then I simply change my HZ/4 into HZ*60*5 
and have the same effect.

So I see that my HZ/4 is as arbitrary as your 4, but my version 
is fail-safe, because when you move away from a mis-configured 
AP to a right on, the device will automatically re-associate. 
You see, I aim for a roaming client, not for a device that stays 
put at some office desktop.


We also get disassociated from an AP when we're away from the 
channel for too long, busy scanning for a better AP. The case 
where someone clicks on a "Deassociate Client") is neglibibly. 

But even when I want to have it work automatically, and without 
any manual user interaction at the WLAN client.



More information about the libertas-dev mailing list