Jiri Benc wrote : > On Thu, 01 Sep 2005 11:09:16 +0100, Pedro Ramalhais wrote: > > Right, that would need a new interface where all parameters are passed > > at once, > > Then you will lose the possibility of having default parameters.
Just for your information, it's actually trivial to cache parameters in the driver and to apply them in one go using the WE commit mechanism. It's actually even strongly advised, as it make the startup performance much better (fewer reset of the hardware). Many drivers do implement this, such as orinoco.c, atmel.c, airo.c (partial) and ray_cs.c. The performance benefit of implementing it in orinoco.c was actually noticeable. The current API is flexible and allow you to have it both way. When I designed it, I actually thought about passing a big struct with all the parameters to the driver and rejected it because too inflexible. It's even documented in iw_handler.h, and I list other drawbacks of the approach. Pedro, if you want more detail of the commit stuff, please yell... Have fun... Jean - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html