]> err.no Git - linux-2.6/commit
[PATCH] libertas: split wlan_add_card()
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Fri, 25 May 2007 16:04:31 +0000 (12:04 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jun 2007 18:28:38 +0000 (14:28 -0400)
commit32a74b7c8f7b883b532e0e4333b7c3014d3d8fe8
treeef19ed4732bfd73818f6ddfc83b90e2b3eb4363d
parent3874d0fefd965eedfc7f8e0a5459ddf914eb4306
[PATCH] libertas: split wlan_add_card()

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@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/decl.h
drivers/net/wireless/libertas/if_usb.c
drivers/net/wireless/libertas/main.c