summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/card_pri.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-07-13 12:05:58 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-07-13 12:05:58 +0000
commitc8493802390fa417fed625b6b20ec6d1848aeaee (patch)
treeaea28cc5ba47e4344ffc49f2e3725c97c089c156 /drivers/dahdi/xpp/card_pri.c
parent29614ee059167c8e71b5b869c546e29ba0005233 (diff)
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
Diffstat (limited to 'drivers/dahdi/xpp/card_pri.c')
-rw-r--r--drivers/dahdi/xpp/card_pri.c2
1 files changed, 1 insertions, 1 deletions
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;
}