summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wct4xxp/base.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wct4xxp/base.c b/wct4xxp/base.c
index 341e443..b6c56ab 100644
--- a/wct4xxp/base.c
+++ b/wct4xxp/base.c
@@ -201,6 +201,8 @@ static int lastdtmfthreshold = VPM_DEFAULT_DTMFTHRESHOLD;
static int noburst = 1;
static int debugslips = 0;
static int polling = 0;
+/* For 56kbps links, set this module parameter to 0x7f */
+static int hardhdlcmode = 0xff;
#ifdef FANCY_ALARM
static int altab[] = {
@@ -943,7 +945,7 @@ static int __hdlc_start(struct t4 *wc, unsigned int span, struct zt_chan *chan,
/* Make sure we're in the right mode */
__t4_framer_out(wc, span, FRMR_MODE, mode);
__t4_framer_out(wc, span, FRMR_TSEO, 0x00);
- __t4_framer_out(wc, span, FRMR_TSBS1, 0xff);
+ __t4_framer_out(wc, span, FRMR_TSBS1, hardhdlcmode);
/* Set the interframe gaps, etc */
__t4_framer_out(wc, span, FRMR_CCR1, FRMR_CCR1_ITF|FRMR_CCR1_EITS);
@@ -3817,6 +3819,7 @@ MODULE_PARM(loopback, "i");
MODULE_PARM(noburst, "i");
MODULE_PARM(debugslips, "i");
MODULE_PARM(polling, "i");
+MODULE_PARM(hardhdlcmode, "i");
MODULE_PARM(timingcable, "i");
MODULE_PARM(t1e1override, "i");
MODULE_PARM(alarmdebounce, "i");