aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/if_cs.c')
-rw-r--r--drivers/net/wireless/libertas/if_cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c
index 2acbe5dcff7d..58143637c737 100644
--- a/drivers/net/wireless/libertas/if_cs.c
+++ b/drivers/net/wireless/libertas/if_cs.c
@@ -364,7 +364,7 @@ static int if_cs_receive_cmdres(struct lbs_private *priv, u8 *data, u32 *len)
364 } 364 }
365 365
366 *len = if_cs_read16(priv->card, IF_CS_C_CMD_LEN); 366 *len = if_cs_read16(priv->card, IF_CS_C_CMD_LEN);
367 if ((*len == 0) || (*len > MRVDRV_SIZE_OF_CMD_BUFFER)) { 367 if ((*len == 0) || (*len > LBS_CMD_BUFFER_SIZE)) {
368 lbs_pr_err("card cmd buffer has invalid # of bytes (%d)\n", *len); 368 lbs_pr_err("card cmd buffer has invalid # of bytes (%d)\n", *len);
369 goto out; 369 goto out;
370 } 370 }
@@ -683,7 +683,7 @@ sbi_get_int_status_exit:
683 cmdbuf = priv->upld_buf; 683 cmdbuf = priv->upld_buf;
684 priv->hisregcpy &= ~IF_CS_C_S_RX_UPLD_RDY; 684 priv->hisregcpy &= ~IF_CS_C_S_RX_UPLD_RDY;
685 } else { 685 } else {
686 cmdbuf = priv->cur_cmd->bufvirtualaddr; 686 cmdbuf = (u8 *) priv->cur_cmd->cmdbuf;
687 } 687 }
688 688
689 ret = if_cs_receive_cmdres(priv, cmdbuf, &priv->upld_len); 689 ret = if_cs_receive_cmdres(priv, cmdbuf, &priv->upld_len);