libertas: rename and re-type bufvirtualaddr to cmdbuf

Make it a struct cmd_header, since that's what it is, and clean up
the places that it's used.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Dan Williams
2007-12-11 13:49:39 -05:00
committed by David S. Miller
parent c9cd6f9d63
commit ddac452680
8 changed files with 79 additions and 100 deletions

View File

@@ -142,14 +142,14 @@ static int if_sdio_handle_cmd(struct if_sdio_card *card,
goto out;
}
if (size > MRVDRV_SIZE_OF_CMD_BUFFER) {
if (size > LBS_CMD_BUFFER_SIZE) {
lbs_deb_sdio("response packet too large (%d bytes)\n",
(int)size);
ret = -E2BIG;
goto out;
}
memcpy(card->priv->cur_cmd->bufvirtualaddr, buffer, size);
memcpy(card->priv->cur_cmd->cmdbuf, buffer, size);
card->priv->upld_len = size;
card->int_cause |= MRVDRV_CMD_UPLD_RDY;