[PATCH stable] libertas: fix command resent to firmware after timeout.
Brian Cavagnolo
brian at cozybit.com
Mon May 12 13:24:39 EDT 2008
This is a fix for OLPC ticket #6586: "SCAN command fails, timer doesn't fire" In
fact, the timer was firing. The problem was that the dnld_sent state variable
was not being updated after the timer expired, so lbs_execute_next_command was
not being called.
Signed-off-by: Brian Cavagnolo <brian at cozybit.com>
Signed-off-by: Javier Cardona <javier at cozybit.com>
---
drivers/net/wireless/libertas/main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index e012d08..f327383 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -771,6 +771,7 @@ static int lbs_thread(void *data)
#endif
} else {
priv->cur_cmd = NULL;
+ priv->dnld_sent = DNLD_RES_RECEIVED;
lbs_pr_info("requeueing command %x due to timeout (#%d)\n",
le16_to_cpu(cmdnode->cmdbuf->command), priv->nr_retries);
--
1.5.2.5
More information about the Devel
mailing list