libertas: fix pointer bugs for PS_MODE commands
authorAndreas Kemnade <andreas@kemnade.info>
Sat, 30 Jan 2016 17:01:51 +0000 (18:01 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 6 Feb 2016 12:02:09 +0000 (14:02 +0200)
commit0a7701b4defcebc7ce461355e6d9478df313b084
tree27b3f3d83ae209774037d244d4725965ead92ea7
parentefdf0e393e76aa18e9c2ec0ca9b3a71ad410994b
libertas: fix pointer bugs for PS_MODE commands

struct cmd_ds_802_11_ps_mode
contains the command header and a pointer to it was
initialized with data points to the body which leads to
mis-interpretation of the cmd_ds_802_11_ps_mode.action member.
cmd[0] contains the header, &cmd[1] points beyond that.
cmdnode->cmdbuf is a pointer to the command buffer
This piece of code was unused since power saving was
not enabled.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas/cmd.c
drivers/net/wireless/marvell/libertas/cmdresp.c