summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2013-06-10 16:53:45 +0200
committerNicolas Schodet2013-06-14 11:23:55 +0200
commitf3d34bca8b4beee11643bedbccb581597f01bc6c (patch)
tree3c6ac25fd71a17ea096faceaecde214664f2ac85
parentfa03386281a1a969ebf421348e57502e88c0d8b8 (diff)
cesar/mac/common: increase MAC tolerance, closes #4043
This is needed for extra long cables (up to 1200m).
-rw-r--r--cesar/mac/common/timings.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/cesar/mac/common/timings.h b/cesar/mac/common/timings.h
index 09b9efb447..16d48302b4 100644
--- a/cesar/mac/common/timings.h
+++ b/cesar/mac/common/timings.h
@@ -160,9 +160,11 @@
/** Contention window slot, PRS (ticks). */
#define MAC_SLOT_TCK (2688/3)
-/** Tolerance for IFS, includes Homeplug tolerance and hardware preamble date
- * precision (ticks). */
-#define MAC_TOLERANCE_TCK ((37 + 2 * 384 + (3 - 1)) / 3)
+/** Tolerance for IFS (ticks), includes:
+ * - Homeplug tolerance,
+ * - hardware preamble date precision,
+ * - extra tolerance for long cables. */
+#define MAC_TOLERANCE_TCK ((37 + 2 * 384 + (3 - 1)) / 3 + MAC_US_TO_TCK (16))
/** Tonemap tolerance (ticks). */
#define MAC_TM_TOLERANCE_TCK MAC_US_TO_TCK (150)