Skip to content

Commit

Permalink
[PATCH] libertas: send reset command directly instead of calling libe…
Browse files Browse the repository at this point in the history
…rtas_reset_device

Ensures that any platform specific code that might live in libertas_reset_device
(for example, OLPC tells the EC to do a GPIO-toggled reset of the wireless
from libertas_reset_device) isn't called.  Could be handled better by
interface-specific callbacks and a flag for "other hardware reset".

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Marcelo Tosatti <marcelo@kvack.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Dan Williams authored and David S. Miller committed Oct 10, 2007
1 parent 64f104e commit b6e99dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,8 +1044,10 @@ static void if_usb_exit_module(void)

lbs_deb_enter(LBS_DEB_MAIN);

list_for_each_entry_safe(cardp, cardp_temp, &usb_devices, list)
libertas_reset_device((wlan_private *) cardp->priv);
list_for_each_entry_safe(cardp, cardp_temp, &usb_devices, list) {
libertas_prepare_and_send_command(cardp->priv, CMD_802_11_RESET,
CMD_ACT_HALT, 0, 0, NULL);
}

/* API unregisters the driver from USB subsystem */
usb_deregister(&if_usb_driver);
Expand Down

0 comments on commit b6e99dd

Please sign in to comment.