diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 8f9eda4d1be1..d305e982c502 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -639,10 +639,10 @@ int lbs_process_rx_command(struct lbs_private *priv) | |||
639 | goto done; | 639 | goto done; |
640 | } | 640 | } |
641 | 641 | ||
642 | curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command); | ||
643 | |||
644 | resp = priv->cur_cmd->cmdbuf; | 642 | resp = priv->cur_cmd->cmdbuf; |
645 | 643 | ||
644 | curcmd = le16_to_cpu(resp->command); | ||
645 | |||
646 | respcmd = le16_to_cpu(resp->command); | 646 | respcmd = le16_to_cpu(resp->command); |
647 | result = le16_to_cpu(resp->result); | 647 | result = le16_to_cpu(resp->result); |
648 | 648 | ||
@@ -650,9 +650,9 @@ int lbs_process_rx_command(struct lbs_private *priv) | |||
650 | respcmd, le16_to_cpu(resp->seqnum), priv->upld_len, jiffies); | 650 | respcmd, le16_to_cpu(resp->seqnum), priv->upld_len, jiffies); |
651 | lbs_deb_hex(LBS_DEB_HOST, "CMD_RESP", (void *) resp, priv->upld_len); | 651 | lbs_deb_hex(LBS_DEB_HOST, "CMD_RESP", (void *) resp, priv->upld_len); |
652 | 652 | ||
653 | if (resp->seqnum != priv->cur_cmd->cmdbuf->seqnum) { | 653 | if (resp->seqnum != resp->seqnum) { |
654 | lbs_pr_info("Received CMD_RESP with invalid sequence %d (expected %d)\n", | 654 | lbs_pr_info("Received CMD_RESP with invalid sequence %d (expected %d)\n", |
655 | le16_to_cpu(resp->seqnum), le16_to_cpu(priv->cur_cmd->cmdbuf->seqnum)); | 655 | le16_to_cpu(resp->seqnum), le16_to_cpu(resp->seqnum)); |
656 | spin_unlock_irqrestore(&priv->driver_lock, flags); | 656 | spin_unlock_irqrestore(&priv->driver_lock, flags); |
657 | ret = -1; | 657 | ret = -1; |
658 | goto done; | 658 | goto done; |