aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmdresp.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-17 15:22:43 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:07:44 -0500
commit7003b078c82d141216deecef4de154711a107aab (patch)
treede77a9a0c8cdb792200ac757f7c454384c06128c /drivers/net/wireless/libertas/cmdresp.c
parentac4cced6e850496b66c0825b7f74d51ef02c6371 (diff)
libertas: use priv->upld_buf for command responses
If we don't scribble over the command we sent, then we can retry it when the firmware responds with 0x0004 (which means -EAGAIN). Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index d305e982c502..4d384612afa7 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -639,7 +639,7 @@ int lbs_process_rx_command(struct lbs_private *priv)
639 goto done; 639 goto done;
640 } 640 }
641 641
642 resp = priv->cur_cmd->cmdbuf; 642 resp = (void *)priv->upld_buf;
643 643
644 curcmd = le16_to_cpu(resp->command); 644 curcmd = le16_to_cpu(resp->command);
645 645