diff options
author | Dan Williams <dcbw@redhat.com> | 2007-08-20 12:22:15 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:50:35 -0400 |
commit | b6e99dd6e2c5262e3c2b976d1d5f2c9405433d9a (patch) | |
tree | 23ce573dd63f7efb919972c00a6c490f15e9d536 | |
parent | 64f104e89b2b30107a21c5f05c3e2ffa6291e129 (diff) |
[PATCH] libertas: send reset command directly instead of calling libertas_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>
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index 105a00a7025d..8a3c70e54075 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c | |||
@@ -1044,8 +1044,10 @@ static void if_usb_exit_module(void) | |||
1044 | 1044 | ||
1045 | lbs_deb_enter(LBS_DEB_MAIN); | 1045 | lbs_deb_enter(LBS_DEB_MAIN); |
1046 | 1046 | ||
1047 | list_for_each_entry_safe(cardp, cardp_temp, &usb_devices, list) | 1047 | list_for_each_entry_safe(cardp, cardp_temp, &usb_devices, list) { |
1048 | libertas_reset_device((wlan_private *) cardp->priv); | 1048 | libertas_prepare_and_send_command(cardp->priv, CMD_802_11_RESET, |
1049 | CMD_ACT_HALT, 0, 0, NULL); | ||
1050 | } | ||
1049 | 1051 | ||
1050 | /* API unregisters the driver from USB subsystem */ | 1052 | /* API unregisters the driver from USB subsystem */ |
1051 | usb_deregister(&if_usb_driver); | 1053 | usb_deregister(&if_usb_driver); |