libertas: fix command timeout after firmware failure
authorBrian Cavagnolo <[email protected]>
Tue, 13 May 2008 12:54:59 +0000 (13:54 +0100)
committerJohn W. Linville <[email protected]>
Fri, 16 May 2008 21:15:09 +0000 (17:15 -0400)
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 <[email protected]>
Signed-off-by: Javier Cardona <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/libertas/main.c

index 406f54d409563ec85ccecdd5e665dc44d21e01c1..bb08f0b86c6b00d46c4fddc573e9622f200ea88e 100644 (file)
@@ -756,6 +756,7 @@ static int lbs_thread(void *data)
                                priv->nr_retries = 0;
                        } 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);