summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-14 19:45:26 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-14 19:45:26 +0000
commitb4c7e5000a71fff560ea6b4620c47d3f9eba4602 (patch)
tree37fd1cfbd7bbbea60ee0002ac5f5d463e46ab2e1 /src
parente1eacada54e9edb2f14c64a8ba615cad6ae3ed8b (diff)
make sure we never rx/tx frames > 64 bytes because stupid cm5121 is not able to
refill FIFO during rx/tx operation due to latency issues. This needs to be put in a reader specific field, rather than an ASIC specific field. git-svn-id: https://svn.gnumonks.org/trunk/librfid@1823 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src')
-rw-r--r--src/rfid_asic_rc632.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rfid_asic_rc632.c b/src/rfid_asic_rc632.c
index 7c79dfd..e594bce 100644
--- a/src/rfid_asic_rc632.c
+++ b/src/rfid_asic_rc632.c
@@ -482,7 +482,9 @@ rc632_open(struct rfid_asic_transport_handle *th)
h->asic = &rc632;
h->rath = th;
h->fc = h->asic->fc;
- h->mtu = h->mru = 40; /* FIXME */
+ /* FIXME: this is only cm5121 specific, since the latency
+ * down to the RC632 FIFO is too long to refill during TX/RX */
+ h->mtu = h->mru = 64;
if (rc632_init(h) < 0) {
free(h);
personal git repositories of Harald Welte. Your mileage may vary