libertas: fix the 'compare command with itself' properly
authorSebastian Siewior <bigeasy@tglx.de>
Thu, 6 Mar 2008 09:30:21 +0000 (10:30 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Mar 2008 19:13:40 +0000 (15:13 -0400)
|libertas: Invalid CMD_RESP 8012 to command 50!

The special case got mixed up in 8a96df80b3.

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

index bdc6a1cc21033f44f1c322e38d2c3a626ab31fc5..f0ef7081bdeba69c4213e32e529b0477149ee3aa 100644 (file)
@@ -578,7 +578,7 @@ int lbs_process_rx_command(struct lbs_private *priv)
                goto done;
        }
        if (respcmd != CMD_RET(curcmd) &&
-           respcmd != CMD_802_11_ASSOCIATE && curcmd != CMD_RET_802_11_ASSOCIATE) {
+           respcmd != CMD_RET_802_11_ASSOCIATE && curcmd != CMD_802_11_ASSOCIATE) {
                lbs_pr_info("Invalid CMD_RESP %x to command %x!\n", respcmd, curcmd);
                spin_unlock_irqrestore(&priv->driver_lock, flags);
                ret = -1;