[OLSR-users] Bug with recent MadWifi (Atheros) driver on Linux

Joerg Pommnitz (spam-protected)
Wed Feb 21 11:08:49 CET 2007


Hello all,
the current madwifi driver introduces the concept of virtual interfaces that are bound to a certain operations mode (e.g. station, master or adhoc). Different from older drivers one cannot change the mode with Linux's iwconfig command. Instead one has to destroy an interface and the recreate a new one with the same name in the appropriate mode.
Destroying and recreating the interface is something not considered in olsrd. It removes the interface that is used for the output socket, so that further sendto calls fail. Olsrd fails to recover from this situation because the interface apparently doesn't change as far as olsrd is concerned and the error information from the sendto call doesn't trigger any action.
What is the best way to deal with this problem? I'm considering sending a zero byte packet from chk_if_up to see whether the socket is still valid. Any other ideas? A flag in the interface structure that marks the socket as bad?
 
-- 

Regards

       Joerg






		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de




More information about the Olsr-users mailing list