浏览代码

libertas: compare the current command with response

instead of with itself.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Sebastian Siewior 17 年之前
父节点
当前提交
8a96df80b3
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/net/wireless/libertas/cmdresp.c

+ 1 - 3
drivers/net/wireless/libertas/cmdresp.c

@@ -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);