]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
libertas: compare the current command with response
authorSebastian Siewior <bigeasy@tglx.de>
Tue, 4 Mar 2008 17:22:27 +0000 (18:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Mar 2008 23:36:39 +0000 (18:36 -0500)
instead of with itself.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmdresp.c

index e2b0746c6cb93821c3757cb93d244db0f84a6b35..bdc6a1cc21033f44f1c322e38d2c3a626ab31fc5 100644 (file)
@@ -562,9 +562,7 @@ int lbs_process_rx_command(struct lbs_private *priv)
        }
 
        resp = (void *)priv->upld_buf;
-
-       curcmd = le16_to_cpu(resp->command);
-
+       curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command);
        respcmd = le16_to_cpu(resp->command);
        result = le16_to_cpu(resp->result);