aboutsummaryrefslogtreecommitdiffstats
path: root/host/usrp_e_utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-08-21 01:24:27 +0000
committerJosh Blum <josh@joshknows.com>2011-08-31 18:44:34 -0700
commit0fa5508ccca415c82fa005312f42060e5ed3c2bf (patch)
tree7a2883b30e4b6518818cdd259ee05e9d75a7cc23 /host/usrp_e_utils
parent20d5a87352ea1a29d102f9b693062684f9555446 (diff)
downloaduhd-0fa5508ccca415c82fa005312f42060e5ed3c2bf.tar.gz
uhd-0fa5508ccca415c82fa005312f42060e5ed3c2bf.tar.bz2
uhd-0fa5508ccca415c82fa005312f42060e5ed3c2bf.zip
e100: only generate random _even_ sizes for loopback
Diffstat (limited to 'host/usrp_e_utils')
-rw-r--r--host/usrp_e_utils/usrp-e-loopback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/usrp_e_utils/usrp-e-loopback.c b/host/usrp_e_utils/usrp-e-loopback.c
index 6730967de..bf0bb7d43 100644
--- a/host/usrp_e_utils/usrp-e-loopback.c
+++ b/host/usrp_e_utils/usrp-e-loopback.c
@@ -200,7 +200,7 @@ static void *write_thread(void *threadid)
if (packet_data_length > 0)
p->len = packet_data_length;
else
- p->len = (random() & 0x1ff) + (1004 - 512);
+ p->len = (random() & 0x1fe) + (1000 - 512);
p->words32 = 4 /*hdr*/ + p->len/2;