summaryrefslogtreecommitdiffstats
path: root/bcmdhd/dhdutil
diff options
context:
space:
mode:
Diffstat (limited to 'bcmdhd/dhdutil')
-rw-r--r--bcmdhd/dhdutil/dhdu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bcmdhd/dhdutil/dhdu.c b/bcmdhd/dhdutil/dhdu.c
index 6d603f7..97c108a 100644
--- a/bcmdhd/dhdutil/dhdu.c
+++ b/bcmdhd/dhdutil/dhdu.c
@@ -2155,7 +2155,7 @@ dhd_upload(void *dhd, cmd_t *cmd, char **argv)
ramsize = *(uint32*)buf;
if (!ramsize)
- ramsize = start + size;
+ ramsize = size;
if ((fp = fopen(fname, "wb")) == NULL) {
fprintf(stderr, "%s: Could not open %s: %s\n",
@@ -2166,7 +2166,7 @@ dhd_upload(void *dhd, cmd_t *cmd, char **argv)
/* default size to full RAM */
if (!size)
- size = ramsize - start;
+ size = ramsize;
/* read memory and write to file */
while (size) {