Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f0547c2 authored by Sebastian Siewior's avatar Sebastian Siewior Committed by John W. Linville
Browse files

libertas: fix the 'compare command with itself' properly



|libertas: Invalid CMD_RESP 8012 to command 50!

The special case got mixed up in 8a96df80.

Signed-off-by: default avatarSebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 97ed8390
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;