summaryrefslogtreecommitdiffstats
path: root/tools/csr.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-11-10 20:23:47 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-11-10 20:23:47 +0000
commit2ba0839002159cd293bb1a3d85645f04010cf33b (patch)
treef03e03afa2dc6ea774315bb116b177016623fdba /tools/csr.c
parent9fb18057b298238f576aa57a95fed56e1743a3e9 (diff)
Add USB transport to the bccmd utility
Diffstat (limited to 'tools/csr.c')
-rw-r--r--tools/csr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/csr.c b/tools/csr.c
index c101422b..10856749 100644
--- a/tools/csr.c
+++ b/tools/csr.c
@@ -2354,7 +2354,7 @@ int csr_write_varid_complex(int dd, uint16_t seqnum, uint16_t varid, uint8_t *va
rq.ocf = 0x00;
rq.event = EVT_VENDOR;
rq.cparam = cp;
- rq.clen = sizeof(cmd) + 1;
+ rq.clen = sizeof(cmd) + length + 1;
rq.rparam = rp;
rq.rlen = sizeof(rp);
@@ -2393,7 +2393,7 @@ int csr_read_varid_complex(int dd, uint16_t seqnum, uint16_t varid, uint8_t *val
rq.ocf = 0x00;
rq.event = EVT_VENDOR;
rq.cparam = cp;
- rq.clen = sizeof(cmd) + 1;
+ rq.clen = sizeof(cmd) + length + 1;
rq.rparam = rp;
rq.rlen = sizeof(rp);