aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_usb.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-06 09:36:11 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:01 -0500
commite775ed7c677b163c80643036c32e23d3e59b9429 (patch)
tree909af580ca37910f462b613ba60a4e97e3035209 /drivers/net/wireless/libertas/if_usb.c
parentf5ece8fc8d3f5e36bda3554b74b0fbecb0a14309 (diff)
libertas: Consolidate lbs_host_to_card_done() function.
As we move towards having this done by a state machine, start by having a single 'stuff sent' function, which is called by if_usb/if_sdio/if_cs after sending both data and commands. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_usb.c')
-rw-r--r--drivers/net/wireless/libertas/if_usb.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index c27ffcfdbe88..418dcab8b1cc 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -66,22 +66,8 @@ static void if_usb_write_bulk_callback(struct urb *urb)
66 /* Used for both firmware TX and regular TX. priv isn't 66 /* Used for both firmware TX and regular TX. priv isn't
67 * valid at firmware load time. 67 * valid at firmware load time.
68 */ 68 */
69 if (priv) { 69 if (priv)
70 struct lbs_adapter *adapter = priv->adapter; 70 lbs_host_to_card_done(priv);
71 struct net_device *dev = priv->dev;
72
73 priv->dnld_sent = DNLD_RES_RECEIVED;
74
75 /* Wake main thread if commands are pending */
76 if (!adapter->cur_cmd)
77 wake_up_interruptible(&priv->waitq);
78
79 if (adapter->connect_status == LBS_CONNECTED)
80 netif_wake_queue(dev);
81
82 if (priv->mesh_dev && (adapter->mesh_connect_status == LBS_CONNECTED))
83 netif_wake_queue(priv->mesh_dev);
84 }
85 } else { 71 } else {
86 /* print the failure status number for debug */ 72 /* print the failure status number for debug */
87 lbs_pr_info("URB in failure status: %d\n", urb->status); 73 lbs_pr_info("URB in failure status: %d\n", urb->status);