]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/libertas/cmdresp.c
libertas: compare the current command with response
[linux-2.6-omap-h63xx.git] / 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);