aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-08-02 11:36:22 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:46 -0400
commiteedc2a319154a64f5ca7f281c92b7af3691fe73c (patch)
tree10acaedc97f4c6a59d33f2f7f78ddc635004976a /drivers/net/wireless/libertas/main.c
parentffcae953ac021f5051a201c18e133cb0ce38c2b9 (diff)
[PATCH] libertas: move generic firmware reset command to common code
It's not USB specific, so move it out of the USB interface code. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index b9e4bf293224..589c583ddbeb 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -1157,6 +1157,20 @@ void libertas_interrupt(struct net_device *dev)
1157} 1157}
1158EXPORT_SYMBOL_GPL(libertas_interrupt); 1158EXPORT_SYMBOL_GPL(libertas_interrupt);
1159 1159
1160int libertas_reset_device(wlan_private *priv)
1161{
1162 int ret;
1163
1164 lbs_deb_enter(LBS_DEB_MAIN);
1165 ret = libertas_prepare_and_send_command(priv, CMD_802_11_RESET,
1166 CMD_ACT_HALT, 0, 0, NULL);
1167 msleep_interruptible(10);
1168
1169 lbs_deb_leave_args(LBS_DEB_MAIN, "ret %d", ret);
1170 return ret;
1171}
1172EXPORT_SYMBOL_GPL(libertas_reset_device);
1173
1160static int libertas_init_module(void) 1174static int libertas_init_module(void)
1161{ 1175{
1162 lbs_deb_enter(LBS_DEB_MAIN); 1176 lbs_deb_enter(LBS_DEB_MAIN);