Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79245
b: refs/heads/master
c: ac4cced
h: refs/heads/master
i:
  79243: 0a48cc5
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent bcf21ee commit 75e4e85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4694961cc2f868d6061be3b2c3d1fcf39584ff17
refs/heads/master: ac4cced6e850496b66c0825b7f74d51ef02c6371
8 changes: 4 additions & 4 deletions trunk/drivers/net/wireless/libertas/cmdresp.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,20 +639,20 @@ int lbs_process_rx_command(struct lbs_private *priv)
goto done;
}

curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command);

resp = priv->cur_cmd->cmdbuf;

curcmd = le16_to_cpu(resp->command);

respcmd = le16_to_cpu(resp->command);
result = le16_to_cpu(resp->result);

lbs_deb_host("CMD_RESP: response 0x%04x, seq %d, size %d, jiffies %lu\n",
respcmd, le16_to_cpu(resp->seqnum), priv->upld_len, jiffies);
lbs_deb_hex(LBS_DEB_HOST, "CMD_RESP", (void *) resp, priv->upld_len);

if (resp->seqnum != priv->cur_cmd->cmdbuf->seqnum) {
if (resp->seqnum != resp->seqnum) {
lbs_pr_info("Received CMD_RESP with invalid sequence %d (expected %d)\n",
le16_to_cpu(resp->seqnum), le16_to_cpu(priv->cur_cmd->cmdbuf->seqnum));
le16_to_cpu(resp->seqnum), le16_to_cpu(resp->seqnum));
spin_unlock_irqrestore(&priv->driver_lock, flags);
ret = -1;
goto done;
Expand Down

0 comments on commit 75e4e85

Please sign in to comment.