diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-11 23:42:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:59 -0500 |
commit | e1258177e437cb8b892622f2b7beedd4701540ac (patch) | |
tree | 35addee654285e88ec1b49526cf3473427500f1e /drivers/net/wireless/libertas/cmd.c | |
parent | 06113c1c70349f5f888436ac2af28c707f4602ef (diff) |
libertas: be more careful about command responses matching cur_cmd
Especially in the light of OLPC trac #5461, in which the firmware starts
sending us seemingly random command responses which bear little relation
to the command we sent it.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 1cb42dc90010..5ddb46a477a4 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -1216,8 +1216,8 @@ static int DownloadcommandToStation(struct lbs_private *priv, | |||
1216 | cmdsize = le16_to_cpu(cmd->size); | 1216 | cmdsize = le16_to_cpu(cmd->size); |
1217 | command = le16_to_cpu(cmd->command); | 1217 | command = le16_to_cpu(cmd->command); |
1218 | 1218 | ||
1219 | lbs_deb_host("DNLD_CMD: command 0x%04x, size %d, jiffies %lu\n", | 1219 | lbs_deb_host("DNLD_CMD: command 0x%04x, seq %d, size %d, jiffies %lu\n", |
1220 | command, cmdsize, jiffies); | 1220 | command, le16_to_cpu(cmd->seqnum), cmdsize, jiffies); |
1221 | lbs_deb_hex(LBS_DEB_HOST, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); | 1221 | lbs_deb_hex(LBS_DEB_HOST, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); |
1222 | 1222 | ||
1223 | cmdnode->cmdwaitqwoken = 0; | 1223 | cmdnode->cmdwaitqwoken = 0; |