libertas: Byteswap cmdptr->size in lbs_cmd()
Bad Holger. Always test on big-endian machines, if it's little-endian you need to be swapping to/from. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
ad9de29130
commit
6228c0aea5
|
@ -2072,7 +2072,7 @@ int lbs_cmd(struct lbs_private *priv,
|
|||
/* Set sequence number, clean result, move to buffer */
|
||||
adapter->seqnum++;
|
||||
cmdptr->command = cpu_to_le16(command);
|
||||
cmdptr->size = cmd_size + S_DS_GEN;
|
||||
cmdptr->size = cpu_to_le16(cmd_size + S_DS_GEN);
|
||||
cmdptr->seqnum = cpu_to_le16(adapter->seqnum);
|
||||
cmdptr->result = 0;
|
||||
memcpy(cmdptr->cmdresp, cmd, cmd_size);
|
||||
|
|
Loading…
Reference in a new issue