diff options
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 8b5d1a55a0e9..e60d03bf8d11 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -548,21 +548,20 @@ done: | |||
548 | 548 | ||
549 | static int lbs_send_confirmwake(struct lbs_private *priv) | 549 | static int lbs_send_confirmwake(struct lbs_private *priv) |
550 | { | 550 | { |
551 | struct cmd_header *cmd = &priv->lbs_ps_confirm_wake; | 551 | struct cmd_header cmd; |
552 | int ret = 0; | 552 | int ret = 0; |
553 | 553 | ||
554 | lbs_deb_enter(LBS_DEB_HOST); | 554 | lbs_deb_enter(LBS_DEB_HOST); |
555 | 555 | ||
556 | cmd->command = cpu_to_le16(CMD_802_11_WAKEUP_CONFIRM); | 556 | cmd.command = cpu_to_le16(CMD_802_11_WAKEUP_CONFIRM); |
557 | cmd->size = cpu_to_le16(sizeof(*cmd)); | 557 | cmd.size = cpu_to_le16(sizeof(cmd)); |
558 | cmd->seqnum = cpu_to_le16(++priv->seqnum); | 558 | cmd.seqnum = cpu_to_le16(++priv->seqnum); |
559 | cmd->result = 0; | 559 | cmd.result = 0; |
560 | 560 | ||
561 | lbs_deb_host("SEND_WAKEC_CMD: before download\n"); | 561 | lbs_deb_hex(LBS_DEB_HOST, "wake confirm", (u8 *) &cmd, |
562 | sizeof(cmd)); | ||
562 | 563 | ||
563 | lbs_deb_hex(LBS_DEB_HOST, "wake confirm command", (void *)cmd, sizeof(*cmd)); | 564 | ret = priv->hw_host_to_card(priv, MVMS_CMD, (u8 *) &cmd, sizeof(cmd)); |
564 | |||
565 | ret = priv->hw_host_to_card(priv, MVMS_CMD, (void *)cmd, sizeof(*cmd)); | ||
566 | if (ret) | 565 | if (ret) |
567 | lbs_pr_alert("SEND_WAKEC_CMD: Host to Card failed for Confirm Wake\n"); | 566 | lbs_pr_alert("SEND_WAKEC_CMD: Host to Card failed for Confirm Wake\n"); |
568 | 567 | ||