libertas: split wlan_add_card()

Holger Schurig hs4233 at mail.mn-solutions.de
Fri Feb 23 11:18:50 EST 2007


Split wlan_add_card() into a part that just setups kernel
parameters and into the function libertas_activate_card(), which
will implizitly use hardware functions by the started thread.
 
This allows us later to do something like this:
 
 priv = libertas_add_card();
 priv->hw_command_to_host = if_usb_command_to_host;
 priv->hw_xxxx = if_usb_xxxx;
 priv->hw_yyyy = if_usb_yyyy;
 wlan_activate_card()
 
and of course the CF driver can set it's own functions.

Signed-off-by: Holger Schurig <hs4233 at mail.mn-solutions.de>

http://git.infradead.org/?p=users/schurig/libertas-cleanups-2.6.git;a=commitdiff;h=8222db63de8c269d8d6d5e1198130fd4f03aaf6a
 
---
 
TODO: the error path is not yet fully correct. Ideally, I want to
get rid of most of the "goto XXX" lines and always call
wlan_remove_card(), which would then, based on the set variables,
do the right thing to deinit everything. That's a work for this
evening, because now I'm going  home :-)



More information about the libertas-dev mailing list