From c8493802390fa417fed625b6b20ec6d1848aeaee Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 13 Jul 2010 12:05:58 +0000 Subject: don't send "duplicates" in E1 as in D4 Make sure we only consider T1-s to be potentially D4 (which requires sending the bits twice). This fixes occasional command-queue floods in E1 CAS. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8892 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/card_pri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dahdi') diff --git a/drivers/dahdi/xpp/card_pri.c b/drivers/dahdi/xpp/card_pri.c index b3c9f8a..5a8f2cd 100644 --- a/drivers/dahdi/xpp/card_pri.c +++ b/drivers/dahdi/xpp/card_pri.c @@ -471,7 +471,7 @@ static int write_cas_reg(xpd_t *xpd, int rsnum, byte val) BUG_ON(!xpd); priv = xpd->priv; - if (priv->pri_protocol && !priv->is_esf) { + if ((priv->pri_protocol == PRI_PROTO_T1) && !priv->is_esf) { /* same data should be copied to RS7..12 in D4 only */ is_d4 = 1; } -- cgit v1.2.3