diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 7682b9d27de3..2765b9c20851 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -1175,7 +1175,7 @@ static void lbs_queue_cmd(struct lbs_private *priv, | |||
1175 | 1175 | ||
1176 | /* Exit_PS command needs to be queued in the header always. */ | 1176 | /* Exit_PS command needs to be queued in the header always. */ |
1177 | if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_PS_MODE) { | 1177 | if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_PS_MODE) { |
1178 | struct cmd_ds_802_11_ps_mode *psm = (void *) cmdnode->cmdbuf; | 1178 | struct cmd_ds_802_11_ps_mode *psm = (void *) &cmdnode->cmdbuf[1]; |
1179 | 1179 | ||
1180 | if (psm->action == cpu_to_le16(CMD_SUBCMD_EXIT_PS)) { | 1180 | if (psm->action == cpu_to_le16(CMD_SUBCMD_EXIT_PS)) { |
1181 | if (priv->psstate != PS_STATE_FULL_POWER) | 1181 | if (priv->psstate != PS_STATE_FULL_POWER) |
@@ -1889,7 +1889,7 @@ int lbs_execute_next_command(struct lbs_private *priv) | |||
1889 | * PS command. Ignore it if it is not Exit_PS. | 1889 | * PS command. Ignore it if it is not Exit_PS. |
1890 | * otherwise send it down immediately. | 1890 | * otherwise send it down immediately. |
1891 | */ | 1891 | */ |
1892 | struct cmd_ds_802_11_ps_mode *psm = (void *)cmd; | 1892 | struct cmd_ds_802_11_ps_mode *psm = (void *)&cmd[1]; |
1893 | 1893 | ||
1894 | lbs_deb_host( | 1894 | lbs_deb_host( |
1895 | "EXEC_NEXT_CMD: PS cmd, action 0x%02x\n", | 1895 | "EXEC_NEXT_CMD: PS cmd, action 0x%02x\n", |
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index ef63c376c552..c05fef04c432 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -678,7 +678,7 @@ int lbs_process_rx_command(struct lbs_private *priv) | |||
678 | priv->cur_cmd_retcode = result; | 678 | priv->cur_cmd_retcode = result; |
679 | 679 | ||
680 | if (respcmd == CMD_RET(CMD_802_11_PS_MODE)) { | 680 | if (respcmd == CMD_RET(CMD_802_11_PS_MODE)) { |
681 | struct cmd_ds_802_11_ps_mode *psmode = (void *) resp; | 681 | struct cmd_ds_802_11_ps_mode *psmode = (void *) &resp[1]; |
682 | u16 action = le16_to_cpu(psmode->action); | 682 | u16 action = le16_to_cpu(psmode->action); |
683 | 683 | ||
684 | lbs_deb_host( | 684 | lbs_deb_host( |